]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(test_program): Check the xit code more
authorNiels Möller <nisse@lysator.liu.se>
Tue, 30 Oct 2001 15:30:54 +0000 (16:30 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 30 Oct 2001 15:30:54 +0000 (16:30 +0100)
carefully, and treat 77 as skip. This convention was borrowed from
autotest.

Rev: src/nettle/testsuite/run-tests:1.2

testsuite/run-tests

index 9c516427192e3d4a69b5303dc02599e1308a7251..12573d7b4200e2ff6c25fd635e3613cc5a68baf4 100755 (executable)
@@ -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