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/upload_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/upload_spec.lua')
| -rw-r--r-- | spec/upload_spec.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index 8290feca..76a27ee3 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
| @@ -37,13 +37,11 @@ describe("LuaRocks upload tests #integration", function() | |||
| 37 | after_each(test_env.mock_server_done) | 37 | after_each(test_env.mock_server_done) |
| 38 | 38 | ||
| 39 | it("LuaRocks upload rockspec with api-key", function() | 39 | it("LuaRocks upload rockspec with api-key", function() |
| 40 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR | 40 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) |
| 41 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. openssl_dirs .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | ||
| 42 | end) | 41 | end) |
| 43 | 42 | ||
| 44 | it("LuaRocks upload rockspec with api-key and skip-pack", function() | 43 | it("LuaRocks upload rockspec with api-key and skip-pack", function() |
| 45 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR | 44 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) |
| 46 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. openssl_dirs .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | ||
| 47 | end) | 45 | end) |
| 48 | end) | 46 | end) |
| 49 | end) | 47 | end) |
