summaryrefslogtreecommitdiff
path: root/client/test.sh
diff options
context:
space:
mode:
authordeva <deva>2009-11-03 13:07:02 +0000
committerdeva <deva>2009-11-03 13:07:02 +0000
commitc91d9e62801aca5a12ca37429c39a71e6351d6d5 (patch)
treec4bac8ca4208e184479e6fd87f3e7de5d4ef9463 /client/test.sh
parent774ff6333ec68481e2536931b539d241cc7380db (diff)
More test framework changes...
Diffstat (limited to 'client/test.sh')
-rwxr-xr-xclient/test.sh35
1 files changed, 19 insertions, 16 deletions
diff --git a/client/test.sh b/client/test.sh
index 83dc675..cbd0184 100755
--- a/client/test.sh
+++ b/client/test.sh
@@ -5,6 +5,9 @@ TEST_PRO=test.pro
MAKEFILE=Makefile.test
TEST_APP=test_app
+# Make sure that pracro.cc gets compiled again with the TESTING flags set.
+touch pracro.cc
+
if [ -z $1 ]
then
TESTFILES=test/test*.cc
@@ -25,25 +28,25 @@ do
echo Compiling $TEST test: >> $OUTPUT
echo ${COMPILE} >> $OUTPUT
cpp -P -E -DTESTFILE=\"$TEST\" $TEST_PRO_IN -o $TEST_PRO
- qmake -makefile $TEST_PRO -o $MAKEFILE
+ qmake -makefile $TEST_PRO -o $MAKEFILE
if make -f $MAKEFILE 2>&1 >> ${OUTPUT}; 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
- if ./$TEST_APP 2>&1 >> $OUTPUT ; then
- echo -e "\r\t\t\t\t\t\t[\033[1;32mSuccess\033[0;2m]"
- echo "[Success]" >> $OUTPUT
- else
- echo -e "\r\t\t\t\t\t\t[\033[1;31mFailure\033[0;2m]"
- echo "[Failure]" >> $OUTPUT
- fi
+ 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
+ if ./$TEST_APP 2>&1 >> $OUTPUT ; then
+ echo -e "\r\t\t\t\t\t\t[\033[1;32mSuccess\033[0;2m]"
+ echo "[Success]" >> $OUTPUT
+ else
+ echo -e "\r\t\t\t\t\t\t[\033[1;31mFailure\033[0;2m]"
+ echo "[Failure]" >> $OUTPUT
+ fi
else
- echo -e "\r\t\t\t\t\t\t[\033[1;31mFailure\033[0;2m]"
- echo "[Failure]" >> $OUTPUT
+ echo -e "\r\t\t\t\t\t\t[\033[1;31mFailure\033[0;2m]"
+ echo "[Failure]" >> $OUTPUT
fi
- rm -f $MAKEFILE $TEST_PRO $TEST_APP
+ rm -f $MAKEFILE $TEST_PRO $TEST_APP
done