summaryrefslogtreecommitdiff
path: root/tools/test
diff options
context:
space:
mode:
authordeva <deva>2009-12-17 12:43:40 +0000
committerdeva <deva>2009-12-17 12:43:40 +0000
commit8752ec3b024e6642b7ecd24207d3bf4accfe5aba (patch)
tree668fc980534cb35422cc637dd9c2e238d9a04c29 /tools/test
parent2261e83f6d961e4c9f88dc2687881d57295e5778 (diff)
New test system.
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/test b/tools/test
index 09c2c81..69d8e7e 100755
--- a/tools/test
+++ b/tools/test
@@ -5,7 +5,9 @@ UPPER=`echo $TEST | tr 'a-z.' 'A-Z_'`
OUTPUT=test_$TEST
DEFINE=TEST_$UPPER
-COMPILE="g++ -g -Wall -Werror -D$DEFINE -o $OUTPUT $*"
+SCRIPTDIR=`dirname $0`
+
+COMPILE="g++ -I$SCRIPTDIR -g -Wall -Werror -D$DEFINE -o $OUTPUT $*"
echo -e "\033[0;2mTesting $TEST:"
echo Testing $TEST: > $OUTPUT.log
@@ -26,6 +28,7 @@ if ${COMPILE} >> ${OUTPUT}.log 2>&1; then
else
echo -e "\r\t\t\t\t\t\t[\033[1;31mFailure\033[0;2m]"
echo "[Failure]" >> $OUTPUT.log
+ rm -f $OUTPUT
fi
else
echo -e "\r\t\t\t\t\t\t[\033[1;31mFailure\033[0;2m]"