curl-curl/tests/tunit
Viktor Szakats 784c17b7d9
tests: move curlcheck.h to libtest as unitcheck.h
To simplify dependencies, and sync tunits and units builds further.

`curlcheck.h` already depended on logic implemented within libtests:
it referenced a global variable (`unitfail`) defined in `first.c` and
declared in `test.h`.

Also:
- rename to `unitcheck.h` to indicate it's meant for unit tests.
- make `unitcheck.h` include `first.h` instead of `test.h`.
  This brings header use closer to libtests. It also includes
  `curlx/curlx.h` for all unit tests by default now.
- move `unitfail` declaration from `test.h` to `first.h`.
  To match its definition in `first.c`.
- drop now redundant per-test curlx header includes.

Closes #17868
2025-07-09 02:29:25 +02:00
..
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt tests: move curlcheck.h to libtest as unitcheck.h 2025-07-09 02:29:25 +02:00
Makefile.am tests: move curlcheck.h to libtest as unitcheck.h 2025-07-09 02:29:25 +02:00
Makefile.inc build: split .c and .h file lists in tests 2025-06-26 10:20:41 +02:00
README.md tests/tunit: make a separate directory for tool-based unit tests 2025-04-08 08:08:05 +02:00
tool1394.c tests: move curlcheck.h to libtest as unitcheck.h 2025-07-09 02:29:25 +02:00
tool1604.c tests: move curlcheck.h to libtest as unitcheck.h 2025-07-09 02:29:25 +02:00
tool1621.c tests: move curlcheck.h to libtest as unitcheck.h 2025-07-09 02:29:25 +02:00

Tool unit tests

This directory is for unit testing of tool functions. They are separate from libcurl unit tests, because how these live/work outside of the library and the libcurl unit tests live/work inside.