curl/tests/http/testenv
Viktor Szakats 00887aee8c
tests: merge clients into libtests, drop duplicate code
libtests and clients were built the same way after recent overhauls.
libtests are used by runtests, clients by pytests.

Merge clients into libtests, aligning their entry function signature,
dropping common utility functions, and simplifying the build.

Note: After this patch `CURLDEBUG` applies to cli tests, when enabled.

Also:
- lib552: drop local copy-paste debug callback in favor of testtrace.
- lib552: drop local copy-paste dump function in favor of testtrace.
- clients: use `long` for HTTP version, drop casts.
- clients: replace local dump function in favor of testrace clone.
- sync cli test entry function prototype with libtests'.
- h2_serverpush: replace local trace callback with testtrace.
- de-duplicate 3 websocket close, ping, ping, functions. Kept the pong
  iteration from `ws_pingpong`. Note: the pong clone in `lib2304` was
  returning an error when `curl_ws_recv()` returned non-zero and
  the payload matched the expected one anyway. After this patch, this
  case returns success, as it does in `ws_pingpong`.
  `lib2304` keeps passing, but I'm not sure if the previous behavior
  was intentional.
- display full value in websocket close, ping, pong, drop casts.

Closes #18079
2025-07-30 02:38:13 +02:00
..
mod_curltest tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
__init__.py pytest: add SOCKS tests and scoring 2025-07-23 18:12:31 +02:00
caddy.py scorecard: rework format and add json print 2025-06-02 23:15:33 +02:00
certs.py pytest: add pinnedpubkey test cases 2025-05-21 22:45:42 +02:00
client.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
curl.py curl: add long option '--out-null' 2025-07-28 14:57:38 +02:00
dante.py pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
env.py pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
httpd.py pytest: increase server KeepAliveTimeout 2025-07-20 23:15:11 +02:00
nghttpx.py pytest: adapt for runs with openssl-1.1.1 2025-06-05 13:52:29 +02:00
ports.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
vsftpd.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
ws_echo_server.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00