mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 14:24:27 +00:00
Add fluxbox as wm for tests.
This commit is contained in:
parent
200f8e5faa
commit
68220a5b58
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue