diff options
author | senator <elsenator@gmail.com> | 2011-11-23 15:07:01 +0100 |
---|---|---|
committer | senator <elsenator@gmail.com> | 2011-11-23 15:07:01 +0100 |
commit | 9989ea2f6bfa19bd349bbbdec8ec3f56c1427245 (patch) | |
tree | 91cab6be068ee7f99accb6e97dda5a7bda5879e0 /server/tools/testlist | |
parent | c09fb0787c3af4d282ae3fac53c706665a91b0a7 (diff) | |
parent | 07244d0376e2e25eaeba913e684bd06122ded893 (diff) |
Merge branch 'master' of http://git.aasimon.org/public/pracro
Diffstat (limited to 'server/tools/testlist')
-rwxr-xr-x | server/tools/testlist | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/server/tools/testlist b/server/tools/testlist new file mode 100755 index 0000000..01a48e2 --- /dev/null +++ b/server/tools/testlist @@ -0,0 +1,31 @@ +#!/bin/bash + +SCRIPTDIR=`dirname $0` + +grep -l "TEST_BEGIN" *.cc > tmp + +echo -n "TESTFILES=" +while read LINE +do + FILE=$LINE + NAME=`echo $FILE | cut -d'.' -f1` + TEST=test_$NAME + echo -ne "$TEST " +done < tmp +echo "" +echo "" + +while read LINE +do + FILE=$LINE + 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@TEST_DEPS=\"$DEPS\" TEST_CFLAGS=\"$CFLAGS\" TEST_LIBS=\"$LIBS\" ${SCRIPTDIR}/test $FILE" + echo "" +done < tmp + +rm -f tmp
\ No newline at end of file |