diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 12:03:45 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 14:11:02 -0300 |
commit | f82627800d09755412bc50cbf9f1f964d1b2c5be (patch) | |
tree | 4987b82391d8e1b99873e9e3df4b20dbcecd7610 /spec | |
parent | ead55bc1530914e18b48f80b5d594ffca6306d21 (diff) | |
download | luarocks-f82627800d09755412bc50cbf9f1f964d1b2c5be.tar.gz luarocks-f82627800d09755412bc50cbf9f1f964d1b2c5be.tar.bz2 luarocks-f82627800d09755412bc50cbf9f1f964d1b2c5be.zip |
Enable use of lua-bz2
Fixes #1005.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util/test_env.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 9ff0a470..e3aad1b1 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
@@ -650,6 +650,7 @@ function test_env.setup_specs(extra_rocks) | |||
650 | require("spec.util.git_repo") | 650 | require("spec.util.git_repo") |
651 | 651 | ||
652 | package.path = test_env.env_variables.LUA_PATH | 652 | package.path = test_env.env_variables.LUA_PATH |
653 | package.cpath = test_env.env_variables.LUA_CPATH | ||
653 | 654 | ||
654 | test_env.platform = execute_output(test_env.testing_paths.lua .. " -e \"cfg = require('luarocks.core.cfg'); cfg.init(); print(cfg.arch)\"", false, test_env.env_variables) | 655 | test_env.platform = execute_output(test_env.testing_paths.lua .. " -e \"cfg = require('luarocks.core.cfg'); cfg.init(); print(cfg.arch)\"", false, test_env.env_variables) |
655 | test_env.wrapper_extension = test_env.TEST_TARGET_OS == "windows" and ".bat" or "" | 656 | test_env.wrapper_extension = test_env.TEST_TARGET_OS == "windows" and ".bat" or "" |
@@ -918,7 +919,8 @@ function test_env.main() | |||
918 | table.insert(urls, "/md5-1.2-1.src.rock") | 919 | table.insert(urls, "/md5-1.2-1.src.rock") |
919 | --table.insert(urls, "/lzlib-0.4.1.53-1.src.rock") | 920 | --table.insert(urls, "/lzlib-0.4.1.53-1.src.rock") |
920 | table.insert(urls, "/lua-zlib-1.2-0.src.rock") | 921 | table.insert(urls, "/lua-zlib-1.2-0.src.rock") |
921 | rocks = {"luafilesystem", "luasocket", "md5", "lua-zlib"} | 922 | table.insert(urls, "/lua-bz2-0.1.0-1.src.rock") |
923 | rocks = {"luafilesystem", "luasocket", "md5", "lua-zlib", "lua-bz2"} | ||
922 | if test_env.TEST_TARGET_OS ~= "windows" then | 924 | if test_env.TEST_TARGET_OS ~= "windows" then |
923 | table.insert(urls, "/luaposix-33.2.1-1.src.rock") | 925 | table.insert(urls, "/luaposix-33.2.1-1.src.rock") |
924 | table.insert(rocks, "luaposix") | 926 | table.insert(rocks, "luaposix") |