~ubuntu-x-swat/xorg-server/xsmoke

« back to all changes in this revision

Viewing changes to runtests.sh

  • Committer: Bryce Harrington
  • Date: 2008-12-06 07:28:57 UTC
  • Revision ID: bryce@canonical.com-20081206072857-0z6r4g7jaazt3qt0
* Check running as non-root
* Check pre-requisites on initial startup
* Clear /tmp/.X*-lock files when restarting X
* Fix include paths
* Force xorg.conf backup

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
. lib/xsmoke.lib
4
4
 
 
5
if ! is_superuser ; then
 
6
    echo "This must be run as root"
 
7
    exit 1
 
8
fi
 
9
 
5
10
# Check that X is NOT up and running currently
6
11
if is_running "gdm" || is_running "X" ; then
7
12
    echo "Please exit all X sessions and shut down gdm before running this test"
8
13
    exit 1
9
14
fi
10
15
 
 
16
# Check presence of prerequisites
 
17
if ! -e "/home/bryce/Examples/Experience ubuntu.ogg" ; then
 
18
    echo "Pre-requisite file '/home/bryce/Examples/Experience ubuntu.ogg' is missing"
 
19
    exit 1
 
20
fi
 
21
 
 
22
if ! $(which wmctrl > /dev/null) ; then
 
23
    echo "Pre-requsite wmctrl not installed"
 
24
    exit 1
 
25
fi
 
26
 
11
27
echo "------------------------------------------------------------------------"
12
28
echo "X Startup and Static Configuration"
13
29
echo "------------------------------------------------------------------------"
17
33
echo "Dynamic X Configuration"
18
34
echo "------------------------------------------------------------------------"
19
35
test_xorg_restart
20
 
tests/xst-xrandr-res.sh
21
36
tests/xst-xrandr.sh
22
37
 
23
38
echo "------------------------------------------------------------------------"