diff options
| author | roboo <robo.karasek@gmail.com> | 2016-08-21 21:50:38 +0200 |
|---|---|---|
| committer | roboo <robo.karasek@gmail.com> | 2016-08-21 21:50:38 +0200 |
| commit | 2f3c8648289bb4e22eee5f8ff8d27afca6592fa4 (patch) | |
| tree | 5d4f17b5d949e67edde281e6dbe7142a24b57260 /spec/add_spec.lua | |
| parent | 5cdc22fb3c3a85160cd7c2d49ba10ab113e4a784 (diff) | |
| download | luarocks-2f3c8648289bb4e22eee5f8ff8d27afca6592fa4.tar.gz luarocks-2f3c8648289bb4e22eee5f8ff8d27afca6592fa4.tar.bz2 luarocks-2f3c8648289bb4e22eee5f8ff8d27afca6592fa4.zip | |
Windows and appveyor support for tests
Diffstat (limited to 'spec/add_spec.lua')
| -rw-r--r-- | spec/add_spec.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/add_spec.lua b/spec/add_spec.lua index dca6f850..d42a97d0 100644 --- a/spec/add_spec.lua +++ b/spec/add_spec.lua | |||
| @@ -5,8 +5,8 @@ local testing_paths = test_env.testing_paths | |||
| 5 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
| 6 | 6 | ||
| 7 | local extra_rocks = { | 7 | local extra_rocks = { |
| 8 | "/luasocket-3.0rc1-1.src.rock", | 8 | "/luasocket-3.0rc1-2.src.rock", |
| 9 | "/luasocket-3.0rc1-1.rockspec" | 9 | "/luasocket-3.0rc1-2.rockspec" |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | describe("LuaRocks add tests #blackbox #b_add", function() | 12 | describe("LuaRocks add tests #blackbox #b_add", function() |
| @@ -25,20 +25,20 @@ describe("LuaRocks add tests #blackbox #b_add", function() | |||
| 25 | end) | 25 | end) |
| 26 | 26 | ||
| 27 | it("LuaRocks-admin add invalid server", function() | 27 | it("LuaRocks-admin add invalid server", function() |
| 28 | assert.is_false(run.luarocks_admin_bool("--server=invalid add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-1.src.rock")) | 28 | assert.is_false(run.luarocks_admin_bool("--server=invalid add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock")) |
| 29 | end) | 29 | end) |
| 30 | 30 | ||
| 31 | it("LuaRocks-admin add invalid server #ssh", function() | 31 | it("LuaRocks-admin add invalid server #ssh", function() |
| 32 | assert.is_true(run.luarocks_admin_bool("--server=testing add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-1.src.rock")) | 32 | assert.is_true(run.luarocks_admin_bool("--server=testing add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock")) |
| 33 | end) | 33 | end) |
| 34 | 34 | ||
| 35 | --TODO This test fails, sftp not implemented | 35 | --TODO This test fails, sftp support not yet implemented |
| 36 | it("LuaRocks-admin add invalid server", function() --? | 36 | it("LuaRocks-admin add invalid server", function() |
| 37 | assert.is_false(run.luarocks_admin_bool("--server=testing add luasocket-3.0rc1-1.src.rock", { LUAROCKS_CONFIG = testing_paths.testing_dir .. "/testing_config_sftp.lua" } )) | 37 | assert.is_false(run.luarocks_admin_bool("--server=testing add luasocket-3.0rc1-2.src.rock", { LUAROCKS_CONFIG = testing_paths.testing_dir .. "/testing_config_sftp.lua" } )) |
| 38 | end) | 38 | end) |
| 39 | 39 | ||
| 40 | it("LuaRocks-admin add, split server url", function() | 40 | it("LuaRocks-admin add, split server url", function() |
| 41 | assert.is_false(run.luarocks_admin_bool("--server=\"localhost@/tmp/luarocks_testing\" add " .. testing_paths.testing_server .. "luasocket-3.0rc1-1.src.rock")) | 41 | assert.is_false(run.luarocks_admin_bool("--server=\"localhost@/tmp/luarocks_testing\" add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock")) |
| 42 | end) | 42 | end) |
| 43 | end) | 43 | end) |
| 44 | end) | 44 | end) |
