curl-curl/.github/workflows
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
..
appveyor-status.yml GHA: add yamlcheck 2024-08-23 18:42:55 +02:00
checkdocs.yml CI: fix zizmor 1.9.0 warnings, shellcheck verify CI shell code, fix fallouts 2025-06-06 21:30:43 +02:00
checksrc.yml cmake: replace cmakelint with cmake-lint from cmakelang, fix issues 2025-06-11 07:07:49 +02:00
configure-vs-cmake.yml GHA: tidy up single-line run blocks 2025-06-06 23:24:27 +02:00
curl-for-win.yml CI: fix zizmor 1.9.0 warnings, shellcheck verify CI shell code, fix fallouts 2025-06-06 21:30:43 +02:00
distcheck.yml CI: fix zizmor 1.9.0 warnings, shellcheck verify CI shell code, fix fallouts 2025-06-06 21:30:43 +02:00
fuzz.yml fuzzer: get the deadlock unstuck 2025-06-05 13:49:46 +02:00
hacktoberfest-accepted.yml GHA/hacktoberfest-accepted: prefer GH_TOKEN 2025-06-09 12:28:47 +02:00
http3-linux.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
label.yml GHA/checksrc: check GHA rules with zizmor 2025-05-07 23:11:09 +02:00
linux-old.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
linux.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
macos.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
non-native.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
windows.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00