From da5e0a76921006ec58ef97b12fff4f429a776870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Tue, 30 Oct 2001 16:30:54 +0100 Subject: [PATCH] (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 --- testsuite/run-tests | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/testsuite/run-tests b/testsuite/run-tests index 9c516427..12573d7b 100755 --- a/testsuite/run-tests +++ b/testsuite/run-tests @@ -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 -- GitLab