curl/tests/http/clients
Viktor Szakats 739c09c8a4
tests: bundle http clients, de-dupe, enable for MSVC
To make building the http client tests faster, with no duplication, by
using the build method that other test binaries already use.

The difference compared to other tests is that these don't use internal
libcurl headers or code. With the exception of `curl_config.h`, for
a feature macro.

Before this patch, these tests were built like examples.

Also:
- de-duplicate code and give unique names to colliding symbols.
- add local getopt implementation and enable all code for MSVC.
  Adapted for curl via Public Domain source:
  4e618ef782/getopt.h
  Credits-to: Christopher Wellons
  Thanks!

Closes #17627
2025-06-16 12:29:05 +02:00
..
.gitignore tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
CMakeLists.txt tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
first.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
first.h tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
h2_pausing.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
h2_serverpush.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
h2_upgrade_extreme.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
hx_download.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
hx_upload.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
Makefile.am tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
Makefile.inc tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
tls_session_reuse.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
upload_pausing.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
ws_data.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00
ws_pingpong.c tests: bundle http clients, de-dupe, enable for MSVC 2025-06-16 12:29:05 +02:00