From 58c856e22a14b9f14dbd9f02126ed9cb54bbcd2e Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 31 Dec 2015 23:27:06 +0100 Subject: [PATCH] Add combi test --- Makefile.am | 2 ++ test/run_combi_test.sh | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 test/run_combi_test.sh diff --git a/Makefile.am b/Makefile.am index b7f0330a..4121c9d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -194,6 +194,8 @@ test-x: ${bin_PROGRAMS} $(top_srcdir)/test/run_test.sh 212 $(top_srcdir)/test/xr_dump_test.sh $(top_builddir) $(top_srcdir) echo "Test drun" $(top_srcdir)/test/run_test.sh 213 $(top_srcdir)/test/run_drun_test.sh $(top_builddir) + echo "Test combi" + $(top_srcdir)/test/run_test.sh 214 $(top_srcdir)/test/run_combi_test.sh $(top_builddir) echo "End tests" diff --git a/test/run_combi_test.sh b/test/run_combi_test.sh new file mode 100755 index 00000000..5e165c2b --- /dev/null +++ b/test/run_combi_test.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +rofi -show combi -modi combi -combi-modi run,drun & +RPID=$! + +# send enter. +sleep 5; +xdotool key 't' +sleep 0.4 +xdotool key 'r' +sleep 0.4 +xdotool key 'u' +sleep 0.4 +xdotool key 'e' +sleep 0.4 +xdotool key Return + +# Get result, kill xvfb +wait ${RPID} +RETV=$? + +exit ${RETV}