Debian Codegraph @

debian/tests/installed-tests

raw
1 #!/bin/sh
2 # autopkgtest check: Run the installed-tests to verify GTK works correctly
3 # Based on glib2.0's d/tests/installed-tests, (C) 2013 Canonical Ltd.
4
5 set -ex
6
7 # Disable gvfs if it happens to be installed. We want to test the built-in
8 # stuff
9 export GIO_USE_VFS=local
10 export GIO_USE_VOLUME_MONITOR=unix
11
12 export XDG_RUNTIME_DIR="$AUTOPKGTEST_TMP"
13
14 # Workaround for #1025312
15 export LIBGL_ALWAYS_SOFTWARE=1
16
17 DEB_HOST_MULTIARCH="$(cat /usr/libexec/installed-tests/gtk+/DEB_HOST_MULTIARCH)"
18 # Some packages (gcin, hime, ibus) rely on being able to run
19 # gtk-query-immmodules by this path; make sure they won't regress
20 "/usr/lib/${DEB_HOST_MULTIARCH}/libgtk-3-0/gtk-query-immodules-3.0"
21
22 tests=$(gnome-desktop-testing-runner -l gtk+ |
23 cut -f1 -d' ' |
24 grep -v '^gtk./a11ystate.test$' |
25 grep -v '^gtk./reftests')
26
27 exec \
28 debian/tests/run-with-display x11 \
29 dbus-run-session -- \
30 gnome-desktop-testing-runner \
31 --report-directory="$AUTOPKGTEST_ARTIFACTS" \
32 --tap \
33 $tests