Files
gtk3/debian/tests/installed-tests
Simon McVittie 7c271ab98e Force software rendering during tests
Workaround for Mesa regression #1025312. We expect only software
rendering to be available in a buildd or autopkgtest environment anyway.
2022-12-02 15:31:57 +00:00

28 lines
705 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 dbus-run-session -- \
xvfb-run -a -s "-screen 0 1024x768x24" \
gnome-desktop-testing-runner \
--report-directory="$AUTOPKGTEST_ARTIFACTS" \
--tap \
$tests