From 91a243b89ce1a00a9167f95de4c4fd8c62769391 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 28 Jun 2011 06:35:49 +0000 Subject: Brush up the old test script. --- client/test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client') 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 -- cgit v1.2.3