diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2021-08-13 15:12:52 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 15:12:52 -0300 |
| commit | 5a442c2bd307bd7078eb16c6802323e300d80960 (patch) | |
| tree | ac10736ca3520d30638aa0b60c8a942596d19a6d /spec | |
| parent | cdd821167c702627a6baa0b32b855e484f64b123 (diff) | |
| download | luarocks-5a442c2bd307bd7078eb16c6802323e300d80960.tar.gz luarocks-5a442c2bd307bd7078eb16c6802323e300d80960.tar.bz2 luarocks-5a442c2bd307bd7078eb16c6802323e300d80960.zip | |
upload: support uploading pre-packaged .src.rock files (#1321)
upload: support uploading pre-packaged .src.rock files
Co-authored-by: daurnimator <quae@daurnimator.com>
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/upload_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index e1215d2c..73775992 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
| @@ -46,6 +46,14 @@ describe("luarocks upload #integration", function() | |||
| 46 | print(run.luarocks("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123 --sign", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | 46 | print(run.luarocks("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123 --sign", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) |
| 47 | end) | 47 | end) |
| 48 | 48 | ||
| 49 | it("with .rockspec and .src.rock", function() | ||
| 50 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.src.rock " .. test_env.openssl_dirs, {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | ||
| 51 | end) | ||
| 52 | |||
| 53 | it("with arguments .src.rock and .rockspec out of order", function() | ||
| 54 | assert.is_false(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.src.rock " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs, {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | ||
| 55 | end) | ||
| 56 | |||
| 49 | it("rockspec with api-key and skip-pack", function() | 57 | it("rockspec with api-key and skip-pack", function() |
| 50 | 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"})) | 58 | 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"})) |
| 51 | end) | 59 | end) |
