gtk3/debian/tests/installed-tests
Simon McVittie dfa31ce3c1 d/tests, d/run-tests.sh: Copy run-with-display from gtk4
This should make the build-time tests a bit more robust, by using the
-noreset option to avoid a race condition (see #981201).
2023-01-03 12:44:55 +00:00

29 lines
702 B
Bash
Executable File

#!/bin/sh
# autopkgtest check: Run the installed-tests to verify GTK works correctly
# Based on glib2.0's d/tests/installed-tests, (C) 2013 Canonical Ltd.
set -e
# Disable gvfs if it happens to be installed. We want to test the built-in
# stuff
export GIO_USE_VFS=local
export GIO_USE_VOLUME_MONITOR=unix
export XDG_RUNTIME_DIR="$AUTOPKGTEST_TMP"
# Workaround for #1025312
export LIBGL_ALWAYS_SOFTWARE=1
tests=$(gnome-desktop-testing-runner -l gtk+ |
cut -f1 -d' ' |
grep -v '^gtk./a11ystate.test$' |
grep -v '^gtk./reftests')
exec \
debian/tests/run-with-display x11 \
dbus-run-session -- \
gnome-desktop-testing-runner \
--report-directory="$AUTOPKGTEST_ARTIFACTS" \
--tap \
$tests