Fix frontend test-runner so that it works on Ubuntu as well
This commit is contained in:
parent
5e48999478
commit
2132628b7e
|
@ -1,10 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
cd `dirname $0`
|
||||||
|
|
||||||
pushd `dirname $0` > /dev/null
|
|
||||||
DIR=`pwd`
|
DIR=`pwd`
|
||||||
popd > /dev/null
|
|
||||||
CASPER=$(which casperjs)
|
CASPER=$(which casperjs)
|
||||||
INCLUDE=""
|
INCLUDE=""
|
||||||
EXCLUDE=""
|
EXCLUDE=""
|
||||||
|
@ -24,7 +23,7 @@ fi;
|
||||||
|
|
||||||
PARAM="0"
|
PARAM="0"
|
||||||
for arg in $@;do
|
for arg in $@;do
|
||||||
if [ ! "$PARAM" == "0" ]; then
|
if [ ! "$PARAM" = "0" ]; then
|
||||||
export $PARAM=$arg
|
export $PARAM=$arg
|
||||||
PARAM="0"
|
PARAM="0"
|
||||||
continue
|
continue
|
||||||
|
@ -74,12 +73,11 @@ if [ "$PARAM" != "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
cd $DIR
|
|
||||||
FILELIST=""
|
FILELIST=""
|
||||||
#
|
#
|
||||||
# Default : Run regression and cases directory
|
# Default : Run regression and cases directory
|
||||||
#
|
#
|
||||||
if [ "$INCLUDE" == "" -a "$EXCLUDE" == "" ];then
|
if [ "$INCLUDE" = "" -a "$EXCLUDE" = "" ];then
|
||||||
FILELIST="./cases ./regression"
|
FILELIST="./cases ./regression"
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
@ -108,7 +106,7 @@ if [ "$EXCLUDE" != "" ];then
|
||||||
GLUE="\|"
|
GLUE="\|"
|
||||||
done;
|
done;
|
||||||
NAME=$NAME"\)$"
|
NAME=$NAME"\)$"
|
||||||
if [ "$FILELIST" == "" ]; then
|
if [ "$FILELIST" = "" ]; then
|
||||||
FILELIST=`find .|grep ".*js$"`
|
FILELIST=`find .|grep ".*js$"`
|
||||||
fi
|
fi
|
||||||
FILELIST=`echo $FILELIST | grep -v "$NAME"`
|
FILELIST=`echo $FILELIST | grep -v "$NAME"`
|
||||||
|
|
Loading…
Reference in New Issue