3
if [ -e ../lib/xsmoke.lib ] ; then
5
elif [ -e lib/xsmoke.lib ] ; then
10
# TODO: Detect or take as an input
13
# xrandr version testing
14
test_count=$(( $test_count + 1 ))
15
xrandr_expected_version=`get_installed_version "xrandr" | sed -e "s/^[0-9]://" | cut -d- -f1`
16
xrandr_version=`xrandr -d $DISPLAY --version`
18
version=`echo $xrandr_version | sed -e "s/^.*version \([0-9\.]\+\)$/\1/"`
20
output=`echo $xrandr_expected_version | egrep "^$version" > /dev/null`
22
pass "xrandr --version meets $xrandr_version_expected"
24
fail "Expected xrandr version $xrandr_expected_version, but xrandr reports $version"
27
fail "Could not determine version from xrandr --version: $xrandr_version"
30
fail "xrandr --version returned an error: $xrandr_version"
33
# xrandr output testing
34
#test_count=$(( $test_count + 1 ))
35
#xrandr_verbose=`xrandr -d :0 --verbose`
37
# pass "xrandr generated verbose output"
39
# fail "xrandr failed to provide verbose output"
43
MODES=$(../xrandr-res | grep -e "^VGA-0" | cut -d ":" -f2 | cut -d "=" -f1)
44
for mode in $MODES; do
46
xrandr --output $OUTPUT --mode $mode
50
xrandr --output $OUTPUT --auto
53
xrandr --output $OUTPUT --reflect xy
56
xrandr --output $OUTPUT --reflect normal
59
xrandr --output $OUTPUT --off
62
xrandr --output $OUTPUT --auto
65
xrandr --output $OUTPUT --rotate inverted
68
xrandr --output $OUTPUT --rotate left
71
xrandr --output $OUTPUT --rotate right
74
xrandr --output $OUTPUT --rotate normal
77
# Verify Xorg restarts correctly as currently configured
80
echo "Completed all tests"