aboutsummaryrefslogtreecommitdiff
path: root/spec/build_spec.lua
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-07-04 00:44:00 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-05 15:51:35 -0300
commit67a8c5c13f057163273c15dea73491a86f61c676 (patch)
tree55f470bec8e0b3ad76dd2dcd921d2eababf8a092 /spec/build_spec.lua
parent428391af63b4f95fffe829fb19ab7e0ad4c5bd5a (diff)
downloadluarocks-67a8c5c13f057163273c15dea73491a86f61c676.tar.gz
luarocks-67a8c5c13f057163273c15dea73491a86f61c676.tar.bz2
luarocks-67a8c5c13f057163273c15dea73491a86f61c676.zip
Tests: separate OPENSSL_DIRS into OPENSSL_INCDIR and OPENSSL_LIBDIR
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r--spec/build_spec.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua
index 74efccd5..c7fd2a22 100644
--- a/spec/build_spec.lua
+++ b/spec/build_spec.lua
@@ -161,7 +161,8 @@ describe("LuaRocks build tests #integration", function()
161 end) 161 end)
162 162
163 it("LuaRocks build luasec with skipping dependency checks", function() 163 it("LuaRocks build luasec with skipping dependency checks", function()
164 assert.is_true(run.luarocks_bool("build luasec 0.6-1 " .. test_env.OPENSSL_DIRS .. " --nodeps")) 164 local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR
165 assert.is_true(run.luarocks_bool("build luasec 0.6-1 " .. openssl_dirs .. " --nodeps"))
165 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec")) 166 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec"))
166 end) 167 end)
167 168
@@ -221,7 +222,8 @@ describe("LuaRocks build tests #integration", function()
221 end 222 end
222 223
223 it("LuaRocks build luasec only deps", function() 224 it("LuaRocks build luasec only deps", function()
224 assert.is_true(run.luarocks_bool("build luasec " .. test_env.OPENSSL_DIRS .. " --only-deps")) 225 local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR
226 assert.is_true(run.luarocks_bool("build luasec " .. openssl_dirs .. " --only-deps"))
225 assert.is_false(run.luarocks_bool("show luasec")) 227 assert.is_false(run.luarocks_bool("show luasec"))
226 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec")) 228 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec/0.6-1/luasec-0.6-1.rockspec"))
227 end) 229 end)
@@ -255,8 +257,9 @@ describe("LuaRocks build tests #integration", function()
255 end) 257 end)
256 258
257 it("LuaRocks build with https", function() 259 it("LuaRocks build with https", function()
260 local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR
258 assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) 261 assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1"))
259 assert.is_true(run.luarocks_bool("install luasec " .. test_env.OPENSSL_DIRS)) 262 assert.is_true(run.luarocks_bool("install luasec " .. openssl_dirs))
260 263
261 assert.is_true(run.luarocks_bool("build validate-args-1.5.4-1.rockspec")) 264 assert.is_true(run.luarocks_bool("build validate-args-1.5.4-1.rockspec"))
262 assert.is.truthy(run.luarocks("show validate-args")) 265 assert.is.truthy(run.luarocks("show validate-args"))