mirror of
https://git.yoctoproject.org/poky
synced 2026-05-29 15:52:40 +02:00
Use the nettle testsuite as ptests. Skip "sha1-huge-test" because it can take 20 minutes to finish. (From OE-Core rev: 75839c401f319d4367cb1b9259d0931170212ec8) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
37 lines
593 B
Bash
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
|
|
|