mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
20 lines
314 B
Bash
Executable File
20 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
while getopts "j:p:" flag
|
|
do
|
|
if [ $flag == "j" ]; then
|
|
JSTD=$OPTARG
|
|
elif [ $flag == "p" ]; then
|
|
PORT=$OPTARG
|
|
fi
|
|
done
|
|
|
|
if [ -z "$PORT" ]; then
|
|
PORT=9876
|
|
fi
|
|
|
|
if [ -z "$JSTD" ]; then
|
|
JSTD=`ls ../jstestdriver/[jJ]s[tT]est[dD]river*.jar`
|
|
fi
|
|
|
|
java -jar $JSTD --port $PORT --runnerMode DEBUG
|