]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: list more dependencies for running Python HTTP tests
authorDan Fandrich <dan@coneharvesters.com>
Thu, 26 Mar 2026 22:06:20 +0000 (15:06 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 31 Mar 2026 04:54:39 +0000 (21:54 -0700)
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Viktor Szakats <commit@vsz.me>
Closes #21110

docs/tests/HTTP.md
tests/http/testenv/env.py

index 0470f47ef37df3573b88e5aef8ee4646fdfbe1ae..88fb9a0c4b4ea35cb97bc49ed2d9080967135e8c 100644 (file)
@@ -17,7 +17,7 @@ The test cases and necessary files are in `tests/http`. You can invoke
 tests.
 
 ```sh
-curl> pytest test/http
+curl> pytest tests/http
 platform darwin -- Python 3.9.15, pytest-6.2.0, py-1.10.0, pluggy-0.13.1
 rootdir: /Users/sei/projects/curl
 collected 5 items
@@ -45,11 +45,15 @@ skipping.
 
 You need:
 
-1. a recent Python, the `cryptography` module and, of course, `pytest`
-2. an apache httpd development version. On Debian/Ubuntu, the package
-   `apache2-dev` has this
-3. a local `curl` project build
-3. optionally, a `nghttpx` with HTTP/3 enabled or h3 test cases are skipped
+1. a recent Python, `pytest` and the other modules listed in
+   `tests/http/requirements.txt`
+2. Apache httpd and its development files. On Debian/Ubuntu, the packages
+   `apache2-bin` and `apache2-dev` have these.
+3. the Apache `mod_ssl`, `mod_http2` and `mod_proxy` modules. On Debian/Ubuntu, these
+   modules are part of the `apache2-bin` package, but other distributions may
+   package them separately.
+4. a local `curl` project build
+5. optionally, `nghttpx` with HTTP/3 enabled or h3 test cases are skipped
 
 ### Configuration
 
index 76df2edb493f03984fcbd4bb326bec3d1912b08b..a92bc23ef3d171737e4c51d2e86cb100f68f31c7 100644 (file)
@@ -233,7 +233,7 @@ class EnvConfig:
             if m:
                 self._caddy_version = m.group(1)
             else:
-                raise RuntimeError(f'Unable to determine cadd version from: {p.stdout}')
+                raise RuntimeError(f'Unable to determine caddy version from: {p.stdout}')
 
         self.vsftpd = self.config['vsftpd']['vsftpd']
         if self.vsftpd == '':