curl/tests/tunit
Daniel Stenberg b32e66a8ee
tool_progress: fix large time outputs and decimal size display
Time output:

- was broken for really large times

- now uses spaces instead of --:--:--

- >99999y is now the largest shown time

- show HH:MM:SS as long as hours are fewer than 100

Size:

- made the decimal output always only use a single decimal

Test:

- Add test 1622 to verify these functions

Closes #20177
2026-01-04 00:16:59 +01:00
..
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt build: tidy up compiler definition for tests 2025-07-28 12:43:01 +02:00
Makefile.am lib: stop overriding system printf symbols 2025-10-06 20:57:59 +02:00
Makefile.inc tool_progress: fix large time outputs and decimal size display 2026-01-04 00:16:59 +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 tests: include headers only when used 2025-12-31 17:00:56 +01:00
tool1621.c build: stop overriding standard memory allocation functions 2025-11-28 10:44:26 +01:00
tool1622.c tool_progress: fix large time outputs and decimal size display 2026-01-04 00:16:59 +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.