citadel/meta/recipes-support/nettle/nettle-3.4/run-ptest
brl 098b8f982b Squashed 'poky/' content from commit 4469acdf1d
git-subtree-dir: poky
git-subtree-split: 4469acdf1d0338220f3fe2ecb5e079eea6fda375
2017-12-04 16:35:29 -05:00

37 lines
593 B
Bash

#! /bin/sh
cd testsuite
failed=0
all=0
for f in *-test; do
if [ "$f" = "sha1-huge-test" ] ; then
echo "SKIP: $f (skipped for ludicrous run time)"
continue
fi
"./$f"
case "$?" in
0)
echo "PASS: $f"
all=$((all + 1))
;;
77)
echo "SKIP: $f"
;;
*)
echo "FAIL: $f"
failed=$((failed + 1))
all=$((all + 1))
;;
esac
done
if [ "$failed" -eq 0 ] ; then
echo "All $all tests passed"
else
echo "$failed of $all tests failed"
fi