Commit da5e0a76 authored by Niels Möller's avatar Niels Möller

(test_program): Check the xit code more

carefully, and treat 77 as skip. This convention was borrowed from
autotest.

Rev: src/nettle/testsuite/run-tests:1.2
parent ac9b82e4
......@@ -13,13 +13,21 @@ env_program () {
}
test_program () {
if "./$1" ; then
echo PASS: ${1%-test}
else
echo FAIL: ${1%-test}
failed=`expr $failed + 1`
fi
all=`expr $all + 1`
"./$1"
case "$?" in
0)
echo PASS: ${1%-test}
all=`expr $all + 1`
;;
77)
echo SKIP: ${1%-test}
;;
*)
echo FAIL: ${1%-test}
failed=`expr $failed + 1`
all=`expr $all + 1`
;;
esac
}
env_program setup-env
......
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