Add simple drun test

This commit is contained in:
Dave Davenport 2015-12-31 23:14:38 +01:00
parent e102e11637
commit ade91a3875
2 changed files with 24 additions and 0 deletions

View File

@ -192,6 +192,8 @@ test-x: ${bin_PROGRAMS}
$(top_srcdir)/test/run_test.sh 211 $(top_srcdir)/test/run_daemon_test.sh $(top_builddir)
echo "Test xr dump"
$(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 "End tests"

22
test/run_drun_test.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
rofi -show drun -modi 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}