https://github.com/mongodb/mongo-hadoop
Revision 9d7516a7c1df95caedbcdb85d294a6e13c0b0d2d authored by Luke Lovett on 16 October 2015, 17:56:27 UTC, committed by Luke Lovett on 16 October 2015, 17:56:27 UTC
1 parent 6cdb43f
Tip revision: 9d7516a7c1df95caedbcdb85d294a6e13c0b0d2d authored by Luke Lovett on 16 October 2015, 17:56:27 UTC
Throw a RuntimeException if MongoRecordWriter cannot open an OutputStream (HADOOP-235).
Throw a RuntimeException if MongoRecordWriter cannot open an OutputStream (HADOOP-235).
Tip revision: 9d7516a
test.sh
#! /bin/sh
alias g="./gradlew --daemon"
OPTS=test
while [ "$1" ]
do
case $1 in
"examples")
OPTS="historicalYield sensorData enronEmails"
;;
"all")
HV="all"
;;
esac
shift
done
echo Running \"$OPTS\"
function browser() {
while [ "$1" ]
do
[ -f $1 ] && open $1
shift
done
}
function run() {
g clean jar testJar $OPTS --stacktrace 2>&1 | tee -a build/test.out
for i in "*/build/reports/tests/index.html"
do
if [ "`grep -i failed $i 2> /dev/null`" ]
then
echo "********** Found failing tests. Exiting."
browser $i
FAILED=true
fi
if [ $FAILED ]
then
exit
fi
done
}
run
Computing file changes ...