diff options
author | deva <deva> | 2010-06-01 12:58:32 +0000 |
---|---|---|
committer | deva <deva> | 2010-06-01 12:58:32 +0000 |
commit | 74a28aa7125be6a603128ad600c98c4882f3b5c2 (patch) | |
tree | 1a9e4ab74f29d5ff10f2701e4e112f4525c0dcec /tools/test | |
parent | 9b9c1e2dd3e5807ff7714b378b03b9ba31f42df7 (diff) |
From new_protocol branch.
Diffstat (limited to 'tools/test')
-rwxr-xr-x | tools/test | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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++ -DHAVE_CONFIG_H -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]" |