diff options
Diffstat (limited to 'spec/pack_spec.lua')
| -rw-r--r-- | spec/pack_spec.lua | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 0e5b31c6..21f33b02 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
| @@ -6,9 +6,10 @@ local testing_paths = test_env.testing_paths | |||
| 6 | test_env.unload_luarocks() | 6 | test_env.unload_luarocks() |
| 7 | 7 | ||
| 8 | local extra_rocks = { | 8 | local extra_rocks = { |
| 9 | "/luasec-0.6-1.rockspec", | 9 | "/luasec-0.6-1.rockspec", |
| 10 | "/luasocket-3.0rc1-1.src.rock", | 10 | "/luassert-1.7.0-1.src.rock", |
| 11 | "/luasocket-3.0rc1-1.rockspec", | 11 | "/luasocket-3.0rc1-2.src.rock", |
| 12 | "/luasocket-3.0rc1-2.rockspec", | ||
| 12 | "/say-1.2-1.src.rock", | 13 | "/say-1.2-1.src.rock", |
| 13 | "/say-1.0-1.src.rock" | 14 | "/say-1.0-1.src.rock" |
| 14 | } | 15 | } |
| @@ -44,14 +45,17 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() | |||
| 44 | assert.is_true(run.luarocks_bool("install say 1.2")) | 45 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 45 | assert.is_true(run.luarocks_bool("install luassert")) | 46 | assert.is_true(run.luarocks_bool("install luassert")) |
| 46 | assert.is_true(run.luarocks_bool("install say 1.0")) | 47 | assert.is_true(run.luarocks_bool("install say 1.0")) |
| 47 | |||
| 48 | assert.is_false(run.luarocks_bool("pack say")) | 48 | assert.is_false(run.luarocks_bool("pack say")) |
| 49 | end) | 49 | end) |
| 50 | 50 | ||
| 51 | it("LuaRocks pack src", function() | 51 | it("LuaRocks pack src", function() |
| 52 | assert.is_true(run.luarocks_bool(test_env.quiet("install luasec"))) | 52 | if test_env.APPVEYOR then |
| 53 | assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-1")) | 53 | assert.is_true(run.luarocks_bool(test_env.quiet("install luasec " .. test_env.APPVEYOR_OPENSSL))) |
| 54 | assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-1.rockspec")) | 54 | else |
| 55 | assert.is_true(run.luarocks_bool(test_env.quiet("install luasec"))) | ||
| 56 | end | ||
| 57 | assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-2")) | ||
| 58 | assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-2.rockspec")) | ||
| 55 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) | 59 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) |
| 56 | end) | 60 | end) |
| 57 | end) | 61 | end) |
