1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-10-27 05:23:18 -04:00
rofi/test/run_dmenu_custom_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

30 lines
414 B
Bash
Executable file

#!/usr/bin/env bash
echo -e -n "aap\nnoot\nmies" | rofi -width -30 -dmenu > output.txt &
RPID=$!
# send enter.
sleep 5;
xdotool key 'c'
sleep 0.2
xdotool key 'o'
sleep 0.2
xdotool key 'f'
sleep 0.2
xdotool key 'f'
sleep 0.2
xdotool key 'e'
sleep 0.2
xdotool key 'e'
sleep 0.2
xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
if [ `cat output.txt` != 'coffee' ]
then
exit 1
fi
exit ${RETV}