Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that hurl has been built with libcurl dynamically #1846

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions bin/test/test_integ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ command -v hurlfmt || (echo "ERROR - hurlfmt not found" ; exit 1)
hurl --version
hurlfmt --version

# Check that hurl is dynamically linked with libcurl
# if libcurl-dev is not installed, Hurl is built implicitly with an old static libcurl
# https://github.com/alexcrichton/curl-rust/issues/523
# TODO: Add MacOS
if [[ "$(uname -s)" = "Linux*" ]]; then
libcurl_lib=$(ldd "$(which hurl)" | grep libcurl || test $? = 1)
if [ -z "$libcurl_lib" ]; then
echo "hurl has not been built with libcurl dynamically"
echo "you are probably missing the libcurl-dev package"
exit 1
else
echo "Using libcurl library"
echo "$libcurl_lib"
fi
fi


# integration tests
cd integration
./hurlfmt_check.sh tests_ok/*.hurl tests_failed/*.hurl
Expand Down