From dcb7fcca74e71d7fd46d79046381756af1c79404 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 18 May 2010 12:01:09 +0000 Subject: More robust test list generation. --- tools/testlist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/testlist') 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` -- cgit v1.2.3