summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-10-20 00:41:21 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-10-20 00:41:21 +0300
commited2cbf4046b76e7f08a17577d286c08f2439e93f (patch)
tree103321e2670b8669776c661d87f950cebc838ac2 /spec
parentfd913d6aab284668854a71a97ac64e9a7dbdd0b8 (diff)
downloadluarocks-ed2cbf4046b76e7f08a17577d286c08f2439e93f.tar.gz
luarocks-ed2cbf4046b76e7f08a17577d286c08f2439e93f.tar.bz2
luarocks-ed2cbf4046b76e7f08a17577d286c08f2439e93f.zip
Add a test for wrapped script backup
Diffstat (limited to 'spec')
-rw-r--r--spec/install_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index f068af76..a00396fa 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -100,9 +100,11 @@ describe("LuaRocks install tests #blackbox #b_install", function()
100 end) 100 end)
101 101
102 it('LuaRocks install - handle versioned modules and commands from different files when upgrading #302', function() 102 it('LuaRocks install - handle versioned modules and commands from different files when upgrading #302', function()
103 io.open(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension, "w"):close()
103 assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --deps-mode=none")) 104 assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --deps-mode=none"))
104 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck.lua")) 105 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck.lua"))
105 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension)) 106 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension))
107 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension .. "~"))
106 108
107 assert.is_true(run.luarocks_bool("install luacheck 0.8.0 --deps-mode=none")) 109 assert.is_true(run.luarocks_bool("install luacheck 0.8.0 --deps-mode=none"))
108 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua")) 110 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua"))