mirror of
https://github.com/lbonn/rofi
synced 2024-11-23 04:13:03 +00:00
Do not test the ones that require window manager.
This commit is contained in:
parent
fefd992c11
commit
200f8e5faa
4 changed files with 10 additions and 8 deletions
|
@ -16,7 +16,6 @@ addons:
|
|||
- xvfb
|
||||
- discount
|
||||
- xdotool
|
||||
- fluxbox
|
||||
|
||||
compiler:
|
||||
- gcc
|
||||
|
|
|
@ -204,6 +204,8 @@ test-x: ${bin_PROGRAMS}
|
|||
$(top_srcdir)/test/run_test.sh 217 $(top_srcdir)/test/run_fuzzy_test.sh $(top_builddir)
|
||||
echo "Test config dump"
|
||||
$(top_srcdir)/test/run_test.sh 218 $(top_srcdir)/test/xr_config_test.sh $(top_builddir) $(top_srcdir)
|
||||
|
||||
test-x1: ${bin_PROGRAMS}
|
||||
echo "Test dmenu-normal-window"
|
||||
$(top_srcdir)/test/run_test.sh 219 $(top_srcdir)/test/run_dmenu_normal_window_test.sh $(top_builddir)
|
||||
echo "Test window"
|
||||
|
|
|
@ -3,9 +3,16 @@
|
|||
# wait till it is up, run rofi with error message
|
||||
sleep 1;
|
||||
echo -e -n "aap\nnoot\nmies" | rofi -dmenu -normal-window > output.txt &
|
||||
sleep 1
|
||||
echo "move"
|
||||
xdotool mousemove 10 10
|
||||
sleep 1
|
||||
echo "click"
|
||||
xdotool click 1
|
||||
RPID=$!
|
||||
sleep 4
|
||||
xdotool getactivewindow windowsize 100% 100%
|
||||
#xdotool getactivewindow windowsize 100% 100%
|
||||
echo "Window resized"
|
||||
# send enter.
|
||||
sleep 1
|
||||
xdotool key 'Down'
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
XPID=
|
||||
FPID=
|
||||
function create_fake_x ( )
|
||||
{
|
||||
export DISPLAY=":$1"
|
||||
|
@ -9,9 +8,6 @@ function create_fake_x ( )
|
|||
Xvfb ${DISPLAY} &
|
||||
XPID=$!
|
||||
sleep 1
|
||||
fluxbox &
|
||||
FPID=$!
|
||||
sleep 1
|
||||
}
|
||||
|
||||
function destroy_fake_x ( )
|
||||
|
@ -19,8 +15,6 @@ function destroy_fake_x ( )
|
|||
if [ -n "${XPID}" ]
|
||||
then
|
||||
echo "Stopping fake X: ${XPID}"
|
||||
kill ${FPID}
|
||||
wait ${FPID}
|
||||
kill ${XPID}
|
||||
wait ${XPID}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue