Debian Codegraph @

debian/tests/installed-tests

raw
1 #!/bin/bash
2
3 export G_MESSAGES_DEBUG='all'
4 export TMPDIR=$AUTOPKGTEST_TMP
5
6 OUTPUT_LOG=$AUTOPKGTEST_TMP/ibus-installed-tests-output.log
7 RESULT_LOG=$AUTOPKGTEST_TMP/ibus-installed-tests-result.log
8
9 /usr/libexec/ibus-desktop-testing-runner \
10 --no-graphics \
11 --runner=gnome \
12 --tests=ibus \
13 --output=$OUTPUT_LOG \
14 --result=$RESULT_LOG
15 RETVAL=$?
16
17 echo "======================================================================"
18 echo "=== ibus-desktop-testing-runner returned: $RETVAL"
19 echo "======================================================================"
20
21 echo "======================================================================"
22 echo "=== BEGINNING of output log"
23 echo "======================================================================"
24 cat $OUTPUT_LOG
25 echo "======================================================================"
26 echo "=== END of output log"
27 echo "======================================================================"
28 echo
29
30 echo "======================================================================"
31 echo "=== BEGINNING of result log"
32 echo "======================================================================"
33 cat $RESULT_LOG
34 echo "======================================================================"
35 echo "=== END of result log"
36 echo "======================================================================"
37 echo
38
39 if [ $RETVAL -eq 0 ] && grep "^FAIL: 0$" $RESULT_LOG; then
40 echo "======================================================================"
41 echo "=== RESULT: PASS
42 echo "======================================================================"
43 exit 0
44 else
45 echo "======================================================================"
46 echo "=== RESULT: FAIL
47 echo "======================================================================"
48 exit 1
49 fi