summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pam/libpam
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2021-01-22 14:10:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-27 10:17:45 +0000
commit065a23550eb845c378a65be5a7fd5f840fe4e448 (patch)
tree874a54fcd71fd74c8c8722f3dacb2c24f4a87a40 /meta/recipes-extended/pam/libpam
parent45c02843d181b5f1872ad30f4d847c395233a676 (diff)
downloadpoky-065a23550eb845c378a65be5a7fd5f840fe4e448.tar.gz
libpam: add ptest support
Add ptest support. (From OE-Core rev: 016efb82e90a56707995d2a6addd34e6b28b6b99) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pam/libpam')
-rw-r--r--meta/recipes-extended/pam/libpam/run-ptest31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/pam/libpam/run-ptest b/meta/recipes-extended/pam/libpam/run-ptest
new file mode 100644
index 0000000000..69e729ce2a
--- /dev/null
+++ b/meta/recipes-extended/pam/libpam/run-ptest
@@ -0,0 +1,31 @@
1#! /bin/sh
2
3cd tests
4
5failed=0
6all=0
7
8for f in tst-*; do
9 "./$f" > /dev/null 2>&1
10 case "$?" in
11 0)
12 echo "PASS: $f"
13 all=$((all + 1))
14 ;;
15 77)
16 echo "SKIP: $f"
17 ;;
18 *)
19 echo "FAIL: $f"
20 failed=$((failed + 1))
21 all=$((all + 1))
22 ;;
23 esac
24done
25
26if [ "$failed" -eq 0 ] ; then
27 echo "All $all tests passed"
28else
29 echo "$failed of $all tests failed"
30fi
31