mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +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"
|