blob: 48535e13daddc843a0b1bc75398be54ff4c5dea6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2
3output() {
Brad Bishop316dfdd2018-06-25 12:45:53 -04004 retcode=$?
5 if [ $retcode -eq 0 ]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006 then echo "PASS: $i"
Brad Bishop316dfdd2018-06-25 12:45:53 -04007 elif [ $retcode -eq 77 ]
8 then echo "SKIP: $i"
9 else echo "FAIL: $i"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010 fi
11}
12
Brad Bishop316dfdd2018-06-25 12:45:53 -040013export DBUS_TEST_HOMEDIR=./test
14export XDG_RUNTIME_DIR=./test
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015export LD_LIBRARY_PATH=@PTEST_PATH@/test/.libs
Brad Bishop316dfdd2018-06-25 12:45:53 -040016
17files=`ls test/test-*`
18
19for i in $files
Brad Bishopc342db32019-05-15 21:57:59 -040020do
21 #these programs are used by testcase test-bus, don't run here
22 if [ $i = "test/test-service" ] \
23 || [ $i = "test/test-shell-service" ] \
Brad Bishopc68388fc2019-08-26 01:33:31 -040024 || [ $i = "test/test-segfault" ] \
25 || [ $i = "test/test-bus" ]
Brad Bishopc342db32019-05-15 21:57:59 -040026 then
27 continue
28 fi
29
30 ./$i ./test/data >/dev/null 2>&1
31 output
32done
Brad Bishop316dfdd2018-06-25 12:45:53 -040033