curl/tests/http/clients
Viktor Szakats e785e898a6
checksrc: avoid extra runs in CI, enable more check locally, fix fallouts
To avoid redundant work in CI and to avoid a single checksrc issue make
all autotools jobs fail. After this patch checksrc issues make fail
the checksrc job, the `dist / verify-out-of-tree-autotools-debug`,
`dist / maketgz-and-verify-in-tree`  jobs and the fuzzer job (if run).
Of these, the `dist` jobs replicate local builds, also testing the build
logic.

Also add a script to check the complete local repository, optionally
with the build tree to verify generated C files.

Also:
- automatically run checksrc in subdirectories having a `checksrc`
  target. (examples, OS400, tests http/client, unit and tunit)
- tests/libtest: make sure to run `checksrc` on generated `lib1521.c`.
  (requires in-tree autotools build.)
- tests: run `checksrc` on targets also for non-`DEBUGBUILD`
  builds. It ensures to check `lib1521.c` in CI via job
  `dist / maketgz-and-verify-in-tree`.
- src: drop redundant `$(builddir)` in autotools builds.
- scripts: add `checksrc-all.sh` script to check all C sources and
  the build directory as an option.
- use the above from CI, also make it verify all generated sources.
- silence `checksrc` issues in generated C sources.
- checksrc: add `-v` option to enable verbose mode.
- checksrc: make verbose mode show checked filename and fix to only
  return error on failure.
- make sure that generated C files pass `checksrc`.

Assisted-by: Daniel Stenberg

Closes #17376
2025-05-19 18:59:50 +02:00
..
.gitignore gitignore: restore explicit lists and fix them 2025-01-28 14:44:35 +01:00
CMakeLists.txt msvc: tidy up _CRT_*_NO_DEPRECATE definitions 2025-01-12 00:34:21 +01: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 lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
Makefile.am checksrc: avoid extra runs in CI, enable more check locally, fix fallouts 2025-05-19 18:59:50 +02:00
Makefile.inc tidy-up: .gitignore lines mostly 2025-01-27 20:59:46 +01: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