diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-05-14 14:53:54 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-05-14 15:48:32 -0300 |
| commit | 81c23bc4cb518b2892ed1ffd089e610a45013692 (patch) | |
| tree | 067f4c0ef944d0c8581b8dfb0b6d2473a608dc09 /spec | |
| parent | 1823bb266df791aeeb2f55f6fb0f911d8910ab4a (diff) | |
| download | luarocks-81c23bc4cb518b2892ed1ffd089e610a45013692.tar.gz luarocks-81c23bc4cb518b2892ed1ffd089e610a45013692.tar.bz2 luarocks-81c23bc4cb518b2892ed1ffd089e610a45013692.zip | |
tests: setup openssl via brew with new paths
https://stackoverflow.com/questions/29651258/install-openssl-devel-on-mac
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/util/test_env.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 1d38cec6..92fb1939 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
| @@ -391,8 +391,19 @@ function test_env.set_args() | |||
| 391 | elseif system == "Darwin" then | 391 | elseif system == "Darwin" then |
| 392 | test_env.TEST_TARGET_OS = "osx" | 392 | test_env.TEST_TARGET_OS = "osx" |
| 393 | if test_env.CI then | 393 | if test_env.CI then |
| 394 | test_env.OPENSSL_INCDIR = "/usr/local/opt/openssl/include" | 394 | if exists("/opt/homebrew/opt/openssl@3/include") then |
| 395 | test_env.OPENSSL_LIBDIR = "/usr/local/opt/openssl/lib" | 395 | test_env.OPENSSL_INCDIR = "/opt/homebrew/opt/openssl@3/include" |
| 396 | test_env.OPENSSL_LIBDIR = "/opt/homebrew/opt/openssl@3/lib" | ||
| 397 | elseif exists("/opt/homebrew/opt/openssl@1.1/include") then | ||
| 398 | test_env.OPENSSL_INCDIR = "/opt/homebrew/opt/openssl@1.1/include" | ||
| 399 | test_env.OPENSSL_LIBDIR = "/opt/homebrew/opt/openssl@1.1/lib" | ||
| 400 | elseif exists("/opt/homebrew/opt/openssl/include") then | ||
| 401 | test_env.OPENSSL_INCDIR = "/opt/homebrew/opt/openssl/include" | ||
| 402 | test_env.OPENSSL_LIBDIR = "/opt/homebrew/opt/openssl/lib" | ||
| 403 | else | ||
| 404 | test_env.OPENSSL_INCDIR = "/usr/local/opt/openssl/include" | ||
| 405 | test_env.OPENSSL_LIBDIR = "/usr/local/opt/openssl/lib" | ||
| 406 | end | ||
| 396 | end | 407 | end |
| 397 | end | 408 | end |
| 398 | end | 409 | end |
