diff options
Diffstat (limited to 'meta/recipes-core/dbus/dbus/run-ptest')
-rwxr-xr-x | meta/recipes-core/dbus/dbus/run-ptest | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/meta/recipes-core/dbus/dbus/run-ptest b/meta/recipes-core/dbus/dbus/run-ptest index d3eec08235..54f43e1f68 100755 --- a/meta/recipes-core/dbus/dbus/run-ptest +++ b/meta/recipes-core/dbus/dbus/run-ptest | |||
@@ -1,35 +1,3 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | gnome-desktop-testing-runner dbus | |
3 | output() { | ||
4 | retcode=$? | ||
5 | if [ $retcode -eq 0 ] | ||
6 | then echo "PASS: $i" | ||
7 | elif [ $retcode -eq 77 ] | ||
8 | then echo "SKIP: $i" | ||
9 | else echo "FAIL: $i" | ||
10 | fi | ||
11 | } | ||
12 | |||
13 | export DBUS_TEST_HOMEDIR=./test | ||
14 | export XDG_RUNTIME_DIR=./test | ||
15 | export LD_LIBRARY_PATH=@PTEST_PATH@/test/.libs | ||
16 | |||
17 | files=`ls test/test-*` | ||
18 | |||
19 | for i in $files | ||
20 | do | ||
21 | #these programs are used by testcase test-bus, don't run here | ||
22 | #additionally, test-names needs to be run under X | ||
23 | if [ $i = "test/test-service" ] \ | ||
24 | || [ $i = "test/test-shell-service" ] \ | ||
25 | || [ $i = "test/test-segfault" ] \ | ||
26 | || [ $i = "test/test-bus" ] \ | ||
27 | || [ $i = "test/test-names" ] | ||
28 | then | ||
29 | continue | ||
30 | fi | ||
31 | |||
32 | ./$i ./test/data >/dev/null 2>&1 | ||
33 | output | ||
34 | done | ||
35 | 3 | ||