1#!/bin/sh 2 3output() { 4 retcode=$? 5 if [ $retcode -eq 0 ] 6 then echo "PASS: $i" 7 elif [ $retcode -eq 77 ] 8 then echo "SKIP: $i" 9 else echo "FAIL: $i" 10 fi 11} 12 13export DBUS_TEST_HOMEDIR=./test 14export XDG_RUNTIME_DIR=./test 15export LD_LIBRARY_PATH=@PTEST_PATH@/test/.libs 16 17files=`ls test/test-*` 18 19for i in $files 20do 21 #these programs are used by testcase test-bus, don't run here 22 #additionally, test-names needs to be run under X 23 if [ $i = "test/test-service" ] \ 24 || [ $i = "test/test-shell-service" ] \ 25 || [ $i = "test/test-segfault" ] \ 26 || [ $i = "test/test-bus" ] \ 27 || [ $i = "test/test-names" ] 28 then 29 continue 30 fi 31 32 ./$i ./test/data >/dev/null 2>&1 33 output 34done 35 36