Add daemon test.

This commit is contained in:
Dave Davenport 2015-12-31 22:20:43 +01:00
parent 745f9f3c62
commit 7364e9abf9
1 changed files with 24 additions and 0 deletions

24
test/run_daemon_test.sh Executable file
View File

@ -0,0 +1,24 @@
#!/usr/bin/env bash
export ROFI_PNG_OUTPUT=out.png
rofi -modi run -key-run Alt+F2 &
RPID=$!
# send enter.
sleep 3;
xdotool key Alt+F2
sleep 3;
xdotool key 't'
sleep 0.4
xdotool key 'r'
sleep 0.4
xdotool key 'u'
sleep 0.4
xdotool key Return
sleep 1;
kill -SIGINT ${RPID}
# Get result, kill xvfb
wait ${RPID}
RETV=$?
exit ${RETV}