Skip to content

Commit

Permalink
dnsdist: update test runner for mac with dynamic prefix and up to dat…
Browse files Browse the repository at this point in the history
…e package name for curl
  • Loading branch information
chbruyand committed Jun 15, 2024
1 parent 97e9ecf commit 6429973
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions regression-tests.dnsdist/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ python -V

if [ `uname -s` == Darwin ]
then
if [ ! -e /usr/local/opt/curl-openssl ]
BREW_CURL_PREFIX=$(brew --prefix curl)
if [ ! -e "${BREW_CURL_PREFIX}" ]
then
echo Please run: brew install curl-openssl, and try again
echo Please run: brew install curl, and try again
exit 1
else
export PYCURL_CURL_CONFIG=/usr/local/opt/curl-openssl/bin/curl-config
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PYCURL_CURL_CONFIG="${BREW_CURL_PREFIX}/bin/curl-config"
export LDFLAGS="-L${BREW_CURL_PREFIX}/lib${LDFLAGS+ $LDFLAGS}"
export CPPFLAGS="-I${BREW_CURL_PREFIX}/include${CPPFLAGS+ $CPPFLAGS}"
export PKG_CONFIG_PATH="${BREW_CURL_PREFIX}/lib/pkgconfig"
fi
fi
pip install -U pip wheel | cat
Expand Down

0 comments on commit 6429973

Please sign in to comment.