blob: d3eec08235d4ac4a0b08d3f48ba5bb74de29d2e9 [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
Andrew Geissler82c905d2020-04-13 13:39:40 -050022 #additionally, test-names needs to be run under X
Brad Bishopc342db32019-05-15 21:57:59 -040023 if [ $i = "test/test-service" ] \
24 || [ $i = "test/test-shell-service" ] \
Brad Bishopc68388fc2019-08-26 01:33:31 -040025 || [ $i = "test/test-segfault" ] \
Andrew Geissler82c905d2020-04-13 13:39:40 -050026 || [ $i = "test/test-bus" ] \
27 || [ $i = "test/test-names" ]
Brad Bishopc342db32019-05-15 21:57:59 -040028 then
29 continue
30 fi
31
32 ./$i ./test/data >/dev/null 2>&1
33 output
34done
Brad Bishop316dfdd2018-06-25 12:45:53 -040035