aboutsummaryrefslogtreecommitdiff
path: root/spec/install_spec.lua
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-07-08 14:41:15 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-07-08 14:43:24 +0300
commitab86e13d0a408691b48786c394404736b7ac8dc0 (patch)
treeddbb2d397c302cda6dbd7dd5d8a8b4b6d275e3cc /spec/install_spec.lua
parent8867f3324d97584ed24f3a1082144e9b1375d663 (diff)
downloadluarocks-ab86e13d0a408691b48786c394404736b7ac8dc0.tar.gz
luarocks-ab86e13d0a408691b48786c394404736b7ac8dc0.tar.bz2
luarocks-ab86e13d0a408691b48786c394404736b7ac8dc0.zip
Remove some more unused stuff and globals from tests
Diffstat (limited to 'spec/install_spec.lua')
-rw-r--r--spec/install_spec.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index 876e25fc..0e406e22 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -25,7 +25,6 @@ describe("LuaRocks install tests #blackbox #b_install", function()
25 25
26 before_each(function() 26 before_each(function()
27 test_env.setup_specs(extra_rocks) 27 test_env.setup_specs(extra_rocks)
28 platform = test_env.platform
29 end) 28 end)
30 29
31 describe("LuaRocks install - basic tests", function() 30 describe("LuaRocks install - basic tests", function()
@@ -85,21 +84,21 @@ describe("LuaRocks install tests #blackbox #b_install", function()
85 84
86 it("LuaRocks install only-deps of luasocket packed rock", function() 85 it("LuaRocks install only-deps of luasocket packed rock", function()
87 assert.is_true(test_env.need_luasocket()) 86 assert.is_true(test_env.need_luasocket())
88 local output = run.luarocks("install --only-deps " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. platform .. ".rock") 87 local output = run.luarocks("install --only-deps " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock")
89 assert.are.same(output, "Successfully installed dependencies for luasocket 3.0rc1-1") 88 assert.are.same(output, "Successfully installed dependencies for luasocket 3.0rc1-1")
90 end) 89 end)
91 90
92 it("LuaRocks install binary rock of cprint", function() 91 it("LuaRocks install binary rock of cprint", function()
93 assert.is_true(test_env.need_luasocket()) 92 assert.is_true(test_env.need_luasocket())
94 assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint")) 93 assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint"))
95 assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. platform .. ".rock")) 94 assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock"))
96 assert.is_true(os.remove("cprint-0.1-2." .. platform .. ".rock")) 95 assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock"))
97 end) 96 end)
98 97
99 it("LuaRocks install reinstall", function() 98 it("LuaRocks install reinstall", function()
100 assert.is_true(test_env.need_luasocket()) 99 assert.is_true(test_env.need_luasocket())
101 assert.is_true(run.luarocks_bool("install " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. platform .. ".rock")) 100 assert.is_true(run.luarocks_bool("install " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock"))
102 assert.is_true(run.luarocks_bool("install --deps-mode=none " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. 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"))
103 end) 102 end)
104 end) 103 end)
105 104