1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Add missing test file.

This commit is contained in:
QC 2014-08-29 15:21:10 +02:00
parent 12258eb02b
commit f41657476e

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}