diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/run_fuzzy_test.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/run_fuzzy_test.sh b/test/run_fuzzy_test.sh new file mode 100755 index 00000000..e7e5d81a --- /dev/null +++ b/test/run_fuzzy_test.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +echo -en "nooty\naap\nnoot\nmies" | rofi -fuzzy -dmenu > output.txt & +RPID=$! + +# send enter. +sleep 5; +xdotool type 'nty' +sleep 0.4 +xdotool key Return + +# Get result, kill xvfb +wait ${RPID} +RETV=$? +OUTPUT=$(cat output.txt) +if [ "${OUTPUT}" != 'nooty' ] +then + echo "Got: '${OUTPUT}' expected 'nooty'" + exit 1 +fi + +exit ${RETV} |