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