mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
Add combi test
This commit is contained in:
parent
ade91a3875
commit
58c856e22a
2 changed files with 24 additions and 0 deletions
|
@ -194,6 +194,8 @@ test-x: ${bin_PROGRAMS}
|
||||||
$(top_srcdir)/test/run_test.sh 212 $(top_srcdir)/test/xr_dump_test.sh $(top_builddir) $(top_srcdir)
|
$(top_srcdir)/test/run_test.sh 212 $(top_srcdir)/test/xr_dump_test.sh $(top_builddir) $(top_srcdir)
|
||||||
echo "Test drun"
|
echo "Test drun"
|
||||||
$(top_srcdir)/test/run_test.sh 213 $(top_srcdir)/test/run_drun_test.sh $(top_builddir)
|
$(top_srcdir)/test/run_test.sh 213 $(top_srcdir)/test/run_drun_test.sh $(top_builddir)
|
||||||
|
echo "Test combi"
|
||||||
|
$(top_srcdir)/test/run_test.sh 214 $(top_srcdir)/test/run_combi_test.sh $(top_builddir)
|
||||||
echo "End tests"
|
echo "End tests"
|
||||||
|
|
||||||
|
|
||||||
|
|
22
test/run_combi_test.sh
Executable file
22
test/run_combi_test.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
rofi -show combi -modi combi -combi-modi run,drun &
|
||||||
|
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 Return
|
||||||
|
|
||||||
|
# Get result, kill xvfb
|
||||||
|
wait ${RPID}
|
||||||
|
RETV=$?
|
||||||
|
|
||||||
|
exit ${RETV}
|
Loading…
Add table
Reference in a new issue