diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-04 17:25:39 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-06 12:38:45 -0300 |
commit | 6e7e522ffe3204243306cba8d128a7ec21f591f9 (patch) | |
tree | 7d6b03d99928ba338e5212dd6b0e077297ea72b0 /spec/build_spec.lua | |
parent | 526fd923282d03c89c2511f858eb1d66bdba782b (diff) | |
download | luarocks-6e7e522ffe3204243306cba8d128a7ec21f591f9.tar.gz luarocks-6e7e522ffe3204243306cba8d128a7ec21f591f9.tar.bz2 luarocks-6e7e522ffe3204243306cba8d128a7ec21f591f9.zip |
build: make "builtin" the default build.type
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index f042cbb9..b703478e 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
@@ -244,6 +244,33 @@ describe("LuaRocks build tests #integration", function() | |||
244 | end) | 244 | end) |
245 | end) | 245 | end) |
246 | 246 | ||
247 | describe("rockspec format 3.0 #rs3", function() | ||
248 | it("defaults to build.type == 'builtin'", function() | ||
249 | local rockspec = "a_rock-1.0-1.rockspec" | ||
250 | test_env.write_file(rockspec, [[ | ||
251 | rockspec_format = "3.0" | ||
252 | package = "a_rock" | ||
253 | version = "1.0-1" | ||
254 | source = { | ||
255 | url = "file://]] .. testing_paths.fixtures_dir .. [[/a_rock.lua" | ||
256 | } | ||
257 | description = { | ||
258 | summary = "An example rockspec", | ||
259 | } | ||
260 | dependencies = { | ||
261 | "lua >= 5.1" | ||
262 | } | ||
263 | build = { | ||
264 | modules = { | ||
265 | build = "a_rock.lua" | ||
266 | }, | ||
267 | } | ||
268 | ]], finally) | ||
269 | assert.truthy(run.luarocks_bool("build " .. rockspec)) | ||
270 | assert.is.truthy(run.luarocks("show a_rock")) | ||
271 | end) | ||
272 | end) | ||
273 | |||
247 | describe("#mock external dependencies", function() | 274 | describe("#mock external dependencies", function() |
248 | setup(function() | 275 | setup(function() |
249 | test_env.mock_server_init() | 276 | test_env.mock_server_init() |