aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-10-20 12:15:03 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-10-20 12:32:42 +0300
commitd1ac6eaf54222d927edd56e2f84c4eef2149b346 (patch)
tree056eed049ce8da74a43a5fb8b9478112fa3b5a77
parent02dc970620ea88d63093a3f848eac69bb9e3e460 (diff)
downloadluarocks-d1ac6eaf54222d927edd56e2f84c4eef2149b346.tar.gz
luarocks-d1ac6eaf54222d927edd56e2f84c4eef2149b346.tar.bz2
luarocks-d1ac6eaf54222d927edd56e2f84c4eef2149b346.zip
Add a test for sailor/sailorproject#138
-rw-r--r--spec/install_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index a00396fa..8d43ca2a 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -23,6 +23,8 @@ local extra_rocks = {
23 "/luafilesystem-1.6.3-1.src.rock", 23 "/luafilesystem-1.6.3-1.src.rock",
24 "/luacheck-0.7.3-1.src.rock", 24 "/luacheck-0.7.3-1.src.rock",
25 "/luacheck-0.8.0-1.src.rock", 25 "/luacheck-0.8.0-1.src.rock",
26 "/sailor-0.5-3.src.rock",
27 "/sailor-0.5-4.src.rock",
26} 28}
27 29
28describe("LuaRocks install tests #blackbox #b_install", function() 30describe("LuaRocks install tests #blackbox #b_install", function()
@@ -118,6 +120,16 @@ describe("LuaRocks install tests #blackbox #b_install", function()
118 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck_0_7_3_1-luacheck.lua")) 120 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck_0_7_3_1-luacheck.lua"))
119 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck_0_7_3_1-luacheck"..test_env.wrapper_extension)) 121 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck_0_7_3_1-luacheck"..test_env.wrapper_extension))
120 end) 122 end)
123
124 it('LuaRocks install - handle non-Lua files in build.install.lua when upgrading sailorproject/sailor#138', function()
125 assert.is_true(run.luarocks_bool("install sailor 0.5-3 --deps-mode=none"))
126 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess"))
127 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~"))
128
129 assert.is_true(run.luarocks_bool("install sailor 0.5-4 --deps-mode=none"))
130 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess"))
131 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~"))
132 end)
121 133
122 it("LuaRocks install only-deps of luasocket packed rock", function() 134 it("LuaRocks install only-deps of luasocket packed rock", function()
123 assert.is_true(run.luarocks_bool("build --pack-binary-rock luasocket 3.0rc1-2")) 135 assert.is_true(run.luarocks_bool("build --pack-binary-rock luasocket 3.0rc1-2"))