1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/test/run_dmenu_test.sh
Dave Davenport 229bb6931b Play with adding some more test, bug fixes
* delete an invalid memmove in textbox
2014-08-30 20:45:08 +02:00

24 lines
364 B
Bash
Executable file

#!/usr/bin/env bash
# wait till it is up, run rofi with error message
sleep 1;
echo -e -n "aap\nnoot\nmies" | rofi -dmenu > output.txt &
RPID=$!
# send enter.
sleep 5;
xdotool key 'Down'
sleep 0.4
xdotool key 'Down'
sleep 0.4
xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
if [ `cat output.txt` != 'mies' ]
then
exit 1
fi
exit ${RETV}