aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroboo <robo.karasek@gmail.com>2016-07-14 01:15:38 +0200
committerroboo <robo.karasek@gmail.com>2016-07-14 01:15:38 +0200
commit48b98f0c099dc621e1f93cccf9a9e03ff75649b6 (patch)
treeb6f3591921ac9f045857d4b7fc0315b62411f52d
parent1656a4c7a2dac25d2dd2e5d2211ce0e7eb000b19 (diff)
downloadluarocks-48b98f0c099dc621e1f93cccf9a9e03ff75649b6.tar.gz
luarocks-48b98f0c099dc621e1f93cccf9a9e03ff75649b6.tar.bz2
luarocks-48b98f0c099dc621e1f93cccf9a9e03ff75649b6.zip
Fix of luasocket binary rock tests
-rw-r--r--spec/install_spec.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index 9bc11e87..0b2ffb53 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -83,20 +83,24 @@ 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 local output = run.luarocks("install --only-deps " .. testing_paths.testing_cache .. "/luasocket-3.0rc1-1." .. test_env.platform .. ".rock") 86 assert.is_true(run.luarocks_bool("build --pack-binary-rock luasocket"))
87 local output = run.luarocks("install --only-deps " .. "luasocket-3.0rc1-1." .. test_env.platform .. ".rock")
87 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")
89 assert.is_true(os.remove("luasocket-3.0rc1-1." .. test_env.platform .. ".rock"))
90 end)
91
92 it("LuaRocks install reinstall", function()
93 assert.is_true(run.luarocks_bool("build --pack-binary-rock luasocket"))
94 assert.is_true(run.luarocks_bool("install " .. "luasocket-3.0rc1-1." .. test_env.platform .. ".rock"))
95 assert.is_true(run.luarocks_bool("install --deps-mode=none " .. "luasocket-3.0rc1-1." .. test_env.platform .. ".rock"))
96 assert.is_true(os.remove("luasocket-3.0rc1-1." .. test_env.platform .. ".rock"))
88 end) 97 end)
89 98
90 it("LuaRocks install binary rock of cprint", function() 99 it("LuaRocks install binary rock of cprint", function()
91 assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint")) 100 assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint"))
92 assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock")) 101 assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock"))
93 assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock")) 102 assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock"))
94 end) 103 end)
95
96 it("LuaRocks install reinstall", function()
97 assert.is_true(run.luarocks_bool("install " .. 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"))
99 end)
100 end) 104 end)
101 105
102 describe("New install functionality based on pull request 552", function() 106 describe("New install functionality based on pull request 552", function()