diff options
Diffstat (limited to 'tools/testlist')
-rwxr-xr-x | tools/testlist | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/testlist b/tools/testlist new file mode 100755 index 0000000..fca9d95 --- /dev/null +++ b/tools/testlist @@ -0,0 +1,29 @@ +#!/bin/bash + +grep "TEST_BEGIN" *.cc > tmp + +echo -n "TESTFILES=" +while read LINE +do + FILE=`echo $LINE | cut -d':' -f1` + NAME=`echo $FILE | cut -d'.' -f1` + TEST=test_$NAME + echo -ne "$TEST " +done < tmp +echo "" +echo "" + +while read LINE +do + FILE=`echo $LINE | cut -d':' -f1` + NAME=`echo $FILE | cut -d'.' -f1` + DEPS=`cat $FILE | grep "deps:" | cut -d':' -f2` + LIBS=`cat $FILE | grep "libs:" | cut -d':' -f2` + CFLAGS=`cat $FILE | grep "cflags:" | cut -d':' -f2` + TEST=test_$NAME + echo "$TEST: $FILE $DEPS" + echo -e "\t@../../tools/test $FILE $DEPS $CFLAGS $LIBS" + echo "" +done < tmp + +rm -f tmp
\ No newline at end of file |