Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | output() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 4 | retcode=$? |
| 5 | if [ $retcode -eq 0 ] |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | then echo "PASS: $i" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | elif [ $retcode -eq 77 ] |
| 8 | then echo "SKIP: $i" |
| 9 | else echo "FAIL: $i" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | fi |
| 11 | } |
| 12 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | export DBUS_TEST_HOMEDIR=./test |
| 14 | export XDG_RUNTIME_DIR=./test |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | export LD_LIBRARY_PATH=@PTEST_PATH@/test/.libs |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | |
| 17 | files=`ls test/test-*` |
| 18 | |
| 19 | for i in $files |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 20 | do |
| 21 | #these programs are used by testcase test-bus, don't run here |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | #additionally, test-names needs to be run under X |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 23 | if [ $i = "test/test-service" ] \ |
| 24 | || [ $i = "test/test-shell-service" ] \ |
Brad Bishop | c68388fc | 2019-08-26 01:33:31 -0400 | [diff] [blame] | 25 | || [ $i = "test/test-segfault" ] \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 26 | || [ $i = "test/test-bus" ] \ |
| 27 | || [ $i = "test/test-names" ] |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 28 | then |
| 29 | continue |
| 30 | fi |
| 31 | |
| 32 | ./$i ./test/data >/dev/null 2>&1 |
| 33 | output |
| 34 | done |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 35 | |