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 -eu
6
7 namespace=gtk-4.0/
8
9 # Disable gvfs if it happens to be installed. We want to test the built-in
10 # stuff
11 export GIO_USE_VFS=local
12 export GIO_USE_VOLUME_MONITOR=unix
13
14 # The powervr vulkan driver emits warnings when it isn't used
15 export VK_LOADER_DRIVERS_DISABLE="*power*"
16
17 export XDG_RUNTIME_DIR="$AUTOPKGTEST_TMP"
18 export HOME="$AUTOPKGTEST_TMP"
19
20 # https://gitlab.gnome.org/GNOME/gtk/-/commit/1765e1b7c
21 export GTK_DEBUG=css
22
23 exec dbus-run-session -- \
24 debian/tests/run-with-display "$GDK_BACKEND" \
25 debian/tests/run-with-locales \
26 --generate de_DE.UTF-8 \
27 --generate en_GB.UTF-8 \
28 --generate en_US.UTF-8 \
29 --generate sv_SE=ISO-8859-1 \
30 -- \
31 gnome-desktop-testing-runner \
32 --report-directory="$AUTOPKGTEST_ARTIFACTS" \
33 --tap \
34 "$namespace"