curl-curl/tests/server
Viktor Szakats 6a0cd4feb7
tests: make individual test sources compile cleanly
Tidy up headers and includes to ensure all individual test source
compile cleanly (but not link). To allow running clang-tidy (and
possibly other static analyzers) on them. It also improves readability
and allows to verify them locally, without the bundle logic.

clang-tidy ignores #included C files, so it's blind to bundle C files
the include these tests. The current workaround of embedding has
a couple of downsides:. meaningless filenames and line numbers,
missing issues, messing up self header paths. Thus, running it on
individual sources would be beneficial.

Also:
- de-duplicate includes.
- untangle some includes.
- formatting/indentation fixes.
- merge `getpart.h` into `first.h`.

Ref: https://github.com/curl/curl/pull/17680#issuecomment-2991730158

Closes #17703
2025-06-22 15:58:15 +02:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt tests: drop BUNDLE_SRC variable 2025-06-21 10:49:05 +02:00
dnsd.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
first.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
first.h tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
getpart.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
Makefile.am tests: drop BUNDLE_SRC variable 2025-06-21 10:49:05 +02:00
Makefile.inc tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
mqttd.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
resolve.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
rtspd.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
sockfilt.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
socksd.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
sws.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
tftpd.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
util.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00