Add missing test file.

This commit is contained in:
QC 2014-08-29 15:21:10 +02:00
parent 12258eb02b
commit f41657476e
1 changed files with 18 additions and 0 deletions

18
test/run_errormsg_test.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Create fake X
Xvfb :200 &
XPID=$!
# wait till it is up, run rofi with error message
sleep 1 && ./rofi -e "Printing error message" -display :200 &
RPID=$!
# send enter.
sleep 5 && DISPLAY=:200 xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
kill ${XPID}
exit ${RETV}