summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-10-29 17:47:04 -0200
committerHisham <hisham@gobolinux.org>2016-10-29 17:47:04 -0200
commit5b8d37cdbdd93e0cbd4e78d564dd0018972b3a44 (patch)
treec45d92d856a333f5e51485791e08c688a68bd6d6 /spec
parent825e722029fbc93976c2d882dd21f444f9bffda0 (diff)
parentd9437bb79499c25751c304ee684c5de8fbfa1d73 (diff)
downloadluarocks-5b8d37cdbdd93e0cbd4e78d564dd0018972b3a44.tar.gz
luarocks-5b8d37cdbdd93e0cbd4e78d564dd0018972b3a44.tar.bz2
luarocks-5b8d37cdbdd93e0cbd4e78d564dd0018972b3a44.zip
Merge branch 'master' into luarocks-3
Diffstat (limited to 'spec')
-rw-r--r--spec/install_spec.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index 8d43ca2a..74f8f493 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -88,6 +88,19 @@ describe("LuaRocks install tests #blackbox #b_install", function()
88 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasec")) 88 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasec"))
89 end) 89 end)
90 90
91 it('LuaRocks install - handle relative path in --tree #632', function()
92 local relative_path = "./temp_dir_"..math.random(100000)
93 if test_env.TEST_TARGET_OS == "windows" then
94 relative_path = relative_path:gsub("/", "\\")
95 end
96 test_env.remove_dir(relative_path)
97 assert.is.falsy(lfs.attributes(relative_path))
98 assert.is_true(run.luarocks_bool("install luafilesystem --tree="..relative_path))
99 assert.is.truthy(lfs.attributes(relative_path))
100 test_env.remove_dir(relative_path)
101 assert.is.falsy(lfs.attributes(relative_path))
102 end)
103
91 it('LuaRocks install - handle versioned modules when installing another version with --keep #268', function() 104 it('LuaRocks install - handle versioned modules when installing another version with --keep #268', function()
92 assert.is_true(run.luarocks_bool("install luafilesystem")) 105 assert.is_true(run.luarocks_bool("install luafilesystem"))
93 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) 106 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension))