2
# autopkgtest check: Run the installed-tests to verify glib works correctly
3
# (C) 2013 Canonical Ltd.
4
# Author: Iain Lane <iain.lane@canonical.com>
6
# This should be replaced by use of gnome-desktop-testing-runner when it is packaged
9
export XDG_RUNTIME_DIR=$ADTTMP
12
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
13
DBUS_LAUNCH="dbus-launch --exit-with-session"
15
if [ -z "$DISPLAY" ]; then
16
XVFB_RUN="xvfb-run -a"
19
$DBUS_LAUNCH $XVFB_RUN $1
24
for test in $(find /usr/lib/glib2.0/installed-tests/glib -executable); do
28
exit $(test $EXIT -gt 0)