diff options
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 459a7292..2de05879 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | local test_env = require("test/test_environment") | 1 | local test_env = require("spec.util.test_env") |
2 | local lfs = require("lfs") | 2 | local lfs = require("lfs") |
3 | local run = test_env.run | 3 | local run = test_env.run |
4 | local testing_paths = test_env.testing_paths | 4 | local testing_paths = test_env.testing_paths |
@@ -140,7 +140,7 @@ describe("LuaRocks build tests #blackbox #b_build", function() | |||
140 | describe("LuaRocks build - more complex tests", function() | 140 | describe("LuaRocks build - more complex tests", function() |
141 | if test_env.TYPE_TEST_ENV == "full" then | 141 | if test_env.TYPE_TEST_ENV == "full" then |
142 | it("LuaRocks build luacheck show downloads test_config", function() | 142 | it("LuaRocks build luacheck show downloads test_config", function() |
143 | local output = run.luarocks("build luacheck", { LUAROCKS_CONFIG = testing_paths.testing_dir .. "/testing_config_show_downloads.lua"} ) | 143 | local output = run.luarocks("build luacheck", { LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/testing_config_show_downloads.lua"} ) |
144 | assert.is.truthy(output:match("%.%.%.")) | 144 | assert.is.truthy(output:match("%.%.%.")) |
145 | end) | 145 | end) |
146 | end | 146 | end |
@@ -190,7 +190,7 @@ describe("LuaRocks build tests #blackbox #b_build", function() | |||
190 | end) | 190 | end) |
191 | 191 | ||
192 | it("LuaRocks build invalid patch", function() | 192 | it("LuaRocks build invalid patch", function() |
193 | assert.is_false(run.luarocks_bool("build " .. testing_paths.testing_dir .. "/testfiles/invalid_patch-0.1-1.rockspec")) | 193 | assert.is_false(run.luarocks_bool("build " .. testing_paths.fixtures_dir .. "/invalid_patch-0.1-1.rockspec")) |
194 | end) | 194 | end) |
195 | end) | 195 | end) |
196 | 196 | ||
@@ -204,12 +204,12 @@ describe("LuaRocks build tests #blackbox #b_build", function() | |||
204 | end) | 204 | end) |
205 | 205 | ||
206 | it("fails when missing external dependency", function() | 206 | it("fails when missing external dependency", function() |
207 | assert.is_false(run.luarocks_bool("build " .. testing_paths.testing_dir .. "/testfiles/missing_external-0.1-1.rockspec INEXISTENT_INCDIR=\"/invalid/dir\"")) | 207 | assert.is_false(run.luarocks_bool("build " .. testing_paths.fixtures_dir .. "/missing_external-0.1-1.rockspec INEXISTENT_INCDIR=\"/invalid/dir\"")) |
208 | end) | 208 | end) |
209 | 209 | ||
210 | it("builds with external dependency", function() | 210 | it("builds with external dependency", function() |
211 | local rockspec = testing_paths.testing_dir .. "/testfiles/with_external_dep-0.1-1.rockspec" | 211 | local rockspec = testing_paths.fixtures_dir .. "/with_external_dep-0.1-1.rockspec" |
212 | local foo_incdir = testing_paths.testing_dir .. "/testfiles/with_external_dep" | 212 | local foo_incdir = testing_paths.fixtures_dir .. "/with_external_dep" |
213 | assert.is_truthy(run.luarocks_bool("build " .. rockspec .. " FOO_INCDIR=\"" .. foo_incdir .. "\"")) | 213 | assert.is_truthy(run.luarocks_bool("build " .. rockspec .. " FOO_INCDIR=\"" .. foo_incdir .. "\"")) |
214 | assert.is.truthy(run.luarocks("show with_external_dep")) | 214 | assert.is.truthy(run.luarocks("show with_external_dep")) |
215 | end) | 215 | end) |