curl-curl/tests/tunit
Daniel Stenberg 98d8e82c74
lib: move all UNITTEST prototypes to C files
- make extract-unit-protos handle multi-line prototypes - but they need
  to be above the implementation

- Prototypes for static functions we use in unit tests should not be in
  header files. We generate lib/unitprotos.h for this purpose

- Removed some function wrappers written for unit tests and make them
  use UNITTEST function directly.

- Renamed time2str() in the tool to timebuf() since we have the same
  name in lib/ and in unit tests they can both be used non-static in a
  build.

This reverts commit f95fadd116.

Follow-up to #21010

Closes #21014
2026-03-20 07:47:57 +01:00
..
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tool: support fractions for --limit-rate and --max-filesize 2026-01-17 23:25:26 +01:00
README.md tests/tunit: make a separate directory for tool-based unit tests 2025-04-08 08:08:05 +02:00
tool1394.c build: stop overriding standard memory allocation functions 2025-11-28 10:44:26 +01:00
tool1604.c test1604: avoid dynamic allocations 2026-02-02 12:28:13 +01:00
tool1621.c build: stop overriding standard memory allocation functions 2025-11-28 10:44:26 +01:00
tool1622.c lib: move all UNITTEST prototypes to C files 2026-03-20 07:47:57 +01:00
tool1623.c tidy-up: miscellaneous 2026-01-20 12:37:56 +01: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.