aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-10-29 17:51:04 -0200
committerHisham <hisham@gobolinux.org>2016-10-29 17:51:04 -0200
commit560683c4ac0851bf78bd97cf2bd94bb510f95ae6 (patch)
treee7350e4091a1ede07390bb446de910168dbedac4 /spec
parent67f73b4a1a18a6ff9535ac4ed5faec0d1eb9671a (diff)
parentbcdb901611b05870692de69bd2a7cd1eec88a114 (diff)
downloadluarocks-560683c4ac0851bf78bd97cf2bd94bb510f95ae6.tar.gz
luarocks-560683c4ac0851bf78bd97cf2bd94bb510f95ae6.tar.bz2
luarocks-560683c4ac0851bf78bd97cf2bd94bb510f95ae6.zip
Merge branch 'luarocks-3' into new-cmd-dir
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))