aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/make_spec.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/make_spec.lua b/spec/make_spec.lua
index b0572630..e2ad1700 100644
--- a/spec/make_spec.lua
+++ b/spec/make_spec.lua
@@ -137,41 +137,6 @@ describe("luarocks make #integration", function()
137 end) 137 end)
138 end) 138 end)
139 139
140 it("supports --pin #pinning", function()
141 test_env.run_in_tmp(function(tmpdir)
142 write_file("test-1.0-1.rockspec", [[
143 package = "test"
144 version = "1.0-1"
145 source = {
146 url = "file://]] .. tmpdir:gsub("\\", "/") .. [[/test.lua"
147 }
148 dependencies = {
149 "a_rock 1.0"
150 }
151 build = {
152 type = "builtin",
153 modules = {
154 test = "test.lua"
155 }
156 }
157 ]])
158 write_file("test.lua", "return {}")
159
160 assert.is_true(run.luarocks_bool("make --server=" .. testing_paths.fixtures_dir .. "/a_repo --pin --tree=lua_modules"))
161 assert.is.truthy(lfs.attributes("./lua_modules/lib/luarocks/rocks-" .. test_env.lua_version .. "/test/1.0-1/test-1.0-1.rockspec"))
162 assert.is.truthy(lfs.attributes("./lua_modules/lib/luarocks/rocks-" .. test_env.lua_version .. "/a_rock/1.0-1/a_rock-1.0-1.rockspec"))
163 local lockfilename = "./lua_modules/lib/luarocks/rocks-" .. test_env.lua_version .. "/test/1.0-1/luarocks.lock"
164 assert.is.truthy(lfs.attributes(lockfilename))
165 local lockdata = loadfile(lockfilename)()
166 assert.same({
167 dependencies = {
168 ["a_rock"] = "1.0-1",
169 ["lua"] = test_env.lua_version .. "-1",
170 }
171 }, lockdata)
172 end, finally)
173 end)
174
175 it("respects luarocks.lock when present #pinning", function() 140 it("respects luarocks.lock when present #pinning", function()
176 test_env.run_in_tmp(function(tmpdir) 141 test_env.run_in_tmp(function(tmpdir)
177 write_file("test-2.0-1.rockspec", [[ 142 write_file("test-2.0-1.rockspec", [[