echo "============================================================"
echo "$0 running"
-test_names="rsync-hello"
+test_names="rsync-hello hands"
export rsync_bin
export testdir
-cd "$testdir"
+skipped=0
+missing=0
+passed=0
+failed=0
+
+testsrcdir="`pwd`"
for testbase in $test_names
do
- echo "------------------------------------------------------------"
- echo "----- $testbase running"
-
- testscript="$testbase.test"
+ testscript="$testsrcdir/$testbase.test"
if test \! -f "$testscript"
then
echo "$testscript does not exist" >&2
+ missing=`expr $missing + 1`
continue
fi
+ echo "------------------------------------------------------------"
+ echo "----- $testbase running"
+
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 '------------------------------------------------------------'