diff options
Diffstat (limited to 'spec/install_spec.lua')
| -rw-r--r-- | spec/install_spec.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 0e406e22..9bc11e87 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
| @@ -83,20 +83,17 @@ describe("LuaRocks install tests #blackbox #b_install", function() | |||
| 83 | end) | 83 | end) |
| 84 | 84 | ||
| 85 | it("LuaRocks install only-deps of luasocket packed rock", function() | 85 | it("LuaRocks install only-deps of luasocket packed rock", function() |
| 86 | assert.is_true(test_env.need_luasocket()) | ||
| 87 | local output = run.luarocks("install --only-deps " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock") | 86 | local output = run.luarocks("install --only-deps " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock") |
| 88 | assert.are.same(output, "Successfully installed dependencies for luasocket 3.0rc1-1") | 87 | assert.are.same(output, "Successfully installed dependencies for luasocket 3.0rc1-1") |
| 89 | end) | 88 | end) |
| 90 | 89 | ||
| 91 | it("LuaRocks install binary rock of cprint", function() | 90 | it("LuaRocks install binary rock of cprint", function() |
| 92 | assert.is_true(test_env.need_luasocket()) | ||
| 93 | assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint")) | 91 | assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint")) |
| 94 | assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock")) | 92 | assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock")) |
| 95 | assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock")) | 93 | assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock")) |
| 96 | end) | 94 | end) |
| 97 | 95 | ||
| 98 | it("LuaRocks install reinstall", function() | 96 | it("LuaRocks install reinstall", function() |
| 99 | assert.is_true(test_env.need_luasocket()) | ||
| 100 | assert.is_true(run.luarocks_bool("install " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock")) | 97 | assert.is_true(run.luarocks_bool("install " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock")) |
| 101 | assert.is_true(run.luarocks_bool("install --deps-mode=none " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock")) | 98 | assert.is_true(run.luarocks_bool("install --deps-mode=none " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock")) |
| 102 | end) | 99 | end) |
