~ubuntu-branches/ubuntu/raring/signon-ui/raring

« back to all changes in this revision

Viewing changes to tests/functional/tests.sh

  • Committer: Ken VanDine
  • Date: 2012-04-04 19:56:19 UTC
  • mfrom: (40.2.3 trunk)
  • Revision ID: ken.vandine@canonical.com-20120404195619-27d57uzqq59ohbus
Tags: 0.3+bzr43-0precise1
releasing version 0.3+bzr43-0precise1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
 
3
 
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
4
 
        echo "No D-Bus session active; skipping functional tests"
 
3
if test -z "$DISPLAY" ; then
 
4
        echo "No X11 display; skipping functional tests"
5
5
        exit 0
6
6
fi
7
7
 
8
 
export QT_ACCESSIBILITY=1
9
8
export LC_ALL=C
10
9
export HOME="$SRCDIR/tests/functional"
11
 
 
12
 
"$SRCDIR/tests/functional/run-with-signon-ui.sh" \
13
 
        mago --nologcapture ./signon-ui-test.py
 
10
export SSOUI_DAEMON_TIMEOUT=10
 
11
 
 
12
"$SRCDIR/tests/functional/run-with-signon-ui.sh" \
 
13
        ./dialog.rb
 
14
 
 
15
# Web tests
 
16
./server.rb &
 
17
SERVER_PID="$!"
 
18
"$SRCDIR/tests/functional/run-with-signon-ui.sh" \
 
19
        ./webpage.rb
 
20
kill "$SERVER_PID"
 
21