diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-17 12:25:50 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-17 12:25:50 +0100 |
commit | 93890eace0b7a35cb597272e7449b1e0ee533a73 (patch) | |
tree | d8f11ea615e083fed1d12f1af6df12599a78f764 /tools/testlist | |
parent | 4278976501fb82771d42ac1fe7654e2e0a2f69a1 (diff) |
Add tool files.
Diffstat (limited to 'tools/testlist')
-rwxr-xr-x | tools/testlist | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/testlist b/tools/testlist new file mode 100755 index 0000000..01a48e2 --- /dev/null +++ b/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 |