Commit 352503a0 authored by Niels Möller's avatar Niels Möller
Browse files

Bugfixes.

Rev: src/sftp/testsuite/run-tests:1.2
parent 31e10978
......@@ -5,17 +5,18 @@ all=0
function env_program () {
if [ -x ./"$1" ] ; then
if ./"$1" then : ; else
if ./"$1"; then : ; else
echo FAIL: $1
exit 1
fi
fi
}
function test_program () {
if $1 ; then
echo PASS: ${$1%-test}
if "./$1" ; then
echo PASS: ${1%-test}
else
echo FAIL: ${$1%-test}
echo FAIL: ${1%-test}
failed=`expr $failed + 1`
fi
all=`expr $all + 1`
......@@ -24,9 +25,9 @@ function test_program () {
env_program setup-env
if [ $# -eq 0 ] ; then
for f in *-test; do test_program $1; done
for f in *-test; do test_program "$f"; done
else
for f in "$@" ; then do test_program $1; done
for f in "$@" ; do test_program "$f"; done
fi
if [ $failed -eq 0 ] ; then
......
Supports Markdown
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