| 1 | #!/bin/bash |
| 2 | |
| 3 | : ${top_builddir:=../..} |
| 4 | : ${top_srcdir:=../..} |
| 5 | : ${builddir:=.} |
| 6 | : ${srcdir:=.} |
| 7 | : ${DISABLE_GUI_TESTS:=''} |
| 8 | |
| 9 | ibus-daemon --xim --panel disable --config disable & |
| 10 | sleep 30 |
| 11 | |
| 12 | tst=$1 |
| 13 | |
| 14 | for t in $DISABLE_GUI_TESTS; do |
| 15 | if test $t = `basename $tst`; then |
| 16 | exit 77 |
| 17 | fi |
| 18 | done |
| 19 | |
| 20 | $builddir/$tst |
| 21 | retval=$? |
| 22 | |
| 23 | ibus exit |
| 24 | |
| 25 | exit $retval |