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

View file

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