Commit 5b7be6ee authored by Martin Pool's avatar Martin Pool

Show number of passed/failed/skipped tests.

parent 951351a5
......@@ -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 '------------------------------------------------------------'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment