aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/util/test_env.lua15
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