curl/tests/server
Viktor Szakats ee06673296
build: sync tests unity builds between cmake and autotools
Instead of relying on CMake's built-in unity feature, use `mk-unity.pl`,
as already done with autotools. It simplified the build, shortens logs
and makes debugging easier because of the fewer build variations.
It also allows testing / fixing with cmake and those automatically apply
to autotools builds too. cmake builds can be much-much faster, esp.
when working the builds themselves.

It also enables "unity" in old cmake versions. Basically every test
target is a single generated .c source.

Also:
- drop a `lib` unity workaround for libtests with autotools after fixing
  the issue in libtests itself. It drops a few exceptions and makes
  libcurl build faster (in autotools unity).
- fix another `lib` autotools unity issue and drop the workaround for it
  from `mk-unity.pl`. `srcdir` was missing from the header path.
- simplify `mk-unity.pl` command-lines, drop exclusions.

Follow-up to 2c27a67daa #17590

Closes #17628
2025-06-16 01:07:41 +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 build: sync tests unity builds between cmake and autotools 2025-06-16 01:07:41 +02:00
dnsd.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
first.c tests: tidy up server main function, whitespace and README 2025-06-15 14:11:21 +02:00
first.h tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
getpart.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
getpart.h tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
Makefile.am build: sync tests unity builds between cmake and autotools 2025-06-16 01:07:41 +02:00
Makefile.inc tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
mqttd.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
resolve.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
rtspd.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
sockfilt.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
socksd.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
sws.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
tftpd.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
util.c tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
util.h tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00