diff options
Diffstat (limited to 'spec/install_spec.lua')
-rw-r--r-- | spec/install_spec.lua | 6 |
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"))) |