Package list kwindowsystem / b87f9ad
Move auto_tests back to autopkgtests using xephyr Maximiliano Curia 5 years ago
2 changed file(s) with 8 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
00 Tests: testsuite
11 Depends: @, @builddeps@, build-essential,
22 xvfb, xauth, dbus-x11, openbox, xserver-xephyr
3 Restrictions: rw-build-tree
3 Restrictions: build-needed
44
55 Tests: acc
66 Depends: @, dh-acc, exuberant-ctags
00 #!/bin/sh
11
2 if [ -d /usr/lib/ccache ]; then
3 export PATH="/usr/lib/ccache:$PATH"
4 fi
5 debian/rules clean 2>&1
6 dpkg-source --before-build .
7 debian/rules build 2>&1
82 [ -e debian/tests.home ] || mkdir debian/tests.home
93 export HOME="$(pwd)/debian/tests.home"
10 xvfb-run -a --server-args="-screen 0 1024x768x24+32" \
11 dbus-launch --exit-with-session debian/tests/testsuite.xsession
12 ret=$?
13 rm -rf debian/tests.home
14 exit $ret
4 mkdir "$HOME"/.config || true
5 xvfb-run -a --server-args="-screen 0 1024x768x24" \
6 Xephyr -reset -br -screen 1024x768 :2 & x_pid=$!
7
8 trap "{ kill ${x_pid}; rm -rf debian/tests.home }" EXIT
9
10 DISPLAY=:2 dbus-launch --exit-with-session debian/tests/testsuite.xsession