https://github.com/mongodb/mongo-hadoop
Tip revision: 20208a027ad8638e56dfcf040773f176d6ee059f authored by Alexander Golin on 28 January 2022, 19:28:02 UTC
Merge pull request #160 from mongodb/DRIVERS-2036
Merge pull request #160 from mongodb/DRIVERS-2036
Tip revision: 20208a0
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