Show number of passed/failed/skipped tests.
authorMartin Pool <mbp@samba.org>
Thu, 16 Aug 2001 09:37:54 +0000 (09:37 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 16 Aug 2001 09:37:54 +0000 (09:37 +0000)
testsuite/master.test

index 8c34ee8..088b6f2 100755 (executable)
@@ -16,6 +16,11 @@ test_names="rsync-hello hands"
 export rsync_bin
 export testdir
 
+skipped=0
+missing=0
+passed=0
+failed=0
+
 cd "$testdir"
 
 for testbase in $test_names
@@ -24,6 +29,7 @@ do
     if test \! -f "$testscript" 
     then
        echo "$testscript does not exist" >&2
+       missing=`expr $missing + 1`
        continue
     fi
 
@@ -33,9 +39,17 @@ do
     if sh $testscript
     then
        echo "----- $testbase completed succesfully"
+       passed=`expr $passed + 1`
     else
        echo "----- $testbase failed!"
+       failed=`expr $failed + 1`
     fi 
 done
 
 echo '------------------------------------------------------------'
+echo "----- overall results:"
+echo "      $passed passed"
+echo "      $failed failed"
+echo "      $skipped skipped"
+echo "      $missing missing"
+echo '------------------------------------------------------------'