From bcbf512dc48745443479694164e2de4bb813181d Mon Sep 17 00:00:00 2001 From: QC Date: Fri, 29 Aug 2014 16:24:39 +0200 Subject: Add another test. --- test/run_switchdialog_test.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test/run_switchdialog_test.sh (limited to 'test/run_switchdialog_test.sh') diff --git a/test/run_switchdialog_test.sh b/test/run_switchdialog_test.sh new file mode 100755 index 00000000..fc4f5f54 --- /dev/null +++ b/test/run_switchdialog_test.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# Create fake X +Xvfb :200 & +XPID=$! + +# wait till it is up, run rofi with error message +sleep 1 && ./rofi -rnow -display :200 & +RPID=$! + +# send enter. +sleep 5; +DISPLAY=:200 xdotool key 'shift+slash' +sleep 0.4 +DISPLAY=:200 xdotool key 'shift+slash' +sleep 0.4 +DISPLAY=:200 xdotool key 'shift+slash' +sleep 0.4 +DISPLAY=:200 xdotool key Escape + +# Get result, kill xvfb +wait ${RPID} +RETV=$? +kill ${XPID} +exit ${RETV} -- cgit v1.2.3