summaryrefslogtreecommitdiffstats
path: root/test/run_switchdialog_test.sh
blob: c54fda64b0e5bfa142f0fe70fc0e3a9766e12011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

# wait till it is up, run rofi with error message
sleep 1 && rofi -show run  -display :201 &
RPID=$!

# send enter.
sleep 5;
xdotool key 'shift+slash' 
sleep 0.4
xdotool key 'shift+slash'
sleep 0.4
xdotool key 'shift+slash'
sleep 0.4
xdotool key Escape

#  Get result, kill xvfb
wait ${RPID}
RETV=$?

sleep 1

exit ${RETV}