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