diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-12-31 23:27:06 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-12-31 23:27:06 +0100 |
commit | 58c856e22a14b9f14dbd9f02126ed9cb54bbcd2e (patch) | |
tree | fb80086e8b7d21cfa0138a959fbf00c0b9fa7f4c | |
parent | ade91a38756174e372405620794fefaebbc47a47 (diff) |
Add combi test
-rw-r--r-- | Makefile.am | 2 | ||||
-rwxr-xr-x | test/run_combi_test.sh | 22 |
2 files changed, 24 insertions, 0 deletions
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} |