diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-27 22:35:46 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-27 22:35:46 -0500 |
commit | 15ba1eb20cea831de9101cba80a0e74d67ef5585 (patch) | |
tree | 137cb9f193b61753a293b3768ef268cb2ea7b335 | |
parent | 9fc76c95e720d078b4d99abdb199f603d4198c89 (diff) | |
download | lua4win-dist-lua-15ba1eb20cea831de9101cba80a0e74d67ef5585.tar.gz lua4win-dist-lua-15ba1eb20cea831de9101cba80a0e74d67ef5585.tar.bz2 lua4win-dist-lua-15ba1eb20cea831de9101cba80a0e74d67ef5585.zip |
Start writing tests for the msi
-rwxr-xr-x | init | 1 | ||||
-rw-r--r-- | lua4win.wxs | 2 | ||||
-rw-r--r-- | meta.lua | 44 | ||||
-rw-r--r-- | test | 21 |
4 files changed, 46 insertions, 22 deletions
@@ -2,4 +2,5 @@ | |||
2 | 2 | ||
3 | cp lua4win-dist-lua/lua4win.wxs . | 3 | cp lua4win-dist-lua/lua4win.wxs . |
4 | touch License.rtf | 4 | touch License.rtf |
5 | ln -s /usr/share/wixl-0.103/ext/ui ui | ||
5 | wixl --verbose --ext ui lua4win.wxs | 6 | wixl --verbose --ext ui lua4win.wxs |
diff --git a/lua4win.wxs b/lua4win.wxs index a4efbf6..3bdfecf 100644 --- a/lua4win.wxs +++ b/lua4win.wxs | |||
@@ -18,7 +18,7 @@ | |||
18 | <Directory Id="ProgramFilesFolder"> | 18 | <Directory Id="ProgramFilesFolder"> |
19 | <Directory Id="Lua4Win" Name="Lua4Win"> | 19 | <Directory Id="Lua4Win" Name="Lua4Win"> |
20 | <Directory Id="INSTALLDIR" Name="Lua4Win 1.0"> | 20 | <Directory Id="INSTALLDIR" Name="Lua4Win 1.0"> |
21 | <Component Id="MainExecutable" Guid="ABCDDCBA-83F1-4F22-985B-FDB3C8ABD471"> | 21 | <Component Id="MainExecutable" Guid="ABCDDCBA-83F1-4F22-985B-123123123123"> |
22 | <File Id="luajit.exe" Source="./luajit.exe" /> | 22 | <File Id="luajit.exe" Source="./luajit.exe" /> |
23 | <File Id="lua51.dll" Source="./lua51.dll" /> | 23 | <File Id="lua51.dll" Source="./lua51.dll" /> |
24 | <File Id="luarocks.exe" Source="./luarocks.exe" /> | 24 | <File Id="luarocks.exe" Source="./luarocks.exe" /> |
@@ -1,23 +1,25 @@ | |||
1 | return { | 1 | |
2 | ["lua4win-dist-lua"] = { | 2 | local build = {} |
3 | image = "image-msi", | 3 | build["lua4win-dist-lua"] = { |
4 | requires = { | 4 | image = "image-msi", |
5 | {"cicd","luajit-three-debug-mingw64:luajit.exe"}, | 5 | requires = { |
6 | {"cicd","luajit-three-debug-mingw64:lua51.dll"}, | 6 | {"cicd","luajit-three-debug-mingw64:luajit.exe"}, |
7 | {"cicd","luarocks-jit-three-debug-mingw64:luarocks.exe"}, | 7 | {"cicd","luajit-three-debug-mingw64:lua51.dll"}, |
8 | }, | 8 | {"cicd","luarocks-jit-three-debug-mingw64:luarocks.exe"}, |
9 | produces = { | ||
10 | ["lua4win.msi"] = true, | ||
11 | }, | ||
12 | }, | 9 | }, |
13 | --[[ | 10 | produces = { |
14 | ["lua4win-dist-lua-test"] = { | 11 | ["lua4win.msi"] = true, |
15 | image = "image-wine", | 12 | }, |
16 | entrypoint="test", | 13 | } |
17 | requires = { | 14 | build["lua4win-dist-lua-test"] = { |
18 | {"cicd", "lua4win-dist-lua:lua4win.msi"} | 15 | image = "image-wine", |
19 | }, | 16 | entrypoint="test", |
20 | produces = {}, | 17 | requires = { |
21 | } | 18 | {"cicd", "lua4win-dist-lua:lua4win.msi"} |
22 | ]] | 19 | }, |
20 | produces = {}, | ||
23 | } | 21 | } |
22 | for i = 1,6 do | ||
23 | build["lua4win-dist-lua-test"].produces[i .. ".png"] = true | ||
24 | end | ||
25 | return build | ||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & | ||
4 | DISPLAY=:99 | ||
5 | |||
6 | msiexec /i lua4win.msi & | ||
7 | |||
8 | xwd -root | magick xwd:- png:/root/1.png | ||
9 | xdotool mousemove --sync 573 618 | ||
10 | xwd -root | magick xwd:- png:/root/2.png | ||
11 | xdotool xdotool click 1 | ||
12 | xwd -root | magick xwd:- png:/root/3.png | ||
13 | xdotool mousemove --sync 725 666 | ||
14 | xwd -root | magick xwd:- png:/root/4.png | ||
15 | xdotool xdotool click 1 | ||
16 | xwd -root | magick xwd:- png:/root/5.png | ||
17 | xdotool mousemove --sync 743 666 | ||
18 | xwd -root | magick xwd:- png:/root/6.png | ||
19 | xdotool xdotool click 1 | ||
20 | xwd -root | magick xwd:- png:/root/7.png | ||
21 | |||