~ubuntu-branches/ubuntu/saucy/glib2.0/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/tests/installed-tests

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-06-25 12:43:56 UTC
  • mfrom: (1.63.22)
  • Revision ID: package-import@ubuntu.com-20130625124356-597xf4lpikauchiy
Tags: 2.37.3-1ubuntu1
* Resynchronise on unrelease Debian SVN (glib is in NEW there). Remaining
  change:
  - Build-Depend on python:any for cross building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
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>
 
5
 
 
6
# This should be replaced by use of gnome-desktop-testing-runner when it is packaged
 
7
EXIT=0
 
8
 
 
9
export XDG_RUNTIME_DIR=$ADTTMP
 
10
 
 
11
runtest() {
 
12
    if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
 
13
        DBUS_LAUNCH="dbus-launch --exit-with-session"
 
14
    fi
 
15
    if [ -z "$DISPLAY" ]; then
 
16
        XVFB_RUN="xvfb-run -a"
 
17
    fi
 
18
 
 
19
    $DBUS_LAUNCH $XVFB_RUN $1
 
20
 
 
21
    EXIT=$((EXIT+$?))
 
22
}
 
23
 
 
24
for test in $(find /usr/lib/glib2.0/installed-tests/glib -executable); do
 
25
    runtest $test
 
26
done
 
27
 
 
28
exit $(test $EXIT -gt 0)