From 2871199838131b5a4c5a99d8e1fedbcd26017b0e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 12 Apr 2018 17:13:43 -0300 Subject: Tests: build_dependencies --- spec/build_spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/build_spec.lua') diff --git a/spec/build_spec.lua b/spec/build_spec.lua index ed36dbd2..5c363570 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua @@ -249,5 +249,13 @@ describe("LuaRocks build tests #blackbox #b_build", function() assert.is.truthy(run.luarocks("show with_external_dep")) end) end) + + describe("#build_dependencies", function() + it("builds with a build dependency", function() + assert(run.luarocks_bool("build has_build_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) + assert(run.luarocks_bool("show has_build_dep 1.0")) + assert(run.luarocks_bool("show a_build_dep 1.0")) + end) + end) end) -- cgit v1.2.3-55-g6feb