aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-02-14 09:55:16 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-02-14 12:24:49 -0300
commitebc4fc84c0a9eb878192d1db51e5acc61610be45 (patch)
treeb33245e37c11c961cacc8785f00ad1a50ceebc9d /spec
parentbd27d052eaf856bf24c77f556a50b7e19f11cba1 (diff)
downloadluarocks-ebc4fc84c0a9eb878192d1db51e5acc61610be45.tar.gz
luarocks-ebc4fc84c0a9eb878192d1db51e5acc61610be45.tar.bz2
luarocks-ebc4fc84c0a9eb878192d1db51e5acc61610be45.zip
make: support --only-deps
Closes #1156.
Diffstat (limited to 'spec')
-rw-r--r--spec/make_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/make_spec.lua b/spec/make_spec.lua
index 1bfbce7e..c9410cce 100644
--- a/spec/make_spec.lua
+++ b/spec/make_spec.lua
@@ -66,6 +66,18 @@ describe("luarocks make #integration", function()
66 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket/3.0rc1-2/doc")) 66 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket/3.0rc1-2/doc"))
67 end) 67 end)
68 68
69 it("--only-deps", function()
70 local rockspec = testing_paths.fixtures_dir .. "/build_only_deps-0.1-1.rockspec"
71
72 test_env.remove_dir("build_only_deps-0.1-1/")
73 assert.is_true(run.luarocks_bool("unpack " .. rockspec))
74 lfs.chdir("build_only_deps-0.1-1/")
75 assert.is_true(run.luarocks_bool("make " .. rockspec .. " --only-deps"))
76 assert.is_false(run.luarocks_bool("show build_only_deps"))
77 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/build_only_deps/0.1-1/build_only_deps-0.1-1.rockspec"))
78 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/a_rock/1.0-1/a_rock-1.0-1.rockspec"))
79 end)
80
69 describe("LuaRocks making rockspecs (using lxsh)", function() 81 describe("LuaRocks making rockspecs (using lxsh)", function()
70 --download lxsh and unpack it 82 --download lxsh and unpack it
71 before_each(function() 83 before_each(function()