summaryrefslogtreecommitdiffstats
path: root/import-layers/yocto-poky/meta/recipes-support/nettle/nettle-3.4/run-ptest
blob: b90bed66d270b6d172b7ed219b027bf8434d8a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /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

OpenPOWER on IntegriCloud