diff options
author | Hisham <hisham@gobolinux.org> | 2016-10-20 14:23:41 -0400 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-10-20 14:23:41 -0400 |
commit | 93f6b42794d864725fbe381425da7db9de95e766 (patch) | |
tree | a3c07ca56275c0482df741e2d1463c72d398909f /spec | |
parent | b526f07e99af98ba42786e88c52636e52059b398 (diff) | |
parent | 1a9389f0687017430c84ade3252f46ac4b77a738 (diff) | |
download | luarocks-93f6b42794d864725fbe381425da7db9de95e766.tar.gz luarocks-93f6b42794d864725fbe381425da7db9de95e766.tar.bz2 luarocks-93f6b42794d864725fbe381425da7db9de95e766.zip |
Merge branch 'master' into luarocks-3
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install_spec.lua | 12 |
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 | ||
28 | describe("LuaRocks install tests #blackbox #b_install", function() | 30 | describe("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")) |