From 362dd3a50d57b5403d778cdf92839b7f6c30e69e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 28 Aug 2024 00:35:12 -0300 Subject: tests: use compat53 --- appveyor.yml | 1 + spec/util/test_env.lua | 4 ++++ spec/util/versions.lua | 1 + 3 files changed, 6 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 5b7493df..da8ab442 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -77,6 +77,7 @@ before_build: - copy deps\zlib\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\lib\native\v120\windesktop\msvcstl\dyn\rt-dyn\Win32\MinSizeRel\zlib.lib c:\external\lib\z.lib build_script: + - luarocks install compat53 1> NUL 2> NUL - IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL ) - IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL ) - luarocks install busted-htest 1> NUL 2> NUL diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 92fb1939..645c182f 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua @@ -1114,6 +1114,10 @@ function test_env.main() table.insert(rocks, "luacov") table.insert(rocks, "cluacov") + -- compat53 is needed + table.insert(urls, "/compat53-${COMPAT53}.src.rock") + table.insert(rocks, "compat53") + -- Download rocks needed for LuaRocks testing environment lfs.mkdir(testing_paths.testing_server) download_rocks(urls, testing_paths.testing_server) diff --git a/spec/util/versions.lua b/spec/util/versions.lua index 77c1129c..f3ea152c 100644 --- a/spec/util/versions.lua +++ b/spec/util/versions.lua @@ -2,6 +2,7 @@ return { binaryheap = "0.4-1", -- dependency for copas bit32 = "5.3.5.1-1", -- dependency for luaposix on Lua 5.1 cluacov = "0.1.3-1", + compat53 = "0.14.3-1", copas = "3.0.0-2", cprint = "0.2-1", dkjson = "2.6-1", -- cgit v1.2.3-55-g6feb