summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-10-02 18:04:27 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-10-02 18:04:27 -0500
commit93a7b74c4e6c1b18f0f668926381fbf80672907d (patch)
tree69c48fbfffe93ecbe8acd4a57c24ba3b29c7100f
parent6a3257219e5761078f320785f0035276cc91e716 (diff)
downloadlua4win-dist-lua-93a7b74c4e6c1b18f0f668926381fbf80672907d.tar.gz
lua4win-dist-lua-93a7b74c4e6c1b18f0f668926381fbf80672907d.tar.bz2
lua4win-dist-lua-93a7b74c4e6c1b18f0f668926381fbf80672907d.zip
Use relative posisionts for test
-rwxr-xr-xtest24
1 files changed, 12 insertions, 12 deletions
diff --git a/test b/test
index c8b4cfc..bac5993 100755
--- a/test
+++ b/test
@@ -6,28 +6,28 @@ sleep 5
6DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i 6DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i
7# For some reason we have to set this here, having set .. ^ is not enough 7# For some reason we have to set this here, having set .. ^ is not enough
8DISPLAY=:99 msiexec /i lua4win.msi & 8DISPLAY=:99 msiexec /i lua4win.msi &
9sleep 5 9win=$(DISPLAY=:99 xdotool search --sync --name "Installer")
10WIN="Lua4Win Installer 1.0 Setup"
10# Click agree to terms 11# Click agree to terms
11DISPLAY=:99 xwd -root | magick xwd:- png:/root/1.png 12DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/1.png
12DISPLAY=:99 xdotool mousemove --sync 573 618 13DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285
13sleep 1 14DISPLAY=:99 xdotool sleep 0.1
14DISPLAY=:99 xwd -root | magick xwd:- png:/root/2.png
15DISPLAY=:99 xdotool click 1 15DISPLAY=:99 xdotool click 1
16sleep 1 16DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/2.png
17# Click Install 17# Click Install
18DISPLAY=:99 xwd -root | magick xwd:- png:/root/3.png 18DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333
19DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/3.png
19DISPLAY=:99 xdotool mousemove --sync 725 666 20DISPLAY=:99 xdotool mousemove --sync 725 666
20sleep 1 21sleep 1
21DISPLAY=:99 xwd -root | magick xwd:- png:/root/4.png 22DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/4.png
22DISPLAY=:99 xdotool click 1 23DISPLAY=:99 xdotool click 1
23sleep 1 24sleep 1
24 25
25DISPLAY=:99 xwd -root | magick xwd:- png:/root/5.png 26DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/5.png
26DISPLAY=:99 xdotool mousemove --sync 743 666 27DISPLAY=:99 xdotool mousemove --sync 743 666
27sleep 1 28sleep 1
28DISPLAY=:99 xwd -root | magick xwd:- png:/root/6.png 29DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/6.png
29DISPLAY=:99 xdotool click 1 30DISPLAY=:99 xdotool click 1
30sleep 1 31sleep 1
31DISPLAY=:99 xwd -root | magick xwd:- png:/root/7.png 32DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/7.png
32tar -czf images.tar.gz *.png 33tar -czf images.tar.gz *.png
33exit -1