Add combi test

This commit is contained in:
Dave Davenport 2015-12-31 23:27:06 +01:00
parent ade91a3875
commit 58c856e22a
2 changed files with 24 additions and 0 deletions

View file

@ -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"

22
test/run_combi_test.sh Executable file
View file

@ -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}