diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-10-19 18:10:18 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-10-19 18:10:18 +0300 |
commit | 5c6eb8604fe5aee3088096ef808399f847fb24a0 (patch) | |
tree | ea31dbbfc4b4a0aa60fcef81b43b5065cbe7b626 /spec | |
parent | 2bfcd954d1b7c94983ea3e25ac1cf44f304d9505 (diff) | |
download | luarocks-5c6eb8604fe5aee3088096ef808399f847fb24a0.tar.gz luarocks-5c6eb8604fe5aee3088096ef808399f847fb24a0.tar.bz2 luarocks-5c6eb8604fe5aee3088096ef808399f847fb24a0.zip |
Fix tests on Windows with Lua 5.3
Don't install luafilesystem 1.6.1 on Windows with Lua 5.3, it
fails.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 45b3e2f9..2bbf4221 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
@@ -20,7 +20,7 @@ local extra_rocks = { | |||
20 | "/say-1.0-1.src.rock", | 20 | "/say-1.0-1.src.rock", |
21 | "/wsapi-1.6-1.src.rock", | 21 | "/wsapi-1.6-1.src.rock", |
22 | "/luafilesystem-1.6.3-2.src.rock", | 22 | "/luafilesystem-1.6.3-2.src.rock", |
23 | "/luafilesystem-1.6.1-1.src.rock", | 23 | "/luafilesystem-1.6.3-1.src.rock", |
24 | } | 24 | } |
25 | 25 | ||
26 | describe("LuaRocks install tests #blackbox #b_install", function() | 26 | describe("LuaRocks install tests #blackbox #b_install", function() |
@@ -87,12 +87,12 @@ describe("LuaRocks install tests #blackbox #b_install", function() | |||
87 | it('LuaRocks install - handle versioned modules when installing another version with --keep #268', function() | 87 | it('LuaRocks install - handle versioned modules when installing another version with --keep #268', function() |
88 | assert.is_true(run.luarocks_bool("install luafilesystem")) | 88 | assert.is_true(run.luarocks_bool("install luafilesystem")) |
89 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) | 89 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) |
90 | assert.is_true(run.luarocks_bool("install luafilesystem 1.6.1 --keep")) | 90 | assert.is_true(run.luarocks_bool("install luafilesystem 1.6.3-1 --keep")) |
91 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) | 91 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) |
92 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_1_1-lfs."..test_env.lib_extension)) | 92 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_3_1-lfs."..test_env.lib_extension)) |
93 | assert.is_true(run.luarocks_bool("install luafilesystem")) | 93 | assert.is_true(run.luarocks_bool("install luafilesystem")) |
94 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) | 94 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) |
95 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_1_1-lfs."..test_env.lib_extension)) | 95 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_3_1-lfs."..test_env.lib_extension)) |
96 | end) | 96 | end) |
97 | 97 | ||
98 | it("LuaRocks install only-deps of luasocket packed rock", function() | 98 | it("LuaRocks install only-deps of luasocket packed rock", function() |