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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

. lib/xsmoke.lib

if ! is_superuser ; then
    echo "This must be run as root"
    exit 1
fi

# Check that X is NOT up and running currently
if is_running "gdm" || is_running "X" ; then
    echo "Please exit all X sessions and shut down gdm before running this test"
    exit 1
fi

# Check presence of prerequisites
if ! -e "/home/bryce/Examples/Experience ubuntu.ogg" ; then
    echo "Pre-requisite file '/home/bryce/Examples/Experience ubuntu.ogg' is missing"
    exit 1
fi

if ! $(which wmctrl > /dev/null) ; then
    echo "Pre-requsite wmctrl not installed"
    exit 1
fi

echo "------------------------------------------------------------------------"
echo "X Startup and Static Configuration"
echo "------------------------------------------------------------------------"
tests/xst-xorg-conf.sh

echo "------------------------------------------------------------------------"
echo "Dynamic X Configuration"
echo "------------------------------------------------------------------------"
test_xorg_restart
tests/xst-xrandr.sh

echo "------------------------------------------------------------------------"
echo "Video Playback"
echo "------------------------------------------------------------------------"
test_xorg_restart
tests/xst-totem.sh

echo "------------------------------------------------------------------------"
echo "3D Functionality"
echo "------------------------------------------------------------------------"
test_xorg_restart
tests/xst-glxgears.sh