summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-05-18 12:01:09 +0000
committerdeva <deva>2010-05-18 12:01:09 +0000
commitdcb7fcca74e71d7fd46d79046381756af1c79404 (patch)
tree33bd0a711f02a739210faf6c6a82fed38dc577ff
parent016e4ba553044edee32c2a20ee34463ad82106e8 (diff)
More robust test list generation.
-rwxr-xr-xtools/testlist6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testlist b/tools/testlist
index a4e7202..c42824f 100755
--- a/tools/testlist
+++ b/tools/testlist
@@ -2,12 +2,12 @@
SCRIPTDIR=`dirname $0`
-grep "TEST_BEGIN" *.cc > tmp
+grep -l "TEST_BEGIN" *.cc > tmp
echo -n "TESTFILES="
while read LINE
do
- FILE=`echo $LINE | cut -d':' -f1`
+ FILE=$LINE
NAME=`echo $FILE | cut -d'.' -f1`
TEST=test_$NAME
echo -ne "$TEST "
@@ -17,7 +17,7 @@ echo ""
while read LINE
do
- FILE=`echo $LINE | cut -d':' -f1`
+ FILE=$LINE
NAME=`echo $FILE | cut -d'.' -f1`
DEPS=`cat $FILE | grep "deps:" | cut -d':' -f2`
LIBS=`cat $FILE | grep "libs:" | cut -d':' -f2`