diff options
Diffstat (limited to 'meta/recipes-core/dbus/dbus/run-ptest')
-rwxr-xr-x | meta/recipes-core/dbus/dbus/run-ptest | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/meta/recipes-core/dbus/dbus/run-ptest b/meta/recipes-core/dbus/dbus/run-ptest index c72d083a91..8a8970ee20 100755 --- a/meta/recipes-core/dbus/dbus/run-ptest +++ b/meta/recipes-core/dbus/dbus/run-ptest | |||
@@ -1,10 +1,24 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | output() { | 3 | output() { |
4 | if [ $? -eq 0 ] | 4 | retcode=$? |
5 | if [ $retcode -eq 0 ] | ||
5 | then echo "PASS: $i" | 6 | then echo "PASS: $i" |
6 | else echo "FAIL: $i" | 7 | elif [ $retcode -eq 77 ] |
8 | then echo "SKIP: $i" | ||
9 | else echo "FAIL: $i" | ||
7 | fi | 10 | fi |
8 | } | 11 | } |
9 | 12 | ||
10 | for i in `ls test/test-*`; do ./$i ./test/data DBUS_TEST_HOMEDIR=./test >/dev/null; output; done | 13 | export DBUS_TEST_HOMEDIR=./test |
14 | export XDG_RUNTIME_DIR=./test | ||
15 | export LD_LIBRARY_PATH=/usr/lib/dbus-test/ptest/test/.libs | ||
16 | |||
17 | files=`ls test/test-*` | ||
18 | |||
19 | for i in $files | ||
20 | do | ||
21 | ./$i ./test/data >/dev/null | ||
22 | output | ||
23 | done | ||
24 | |||