summaryrefslogtreecommitdiff
path: root/tools/testlist
diff options
context:
space:
mode:
authordeva <deva>2010-06-01 12:58:32 +0000
committerdeva <deva>2010-06-01 12:58:32 +0000
commit74a28aa7125be6a603128ad600c98c4882f3b5c2 (patch)
tree1a9e4ab74f29d5ff10f2701e4e112f4525c0dcec /tools/testlist
parent9b9c1e2dd3e5807ff7714b378b03b9ba31f42df7 (diff)
From new_protocol branch.
Diffstat (limited to 'tools/testlist')
-rwxr-xr-xtools/testlist31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/testlist b/tools/testlist
new file mode 100755
index 0000000..c42824f
--- /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@${SCRIPTDIR}/test $FILE $DEPS $CFLAGS $LIBS"
+ echo ""
+done < tmp
+
+rm -f tmp \ No newline at end of file