silverstripe-framework/thirdparty/jasmine-jstd-adapter/test.sh
2011-03-22 18:05:43 +13:00

23 lines
370 B
Bash
Executable File

#!/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"