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

1 by Bryce Harrington
Initial import
1
#!/bin/bash
2
3
. lib/xsmoke.lib
4
3 by Bryce Harrington
* Check running as non-root
5
if ! is_superuser ; then
6
    echo "This must be run as root"
7
    exit 1
8
fi
9
1 by Bryce Harrington
Initial import
10
# Check that X is NOT up and running currently
11
if is_running "gdm" || is_running "X" ; then
12
    echo "Please exit all X sessions and shut down gdm before running this test"
13
    exit 1
14
fi
15
3 by Bryce Harrington
* Check running as non-root
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
1 by Bryce Harrington
Initial import
27
echo "------------------------------------------------------------------------"
28
echo "X Startup and Static Configuration"
29
echo "------------------------------------------------------------------------"
30
tests/xst-xorg-conf.sh
31
32
echo "------------------------------------------------------------------------"
33
echo "Dynamic X Configuration"
34
echo "------------------------------------------------------------------------"
35
test_xorg_restart
36
tests/xst-xrandr.sh
37
38
echo "------------------------------------------------------------------------"
39
echo "Video Playback"
40
echo "------------------------------------------------------------------------"
41
test_xorg_restart
42
tests/xst-totem.sh
43
44
echo "------------------------------------------------------------------------"
45
echo "3D Functionality"
46
echo "------------------------------------------------------------------------"
47
test_xorg_restart
48
tests/xst-glxgears.sh