Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (20 sloc) 438 Bytes
#!/bin/bash
while getopts "j:t:" flag
do
if [ $flag == "j" ]; then
JSTD=$OPTARG
elif [ $flag == "t" ]; then
TESTS=$OPTARG
fi
done
if [ -z "$JSTD" ]; then
JSTD=`ls ../jstestdriver/[jJ]s[tT]est[dD]river*.jar`
fi
if [ -z "$TESTS" ]; then
TESTS="all"
echo "Running all tests"
else
echo "Running '$TESTS'"
fi
java -jar $JSTD --reset --tests "$TESTS"
java -jar $JSTD --reset --tests "all" --config jsTestDriverIit.conf