diff options
| author | Hisham <hisham@gobolinux.org> | 2016-08-23 16:00:30 -0300 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-08-23 16:00:30 -0300 |
| commit | 311d2ea373d01a71ad12d31bc250d8e6f6f6c3f8 (patch) | |
| tree | 07e03292d726a0fb4cfb17eb2c0446efc4d5e7ff /test | |
| parent | 0e6b922d2618fc90195299e2f944110c4ffe5600 (diff) | |
| parent | 9907ae567205777873e47b74c44d163367860d52 (diff) | |
| download | luarocks-311d2ea373d01a71ad12d31bc250d8e6f6f6c3f8.tar.gz luarocks-311d2ea373d01a71ad12d31bc250d8e6f6f6c3f8.tar.bz2 luarocks-311d2ea373d01a71ad12d31bc250d8e6f6f6c3f8.zip | |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_environment.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/test_environment.lua b/test/test_environment.lua index 37bd38f1..00213d31 100644 --- a/test/test_environment.lua +++ b/test/test_environment.lua | |||
| @@ -153,6 +153,7 @@ end | |||
| 153 | function test_env.set_args() | 153 | function test_env.set_args() |
| 154 | -- if at least Lua/LuaJIT version argument was found on input start to parse other arguments to env. variables | 154 | -- if at least Lua/LuaJIT version argument was found on input start to parse other arguments to env. variables |
| 155 | test_env.TYPE_TEST_ENV = "minimal" | 155 | test_env.TYPE_TEST_ENV = "minimal" |
| 156 | test_env.OPENSSL_DIRS = "" | ||
| 156 | test_env.RESET_ENV = true | 157 | test_env.RESET_ENV = true |
| 157 | 158 | ||
| 158 | for _, argument in ipairs(arg) do | 159 | for _, argument in ipairs(arg) do |
| @@ -168,9 +169,13 @@ function test_env.set_args() | |||
| 168 | test_env.TRAVIS = true | 169 | test_env.TRAVIS = true |
| 169 | elseif argument == "appveyor" then | 170 | elseif argument == "appveyor" then |
| 170 | test_env.APPVEYOR = true | 171 | test_env.APPVEYOR = true |
| 171 | test_env.APPVEYOR_OPENSSL = "OPENSSL_LIBDIR=C:\\OpenSSL-Win32\\lib OPENSSL_INCDIR=C:\\OpenSSL-Win32\\include" | 172 | test_env.OPENSSL_DIRS = "OPENSSL_LIBDIR=C:\\OpenSSL-Win32\\lib OPENSSL_INCDIR=C:\\OpenSSL-Win32\\include" |
| 172 | elseif argument:find("^os=") then | 173 | elseif argument:find("^os=") then |
| 173 | test_env.TEST_TARGET_OS = argument:match("^os=(.*)$") | 174 | test_env.TEST_TARGET_OS = argument:match("^os=(.*)$") |
| 175 | elseif argument == "mingw" then | ||
| 176 | test_env.MINGW = true | ||
| 177 | elseif argument == "vs" then | ||
| 178 | test_env.MINGW = false | ||
| 174 | else | 179 | else |
| 175 | help() | 180 | help() |
| 176 | end | 181 | end |
| @@ -629,11 +634,8 @@ local function install_luarocks(install_env_vars) | |||
| 629 | local testing_paths = test_env.testing_paths | 634 | local testing_paths = test_env.testing_paths |
| 630 | title("Installing LuaRocks") | 635 | title("Installing LuaRocks") |
| 631 | if test_env.TEST_TARGET_OS == "windows" then | 636 | if test_env.TEST_TARGET_OS == "windows" then |
| 632 | if test_env.LUA_V then | 637 | local compiler_flag = test_env.MINGW and "/MW" or "" |
| 633 | assert(execute_bool("install.bat /LUA " .. testing_paths.luadir .. " /LV " .. test_env.LUA_V .. " /P " .. testing_paths.testing_lrprefix .. " /NOREG /NOADMIN /F /Q /CONFIG " .. testing_paths.testing_lrprefix .. "/etc/luarocks", false, install_env_vars)) | 638 | assert(execute_bool("install.bat /LUA " .. testing_paths.luadir .. " " .. compiler_flag .. " /P " .. testing_paths.testing_lrprefix .. " /NOREG /NOADMIN /F /Q /CONFIG " .. testing_paths.testing_lrprefix .. "/etc/luarocks", false, install_env_vars)) |
| 634 | else | ||
| 635 | assert(execute_bool("install.bat /LUA " .. testing_paths.luadir .. " /P " .. testing_paths.testing_lrprefix .. " /NOREG /NOADMIN /F /Q /CONFIG " .. testing_paths.testing_lrprefix .. "/etc/luarocks", false, install_env_vars)) | ||
| 636 | end | ||
| 637 | assert(execute_bool(testing_paths.win_tools .. "/cp " .. testing_paths.testing_lrprefix .. "/lua/luarocks/site_config* " .. testing_paths.src_dir .. "/luarocks/site_config.lua")) | 639 | assert(execute_bool(testing_paths.win_tools .. "/cp " .. testing_paths.testing_lrprefix .. "/lua/luarocks/site_config* " .. testing_paths.src_dir .. "/luarocks/site_config.lua")) |
| 638 | else | 640 | else |
| 639 | local configure_cmd = "./configure --with-lua=" .. testing_paths.luadir .. " --prefix=" .. testing_paths.testing_lrprefix | 641 | local configure_cmd = "./configure --with-lua=" .. testing_paths.luadir .. " --prefix=" .. testing_paths.testing_lrprefix |
