diff options
author | roboo <robo.karasek@gmail.com> | 2016-07-14 00:29:01 +0200 |
---|---|---|
committer | roboo <robo.karasek@gmail.com> | 2016-07-14 00:29:01 +0200 |
commit | 1656a4c7a2dac25d2dd2e5d2211ce0e7eb000b19 (patch) | |
tree | 6aa4d66409112e10ac40968ec439d3ceddc6e5a6 /spec/install_spec.lua | |
parent | fe79525c26449576322ca5aa736d72d100313be4 (diff) | |
download | luarocks-1656a4c7a2dac25d2dd2e5d2211ce0e7eb000b19.tar.gz luarocks-1656a4c7a2dac25d2dd2e5d2211ce0e7eb000b19.tar.bz2 luarocks-1656a4c7a2dac25d2dd2e5d2211ce0e7eb000b19.zip |
need_rock() added, new flag noreset environment
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) |