diff options
Diffstat (limited to 'meta/recipes-support/nettle/nettle/run-ptest')
-rw-r--r-- | meta/recipes-support/nettle/nettle/run-ptest | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/meta/recipes-support/nettle/nettle/run-ptest b/meta/recipes-support/nettle/nettle/run-ptest index b90bed66d2..61a43c78f1 100644 --- a/meta/recipes-support/nettle/nettle/run-ptest +++ b/meta/recipes-support/nettle/nettle/run-ptest | |||
@@ -6,31 +6,35 @@ failed=0 | |||
6 | all=0 | 6 | all=0 |
7 | 7 | ||
8 | for f in *-test; do | 8 | for f in *-test; do |
9 | if [ "$f" = "sha1-huge-test" ] ; then | 9 | case "$f" in |
10 | echo "SKIP: $f (skipped for ludicrous run time)" | 10 | "sha1-huge-test") |
11 | continue | 11 | echo "SKIP: $f (long run time)" |
12 | fi | ||
13 | |||
14 | "./$f" | ||
15 | case "$?" in | ||
16 | 0) | ||
17 | echo "PASS: $f" | ||
18 | all=$((all + 1)) | ||
19 | ;; | 12 | ;; |
20 | 77) | 13 | "symbols-test") |
21 | echo "SKIP: $f" | 14 | echo "SKIP: $f (needs static libraries)" |
22 | ;; | 15 | ;; |
23 | *) | 16 | *) |
24 | echo "FAIL: $f" | 17 | "./$f" |
25 | failed=$((failed + 1)) | 18 | case "$?" in |
26 | all=$((all + 1)) | 19 | 0) |
20 | echo "PASS: $f" | ||
21 | all=$((all + 1)) | ||
22 | ;; | ||
23 | 77) | ||
24 | echo "SKIP: $f" | ||
25 | ;; | ||
26 | *) | ||
27 | echo "FAIL: $f" | ||
28 | failed=$((failed + 1)) | ||
29 | all=$((all + 1)) | ||
30 | ;; | ||
31 | esac | ||
27 | ;; | 32 | ;; |
28 | esac | 33 | esac |
29 | done | 34 | done |
30 | 35 | ||
31 | if [ "$failed" -eq 0 ] ; then | 36 | if [ "$failed" -eq 0 ] ; then |
32 | echo "All $all tests passed" | 37 | echo "All $all tests passed" |
33 | else | 38 | else |
34 | echo "$failed of $all tests failed" | 39 | echo "$failed of $all tests failed" |
35 | fi | 40 | fi |
36 | |||