summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/acl/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/attr/acl/run-ptest')
-rw-r--r--meta/recipes-support/attr/acl/run-ptest37
1 files changed, 26 insertions, 11 deletions
diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest
index 3af75c84fe..f28d8c1212 100644
--- a/meta/recipes-support/attr/acl/run-ptest
+++ b/meta/recipes-support/attr/acl/run-ptest
@@ -1,16 +1,31 @@
1#!/bin/sh 1#!/bin/sh
2#
3#This script is used to run acl test suites
4 2
5#umask 077 3failed=0
4all=0
6 5
7mkdir -p /tmp/acl-ptest/test
8cp test/test.* /tmp/acl-ptest/test
9 6
10set +e 7for f in *.test; do
11make test-suite.log 8 LD_PRELOAD=$(pwd)/libtestlookup.so ./run $f
12exitcode=$? 9 case "$?" in
13if [ $exitcode -ne 0 -a -e test-suite.log ]; then 10 0)
14 cat test-suite.log 11 echo "PASS: $f"
12 all=$((all + 1))
13 ;;
14 77)
15 echo "SKIP: $f"
16 ;;
17 *)
18 echo "FAIL: $f"
19 failed=$((failed + 1))
20 all=$((all + 1))
21 ;;
22 esac
23done
24
25if [ "$failed" -eq 0 ] ; then
26 echo "All $all tests passed"
27 exit 0
28else
29 echo "$failed of $all tests failed"
30 exit 1
15fi 31fi
16exit $exitcode