Some of the tests use httpbin.org
. It may happen that the website
rejects requests because they are too frequent. To avoid this problem
and to make testing faster, it is recommended to use a local Docker
image.
With docker:
sudo docker run --rm -d -p 8080:80 kennethreitz/httpbin
or with podman:
podman run --rm -d -p 8080:80 docker.io/kennethreitz/httpbin
Then we will run the tests by setting the following environment variables:
HTTPBIN
(defaults tohttpbin.org
if not set) andHTTPBIN_PORT
(defaults to80
if not set).
HTTPBIN=localhost HTTPBIN_PORT=8080 _build/bin/curl-easy-test-suite