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 f21371b..5c672dd 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"