summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-04 21:51:08 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-04 21:51:08 +0100
commit200f8e5faae0b56b52294ccff15560a13a42f582 (patch)
tree6f327e8df7a8e44cc69cc5bffad71f7f45048942
parentfefd992c11313732de59cca1a8178474954804d8 (diff)
Do not test the ones that require window manager.
-rw-r--r--.travis.yml1
-rw-r--r--Makefile.am2
-rwxr-xr-xtest/run_dmenu_normal_window_test.sh9
-rwxr-xr-xtest/run_test.sh6
4 files changed, 10 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 56a04033..f6c3501f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,6 @@ addons:
- xvfb
- discount
- xdotool
- - fluxbox
compiler:
- gcc
diff --git a/Makefile.am b/Makefile.am
index e82b6fcd..bdbd6c34 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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"
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