1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Add fluxbox as wm for tests.

This commit is contained in:
Dave Davenport 2016-01-05 16:46:43 +01:00
parent 200f8e5faa
commit 68220a5b58
2 changed files with 8 additions and 1 deletions

View file

@ -16,6 +16,7 @@ addons:
- xvfb
- discount
- xdotool
- fluxbox
compiler:
- gcc
@ -29,6 +30,7 @@ script:
- make test
# to re-enable if xdotool is allowed.
- make test-x
- make test-x1
- gcov source/rofi.c
- make distcheck

View file

@ -1,12 +1,15 @@
#!/usr/bin/env bash
XPID=
FPID=
function create_fake_x ( )
{
export DISPLAY=":$1"
echo "Starting fake X: ${DISPLAY}"
Xvfb ${DISPLAY} &
XPID=$!
fluxbox &
FPID=$!
sleep 1
}
@ -14,7 +17,9 @@ function destroy_fake_x ( )
{
if [ -n "${XPID}" ]
then
echo "Stopping fake X: ${XPID}"
echo "Stopping fake X: ${XPID} - ${FPID}"
kill ${FPID}
wait ${FPID}
kill ${XPID}
wait ${XPID}
fi