diff options
author | deva <deva> | 2011-06-28 06:35:49 +0000 |
---|---|---|
committer | deva <deva> | 2011-06-28 06:35:49 +0000 |
commit | 91a243b89ce1a00a9167f95de4c4fd8c62769391 (patch) | |
tree | 32e1a7f37acae97f668ee46b0f0459bc998df591 /client | |
parent | ef659d72dcbcb7f609373af1c6343201cb6e773a (diff) |
Brush up the old test script.
Diffstat (limited to 'client')
-rwxr-xr-x | client/test.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/test.sh b/client/test.sh index b2ad68d..05f6372 100755 --- a/client/test.sh +++ b/client/test.sh @@ -6,13 +6,13 @@ MAKEFILE=Makefile.test TEST_APP=test_app # Make sure that pracro.cc gets compiled again with the TESTING flags set. -touch pracro.cc +rm -f pracro.o if [ -z $1 ] then - TESTFILES=test/test*.cc + TESTFILES=test/test*.cc else - TESTFILES=$1 + TESTFILES=$1 fi rm -f test.log @@ -29,14 +29,14 @@ do echo ${COMPILE} >> $OUTPUT cpp -P -E -DTESTFILE=\"$TEST\" $TEST_PRO_IN -o $TEST_PRO qmake -makefile $TEST_PRO -o $MAKEFILE - if make -f $MAKEFILE 2>&1 >> ${OUTPUT}; then + if make -f $MAKEFILE >> ${OUTPUT} 2>&1 ; then echo -e "\r\t\t\t\t\t\t[\033[1;32mSuccess\033[0;2m]" echo "[Success]" >> $OUTPUT echo -n "* Running $TEST test" echo Running $TEST test: >> $OUTPUT cp -f $TEST_APP $TEST.bin - if ./$TEST_APP 2>&1 >> $OUTPUT ; then + if ./$TEST_APP >> $OUTPUT 2>&1 ; then echo -e "\r\t\t\t\t\t\t[\033[1;32mSuccess\033[0;2m]" echo "[Success]" >> $OUTPUT else @@ -53,4 +53,4 @@ done # Make sure that a 'normal' compile will compile pracro.cc # without the TESTING flag set -touch pracro.cc +rm -f pracro.o |