diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-13 22:51:33 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-18 11:24:07 -0300 |
commit | 365c5a4bb52dead8d9f040d9857da448b194ada9 (patch) | |
tree | 01855228e5577ba39ef876dfa4614e4be972bc56 /spec/build_spec.lua | |
parent | 491bf90358162dec2b4ca0a03d6fa98552968ddc (diff) | |
download | luarocks-365c5a4bb52dead8d9f040d9857da448b194ada9.tar.gz luarocks-365c5a4bb52dead8d9f040d9857da448b194ada9.tar.bz2 luarocks-365c5a4bb52dead8d9f040d9857da448b194ada9.zip |
Tests: support running with the default detected OpenSSL locations
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 982db801..0aaa6d63 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
@@ -202,8 +202,7 @@ describe("LuaRocks build tests #integration", function() | |||
202 | end) | 202 | end) |
203 | 203 | ||
204 | it("LuaRocks build luasec with skipping dependency checks", function() | 204 | it("LuaRocks build luasec with skipping dependency checks", function() |
205 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR | 205 | assert.is_true(run.luarocks_bool("build luasec 0.6-1 " .. test_env.openssl_dirs .. " --nodeps")) |
206 | assert.is_true(run.luarocks_bool("build luasec 0.6-1 " .. openssl_dirs .. " --nodeps")) | ||
207 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec")) | 206 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec")) |
208 | end) | 207 | end) |
209 | 208 | ||
@@ -263,8 +262,7 @@ describe("LuaRocks build tests #integration", function() | |||
263 | end | 262 | end |
264 | 263 | ||
265 | it("LuaRocks build luasec only deps", function() | 264 | it("LuaRocks build luasec only deps", function() |
266 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR | 265 | assert.is_true(run.luarocks_bool("build luasec " .. test_env.openssl_dirs .. " --only-deps")) |
267 | assert.is_true(run.luarocks_bool("build luasec " .. openssl_dirs .. " --only-deps")) | ||
268 | assert.is_false(run.luarocks_bool("show luasec")) | 266 | assert.is_false(run.luarocks_bool("show luasec")) |
269 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec")) | 267 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec")) |
270 | end) | 268 | end) |
@@ -288,9 +286,8 @@ describe("LuaRocks build tests #integration", function() | |||
288 | end) | 286 | end) |
289 | 287 | ||
290 | it("LuaRocks build with https", function() | 288 | it("LuaRocks build with https", function() |
291 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR | ||
292 | assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) | 289 | assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) |
293 | assert.is_true(run.luarocks_bool("install luasec " .. openssl_dirs)) | 290 | assert.is_true(run.luarocks_bool("install luasec " .. test_env.openssl_dirs)) |
294 | 291 | ||
295 | assert.is_true(run.luarocks_bool("build validate-args-1.5.4-1.rockspec")) | 292 | assert.is_true(run.luarocks_bool("build validate-args-1.5.4-1.rockspec")) |
296 | assert.is.truthy(run.luarocks("show validate-args")) | 293 | assert.is.truthy(run.luarocks("show validate-args")) |