curl/tests/http/clients
Viktor Szakats 2c27a67daa
tests: always make bundles, adapt build and tests
Make test bundles the default. Drop non-bundle build mode.
Also do all the optimizations and tidy-ups this allows, simpler builds,
less bundle exceptions, streamlined build mechanics.

Also rework the init/deinit macro magic for unit tests. The new method
allows using unique init/deinit function names, and calling them with
arguments. This is in turn makes it possible to reduce the use of global
variables.

Note this drop existing build options `-DCURL_TEST_BUNDLES=` from cmake
and `--enable-test-bundles` / `--disable-test-bundles` from autotools.

Also:
- rename test entry functions to have unique names: `test_<testname>`
  This removes the last exception that was handled in the generator.
- fix `make dist` to not miss test sources with test bundles enabled.
- sync and merge `tests/mk-bundle.pl` into `scripts/mk-unity.pl`.
- mk-unity.pl: add `--embed` option and use it when `CURL_CLANG_TIDY=ON`
  to ensure that `clang-tidy` does not miss external test C sources.
  (because `clang-tidy` ignores code that's #included.)
- tests/unit: drop no-op setup/stop functions.
- tests: reduce symbol scopes, global macros, other fixes and tidy-ups.
- tool1621: fix to run, also fix it to pass.
- sockfilt: fix Windows compiler warning in certain unity include order,
  by explicitly including `warnless.h`.

Follow-up to 6897aeb105 #17468

Closes #17590
2025-06-14 21:08:23 +02:00
..
.gitignore gitignore: restore explicit lists and fix them 2025-01-28 14:44:35 +01:00
CMakeLists.txt tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
h2-pausing.c tidy-up: prefer return over exit(), fix fallouts 2025-02-28 13:11:41 +01:00
h2-serverpush.c lib/src: white space edits to comply better with code style 2024-09-19 14:59:12 +02:00
h2-upgrade-extreme.c tidy-up: prefer return over exit(), fix fallouts 2025-02-28 13:11:41 +01:00
hx-download.c lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
hx-upload.c http: fail early when rewind of input failed when following redirects 2025-05-28 14:53:02 +02:00
Makefile.am tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
Makefile.inc tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
tls-session-reuse.c lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
upload-pausing.c lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
ws-data.c tidy-up: delete, comment or scope C macros reported unused 2025-02-14 10:37:14 +01:00
ws-pingpong.c tidy-up: delete, comment or scope C macros reported unused 2025-02-14 10:37:14 +01:00