curl/tests/http
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
..
testenv tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
CMakeLists.txt pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
config.ini.in pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
conftest.py pytest: adapt for runs with openssl-1.1.1 2025-06-05 13:52:29 +02:00
Makefile.am tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
requirements.txt tests/http/requirements: remove multipart 2025-07-05 18:13:29 +02:00
scorecard.py vquic: drop msh3 2025-07-27 17:57:17 +02:00
test_01_basic.py misc: fix spelling 2025-05-29 10:21:05 +02:00
test_02_download.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_03_goaway.py vquic: drop msh3 2025-07-27 17:57:17 +02:00
test_04_stuttered.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
test_05_errors.py vquic: drop msh3 2025-07-27 17:57:17 +02:00
test_06_eyeballs.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
test_07_upload.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_08_caddy.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_09_push.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_10_proxy.py alpn: query filter 2025-07-28 14:04:31 +02:00
test_11_unix.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
test_12_reuse.py spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
test_13_proxy_auth.py alpn: query filter 2025-07-28 14:04:31 +02:00
test_14_auth.py digest: fix build with disabled digest auth 2025-06-15 12:07:22 +02:00
test_15_tracing.py build: fix disable-verbose 2025-07-28 11:18:07 +02:00
test_16_info.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
test_17_ssl_use.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_18_methods.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
test_19_shutdown.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_20_websockets.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
test_30_vsftpd.py build: fix disable-verbose 2025-07-28 11:18:07 +02:00
test_31_vsftpds.py build: fix disable-verbose 2025-07-28 11:18:07 +02:00
test_32_ftps_vsftpd.py build: fix disable-verbose 2025-07-28 11:18:07 +02:00
test_40_socks.py pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00