diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-16 18:53:07 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-16 21:17:34 -0300 |
commit | 0f82063a51cd9197edd214e0427fe4e84ae9c0b9 (patch) | |
tree | 90b1f09e2504e8eb97209af4ec24e7ab6fdfbb17 /spec/build_spec.lua | |
parent | a405d1a5f6c9eb7249a9271ca23ff1f701f91cfe (diff) | |
download | luarocks-0f82063a51cd9197edd214e0427fe4e84ae9c0b9.tar.gz luarocks-0f82063a51cd9197edd214e0427fe4e84ae9c0b9.tar.bz2 luarocks-0f82063a51cd9197edd214e0427fe4e84ae9c0b9.zip |
tests: run tests on Lua 5.4 and LuaJIT 2.1
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 11 |
1 files changed, 3 insertions, 8 deletions
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 = { | |||
22 | "/luafilesystem-${LUAFILESYSTEM}.src.rock", | 22 | "/luafilesystem-${LUAFILESYSTEM}.src.rock", |
23 | "/luasocket-${LUASOCKET}.src.rock", | 23 | "/luasocket-${LUASOCKET}.src.rock", |
24 | "/luasocket-${LUASOCKET}.rockspec", | 24 | "/luasocket-${LUASOCKET}.rockspec", |
25 | "/stdlib-41.0.0-1.src.rock", | ||
26 | "spec/fixtures/a_rock-1.0-1.src.rock", | 25 | "spec/fixtures/a_rock-1.0-1.src.rock", |
27 | "/busted-2.0.0-1.rockspec", | 26 | "/busted-2.0.0-1.rockspec", |
28 | "/busted-2.0.rc13-0.rockspec", | 27 | "/busted-2.0.rc13-0.rockspec", |
@@ -141,11 +140,6 @@ describe("LuaRocks build #integration", function() | |||
141 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/${LUACOV}/luacov-${LUACOV}.rockspec")) | 140 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/${LUACOV}/luacov-${LUACOV}.rockspec")) |
142 | end) | 141 | end) |
143 | 142 | ||
144 | it("command stdlib", function() | ||
145 | assert.is_true(run.luarocks_bool("build stdlib")) | ||
146 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/stdlib/41.0.0-1/stdlib-41.0.0-1.rockspec")) | ||
147 | end) | ||
148 | |||
149 | it("fails if the current platform is not supported", function() | 143 | it("fails if the current platform is not supported", function() |
150 | test_env.run_in_tmp(function(tmpdir) | 144 | test_env.run_in_tmp(function(tmpdir) |
151 | write_file("test-1.0-1.rockspec", [[ | 145 | write_file("test-1.0-1.rockspec", [[ |
@@ -273,13 +267,14 @@ describe("LuaRocks build #integration", function() | |||
273 | end) | 267 | end) |
274 | 268 | ||
275 | it("lmathx deps partial match", function() | 269 | it("lmathx deps partial match", function() |
276 | assert.is_true(run.luarocks_bool("build lmathx")) | ||
277 | |||
278 | if test_env.LUA_V == "5.1" or test_env.LUAJIT_V then | 270 | if test_env.LUA_V == "5.1" or test_env.LUAJIT_V then |
271 | assert.is_true(run.luarocks_bool("build lmathx")) | ||
279 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20120430.51-1/lmathx-20120430.51-1.rockspec")) | 272 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20120430.51-1/lmathx-20120430.51-1.rockspec")) |
280 | elseif test_env.LUA_V == "5.2" then | 273 | elseif test_env.LUA_V == "5.2" then |
274 | assert.is_true(run.luarocks_bool("build lmathx")) | ||
281 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20120430.52-1/lmathx-20120430.52-1.rockspec")) | 275 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20120430.52-1/lmathx-20120430.52-1.rockspec")) |
282 | elseif test_env.LUA_V == "5.3" then | 276 | elseif test_env.LUA_V == "5.3" then |
277 | assert.is_true(run.luarocks_bool("build lmathx")) | ||
283 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20150505-1/lmathx-20150505-1.rockspec")) | 278 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lmathx/20150505-1/lmathx-20150505-1.rockspec")) |
284 | end | 279 | end |
285 | end) | 280 | end) |