aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dbus/dbus/run-ptest
blob: cf2e68fa02d6dec5360fdb9e66885c61e6b30fe8 (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
#!/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" ]
     then
         continue
     fi

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