mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 18:51:12 +02:00
23 lines
370 B
Bash
23 lines
370 B
Bash
|
#!/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"
|