aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dbus/dbus/run-ptest
blob: 353ba1e90595b32c8af0d6f5884c92f0d7f2ce8d (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
#!/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
		./$i ./test/data >/dev/null
		output
	done