diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-16 19:26:42 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-16 19:26:42 +0200 |
commit | 919586f8d86ceed1f979967a453f4812fc10d80b (patch) | |
tree | f2cf0a54b778b64dccdbeb2ef0b90056bbd01211 /tools/test | |
parent | bc7d41279222dbd07f8e6f02f067347d10c69f33 (diff) | |
parent | 1dcb87f400b36f773942562db901e134d14ef8ed (diff) |
Merge branch 'master' of http://git.drumgizmo.org/drumgizmo
Diffstat (limited to 'tools/test')
-rwxr-xr-x | tools/test | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tools/test b/tools/test deleted file mode 100755 index 84dd8c0..0000000 --- a/tools/test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -TEST=`echo -n $1 | cut -d'.' -f1` -UPPER=`echo $TEST | tr 'a-z.' 'A-Z_'` -OUTPUT=test_$TEST -DEFINE=TEST_$UPPER - -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 - -echo -n "* Compiling $TEST test" -echo Compiling $TEST test: > $OUTPUT.log -echo ${COMPILE} >> $OUTPUT.log - -if ${COMPILE} >> ${OUTPUT}.log 2>&1; then - echo -e "\r\t\t\t\t\t\t[\033[1;32mSuccess\033[0;2m]" - echo "[Success]" >> $OUTPUT.log - - echo -n "* Running $TEST test" - echo Running $TEST test: >> $OUTPUT.log -# gdb ./$OUTPUT --eval-command=run - if ./$OUTPUT >> $OUTPUT.log 2>&1; then - echo -e "\r\t\t\t\t\t\t[\033[1;32mSuccess\033[0;2m]" - echo "[Success]" >> $OUTPUT.log - 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]" - echo "[Failure]" >> $OUTPUT.log -fi - -echo
\ No newline at end of file |