diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-04 21:51:08 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-04 21:51:08 +0100 |
commit | 200f8e5faae0b56b52294ccff15560a13a42f582 (patch) | |
tree | 6f327e8df7a8e44cc69cc5bffad71f7f45048942 /test | |
parent | fefd992c11313732de59cca1a8178474954804d8 (diff) |
Do not test the ones that require window manager.
Diffstat (limited to 'test')
-rwxr-xr-x | test/run_dmenu_normal_window_test.sh | 9 | ||||
-rwxr-xr-x | test/run_test.sh | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/test/run_dmenu_normal_window_test.sh b/test/run_dmenu_normal_window_test.sh index 2fb731ef..24517d52 100755 --- a/test/run_dmenu_normal_window_test.sh +++ b/test/run_dmenu_normal_window_test.sh @@ -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' diff --git a/test/run_test.sh b/test/run_test.sh index 9f6bfff8..dc1f13e1 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -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 |