diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2016-08-22 15:45:00 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-22 15:45:00 -0300 |
| commit | 19646202422bbcf410c66b16d57348955a03c390 (patch) | |
| tree | 488eb96e00f764703850da62ed6486ee87958b5f /spec/upload_spec.lua | |
| parent | 5cdc22fb3c3a85160cd7c2d49ba10ab113e4a784 (diff) | |
| parent | de72b50eb21fa264a6090c3d062217963c52f74b (diff) | |
| download | luarocks-19646202422bbcf410c66b16d57348955a03c390.tar.gz luarocks-19646202422bbcf410c66b16d57348955a03c390.tar.bz2 luarocks-19646202422bbcf410c66b16d57348955a03c390.zip | |
Merge pull request #606 from robooo/new-tests
New tests, Windows support
Diffstat (limited to 'spec/upload_spec.lua')
| -rw-r--r-- | spec/upload_spec.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index c68a1cdf..af4c36d3 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
| @@ -45,7 +45,7 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() | |||
| 45 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack luacov-0.11.0-1.rockspec")) | 45 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack luacov-0.11.0-1.rockspec")) |
| 46 | end) | 46 | end) |
| 47 | 47 | ||
| 48 | it("LuaRocks upload force", function() | 48 | it("LuaRocks upload force #unix", function() |
| 49 | assert.is_true(run.luarocks_bool("install lua-cjson")) | 49 | assert.is_true(run.luarocks_bool("install lua-cjson")) |
| 50 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force luacov-0.11.0-1.rockspec")) | 50 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force luacov-0.11.0-1.rockspec")) |
| 51 | assert.is_true(run.luarocks_bool("install lua-cjson")) | 51 | assert.is_true(run.luarocks_bool("install lua-cjson")) |
| @@ -63,10 +63,18 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() | |||
| 63 | end) | 63 | end) |
| 64 | 64 | ||
| 65 | it("LuaRocks upload rockspec with api-key", function() | 65 | it("LuaRocks upload rockspec with api-key", function() |
| 66 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | 66 | if test_env.APPVEYOR then |
| 67 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec " .. test_env.APPVEYOR_OPENSSL .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | ||
| 68 | else | ||
| 69 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | ||
| 70 | end | ||
| 67 | end) | 71 | end) |
| 68 | it("LuaRocks upload rockspec with api-key and skip-pack", function() | 72 | it("LuaRocks upload rockspec with api-key and skip-pack", function() |
| 69 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | 73 | if test_env.APPVEYOR then |
| 74 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec " .. test_env.APPVEYOR_OPENSSL .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | ||
| 75 | else | ||
| 76 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | ||
| 77 | end | ||
| 70 | end) | 78 | end) |
| 71 | end) | 79 | end) |
| 72 | end) | 80 | end) |
