aboutsummaryrefslogtreecommitdiff
path: root/spec/install_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/install_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/install_spec.lua')
-rw-r--r--spec/install_spec.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index 431ca39d..f4d8a418 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -85,7 +85,8 @@ describe("luarocks install #integration", function()
85 end) 85 end)
86 86
87 it("installs a package with a dependency", function() 87 it("installs a package with a dependency", function()
88 assert.is_true(run.luarocks_bool("install luasec " .. test_env.OPENSSL_DIRS)) 88 local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR
89 assert.is_true(run.luarocks_bool("install luasec " .. openssl_dirs))
89 assert.is_true(run.luarocks_bool("show luasocket")) 90 assert.is_true(run.luarocks_bool("show luasocket"))
90 end) 91 end)
91 end) 92 end)
@@ -138,7 +139,8 @@ describe("luarocks install #integration", function()
138 139
139 describe("more complex tests", function() 140 describe("more complex tests", function()
140 it('luasec with skipping dependency checks', function() 141 it('luasec with skipping dependency checks', function()
141 assert.is_true(run.luarocks_bool("install luasec " .. test_env.OPENSSL_DIRS .. " --nodeps")) 142 local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR
143 assert.is_true(run.luarocks_bool("install luasec " .. openssl_dirs .. " --nodeps"))
142 assert.is_true(run.luarocks_bool("show luasec")) 144 assert.is_true(run.luarocks_bool("show luasec"))
143 if env_variables.TYPE_TEST_ENV == "minimal" then 145 if env_variables.TYPE_TEST_ENV == "minimal" then
144 assert.is_false(run.luarocks_bool(test_env.quiet("show luasocket"))) 146 assert.is_false(run.luarocks_bool(test_env.quiet("show luasocket")))