From 0f82063a51cd9197edd214e0427fe4e84ae9c0b9 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sat, 16 Apr 2022 18:53:07 -0300 Subject: tests: run tests on Lua 5.4 and LuaJIT 2.1 --- spec/build_spec.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'spec/build_spec.lua') diff --git a/spec/build_spec.lua b/spec/build_spec.lua index ba6c1a94..653f2160 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua @@ -22,7 +22,6 @@ local extra_rocks = { "/luafilesystem-${LUAFILESYSTEM}.src.rock", "/luasocket-${LUASOCKET}.src.rock", "/luasocket-${LUASOCKET}.rockspec", - "/stdlib-41.0.0-1.src.rock", "spec/fixtures/a_rock-1.0-1.src.rock", "/busted-2.0.0-1.rockspec", "/busted-2.0.rc13-0.rockspec", @@ -141,11 +140,6 @@ describe("LuaRocks build #integration", function() assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/${LUACOV}/luacov-${LUACOV}.rockspec")) end) - it("command stdlib", function() - assert.is_true(run.luarocks_bool("build stdlib")) - assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/stdlib/41.0.0-1/stdlib-41.0.0-1.rockspec")) - end) - it("fails if the current platform is not supported", function() test_env.run_in_tmp(function(tmpdir) write_file("test-1.0-1.rockspec", [[ @@ -273,13 +267,14 @@ describe("LuaRocks build #integration", function() end) it("lmathx deps partial match", function() - assert.is_true(run.luarocks_bool("build lmathx")) - if test_env.LUA_V == "5.1" or test_env.LUAJIT_V then + assert.is_true(run.luarocks_bool("build lmathx")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20120430.51-1/lmathx-20120430.51-1.rockspec")) elseif test_env.LUA_V == "5.2" then + assert.is_true(run.luarocks_bool("build lmathx")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20120430.52-1/lmathx-20120430.52-1.rockspec")) elseif test_env.LUA_V == "5.3" then + assert.is_true(run.luarocks_bool("build lmathx")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20150505-1/lmathx-20150505-1.rockspec")) end end) -- cgit v1.2.3-55-g6feb