curl/scripts
Daniel Stenberg c9bb9cd165
unit tests: extract "private" prototypes at build time
In order to do unit tests for private functions, functions that are
marked UNITTEST but without a global scope in the library, functions
that do not have prototypes in their corresponding header file, unit
tests previously brought their own private prototype *copy* into the
unit test.

This was error-prone when the internal function changes but the change
might be missed in the unit test which then uses an outdated prototype
copy for testing.

This change removes the private prototypes from unit tests and instead
introduces a C file parser that parses the specific C files and extracts
the necessary unit test prototypes into a generated header file for unit
tests to use. This geneated lib/unitprotos.h header is then included by
unit tests that need private prototypes.

Assisted-by: Viktor Szakats
Closes #17750
2025-06-30 23:16:40 +02:00
..
cd2cd
cd2nroff TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00
cdall
checksrc-all.sh
checksrc.pl checksrc: reduce exceptions, apply again to curlx 2025-06-27 17:33:35 +02:00
ciconfig.pl
cijobs.pl
cmakelint.sh cmake: replace cmakelint with cmake-lint from cmakelang, fix issues 2025-06-11 07:07:49 +02:00
CMakeLists.txt
completion.pl scripts: fix perl indentation, whitespace, semicolons 2025-04-29 19:35:55 +02:00
contributors.sh
contrithanks.sh
coverage.sh
delta
dmaketgz
extract-unit-protos unit tests: extract "private" prototypes at build time 2025-06-30 23:16:40 +02:00
firefox-db2pem.sh firefox-db2pem: avoid use of eval in script 2025-06-28 21:12:27 -07:00
installcheck.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Makefile.am unit tests: extract "private" prototypes at build time 2025-06-30 23:16:40 +02:00
maketgz Makefile.dist: delete 2025-01-27 20:59:47 +01:00
managen
mdlinkcheck
mk-ca-bundle.pl
mk-unity.pl cmake: replace the way clang-tidy verifies tests, fix issues found 2025-06-22 23:08:46 +02:00
nroff2cd
pythonlint.sh
randdisable
release-notes.pl
release-tools.sh
schemetable.c WebSockets: make support official (non-experimental) 2024-09-27 13:20:25 +02:00
singleuse.pl
top-complexity top-complexity: lower max allowed complexity threshold to 90 2025-06-21 10:52:15 +02:00
verify-release
wcurl wcurl: update to v2025.05.26 2025-05-27 09:29:43 +02:00