aboutsummaryrefslogtreecommitdiff
path: root/spec/build_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-02-07 10:42:50 +0100
committerGitHub <noreply@github.com>2020-02-07 10:42:50 +0100
commit1a7f921e4cf1d4023340a8ba4dde17cb3e6bd311 (patch)
tree1c56d34fe38719bd41815c914c53294e5e4bb3e0 /spec/build_spec.lua
parent201ac63c7692355b07b83034c1813c000ec70e84 (diff)
downloadluarocks-1a7f921e4cf1d4023340a8ba4dde17cb3e6bd311.tar.gz
luarocks-1a7f921e4cf1d4023340a8ba4dde17cb3e6bd311.tar.bz2
luarocks-1a7f921e4cf1d4023340a8ba4dde17cb3e6bd311.zip
fix downgrades of rocks containing directories (#1151)
Fixes #1141
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r--spec/build_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua
index 14837d89..e498509f 100644
--- a/spec/build_spec.lua
+++ b/spec/build_spec.lua
@@ -25,6 +25,8 @@ local extra_rocks = {
25 "/stdlib-41.0.0-1.src.rock", 25 "/stdlib-41.0.0-1.src.rock",
26 "/validate-args-1.5.4-1.rockspec", 26 "/validate-args-1.5.4-1.rockspec",
27 "spec/fixtures/a_rock-1.0-1.src.rock", 27 "spec/fixtures/a_rock-1.0-1.src.rock",
28 "/busted-2.0.0-1.rockspec",
29 "/busted-2.0.rc13-0.rockspec",
28} 30}
29 31
30local c_module_source = [[ 32local c_module_source = [[
@@ -290,6 +292,12 @@ describe("LuaRocks build #integration", function()
290 end) 292 end)
291 end 293 end
292 294
295 it("downgrades directories correctly", function()
296 assert(run.luarocks_bool("build --nodeps busted 2.0.0" ))
297 assert(run.luarocks_bool("build --nodeps busted 2.0.rc13" ))
298 assert(run.luarocks_bool("build --nodeps busted 2.0.0" ))
299 end)
300
293 it("only deps", function() 301 it("only deps", function()
294 local rockspec = testing_paths.fixtures_dir .. "/build_only_deps-0.1-1.rockspec" 302 local rockspec = testing_paths.fixtures_dir .. "/build_only_deps-0.1-1.rockspec"
295 303