From 200f8e5faae0b56b52294ccff15560a13a42f582 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 4 Jan 2016 21:51:08 +0100 Subject: Do not test the ones that require window manager. --- test/run_dmenu_normal_window_test.sh | 9 ++++++++- test/run_test.sh | 6 ------ 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'test') 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 -- cgit v1.2.3