Run all scripts in the testsuite/ directory, not just named ones. I'd
authorMartin Pool <mbp@samba.org>
Thu, 30 Aug 2001 07:10:20 +0000 (07:10 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 30 Aug 2001 07:10:20 +0000 (07:10 +0000)
like to make this script not rsync-specific if possible.

runtests.sh

index f21371be9f1c75112f5dd673b270acd19c914d1c..5c672dd27debea9f9975b03faaf541074ce8fe68 100755 (executable)
@@ -144,15 +144,9 @@ suitedir="$srcdir/testsuite"
 
 export scratchdir suitedir
 
-for testbase in rsync-hello hands ssh-basic
+for testscript in $suitedir/*.test
 do
-    testscript="$suitedir/$testbase.test"
-    if test \! -f "$testscript" 
-    then
-       echo "$testscript does not exist" >&2
-       missing=`expr $missing + 1`
-       continue
-    fi
+    testbase=`echo $testscript | sed 's!.*/!!'`
 
     echo "----- $testbase starting"