summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dbus/dbus/run-ptest
blob: 48535e13daddc843a0b1bc75398be54ff4c5dea6 (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
#!/bin/sh

output() {
  retcode=$?
  if [ $retcode -eq 0 ]
    then echo "PASS: $i"
  elif [ $retcode -eq 77 ]
    then echo "SKIP: $i"
  else echo "FAIL: $i"
  fi
}

export DBUS_TEST_HOMEDIR=./test
export XDG_RUNTIME_DIR=./test
export LD_LIBRARY_PATH=@PTEST_PATH@/test/.libs

files=`ls test/test-*`

for i in $files
do
     #these programs are used by testcase test-bus, don't run here
     if [ $i = "test/test-service" ] \
        || [ $i = "test/test-shell-service" ] \
        || [ $i = "test/test-segfault" ] \
        || [ $i = "test/test-bus" ]
     then
         continue
     fi

     ./$i ./test/data >/dev/null 2>&1
     output
done