mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Add missing test file.
This commit is contained in:
parent
12258eb02b
commit
f41657476e
1 changed files with 18 additions and 0 deletions
18
test/run_errormsg_test.sh
Executable file
18
test/run_errormsg_test.sh
Executable 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}
|
Loading…
Reference in a new issue