summaryrefslogtreecommitdiff
path: root/tools/testlist
diff options
context:
space:
mode:
authordeva <deva>2009-12-17 12:43:40 +0000
committerdeva <deva>2009-12-17 12:43:40 +0000
commit8752ec3b024e6642b7ecd24207d3bf4accfe5aba (patch)
tree668fc980534cb35422cc637dd9c2e238d9a04c29 /tools/testlist
parent2261e83f6d961e4c9f88dc2687881d57295e5778 (diff)
New test system.
Diffstat (limited to 'tools/testlist')
-rwxr-xr-xtools/testlist29
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