mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
Issue #275 test case
This commit is contained in:
parent
5f7694fc62
commit
264e9e5b0e
2 changed files with 24 additions and 0 deletions
|
@ -178,6 +178,8 @@ test-x: ${bin_PROGRAMS}
|
||||||
$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir)
|
$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir)
|
||||||
echo "Issue 256"
|
echo "Issue 256"
|
||||||
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
|
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
|
||||||
|
echo "Issue 275"
|
||||||
|
$(top_srcdir)/test/run_test.sh 207 $(top_srcdir)/test/run_issue_275.sh $(top_builddir)
|
||||||
echo "End tests"
|
echo "End tests"
|
||||||
|
|
||||||
|
|
||||||
|
|
22
test/run_issue_275.sh
Executable file
22
test/run_issue_275.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo -e "aap\nnoot\nmies" | rofi -dmenu &
|
||||||
|
RPID=$!
|
||||||
|
|
||||||
|
# send enter.
|
||||||
|
sleep 5;
|
||||||
|
xdotool key 't'
|
||||||
|
sleep 0.4
|
||||||
|
xdotool key 'r'
|
||||||
|
sleep 0.4
|
||||||
|
xdotool key 'u'
|
||||||
|
sleep 0.4
|
||||||
|
xdotool key 'e'
|
||||||
|
sleep 0.4
|
||||||
|
xdotool key End
|
||||||
|
|
||||||
|
# Get result, kill xvfb
|
||||||
|
wait ${RPID}
|
||||||
|
RETV=$?
|
||||||
|
|
||||||
|
exit ${RETV}
|
Loading…
Add table
Add a link
Reference in a new issue