curl-curl/tests/libtest
Viktor Szakats e785e898a6
checksrc: avoid extra runs in CI, enable more check locally, fix fallouts
To avoid redundant work in CI and to avoid a single checksrc issue make
all autotools jobs fail. After this patch checksrc issues make fail
the checksrc job, the `dist / verify-out-of-tree-autotools-debug`,
`dist / maketgz-and-verify-in-tree`  jobs and the fuzzer job (if run).
Of these, the `dist` jobs replicate local builds, also testing the build
logic.

Also add a script to check the complete local repository, optionally
with the build tree to verify generated C files.

Also:
- automatically run checksrc in subdirectories having a `checksrc`
  target. (examples, OS400, tests http/client, unit and tunit)
- tests/libtest: make sure to run `checksrc` on generated `lib1521.c`.
  (requires in-tree autotools build.)
- tests: run `checksrc` on targets also for non-`DEBUGBUILD`
  builds. It ensures to check `lib1521.c` in CI via job
  `dist / maketgz-and-verify-in-tree`.
- src: drop redundant `$(builddir)` in autotools builds.
- scripts: add `checksrc-all.sh` script to check all C sources and
  the build directory as an option.
- use the above from CI, also make it verify all generated sources.
- silence `checksrc` issues in generated C sources.
- checksrc: add `-v` option to enable verbose mode.
- checksrc: make verbose mode show checked filename and fix to only
  return error on failure.
- make sure that generated C files pass `checksrc`.

Assisted-by: Daniel Stenberg

Closes #17376
2025-05-19 18:59:50 +02:00
..
.checksrc checksrc: introduce 'banfunc' to ban specific functions 2024-12-30 08:25:56 +01:00
.gitignore tests: git ignore the bundle executables built 2025-03-17 17:19:15 +01:00
CMakeLists.txt curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
first.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
first.h libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib500.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib501.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib502.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib503.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib504.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib505.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib506.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib507.c cmake: fix clang-tidy builds to verify tests, fix fallouts 2025-03-24 10:14:58 +01:00
lib508.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib509.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib510.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib511.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib512.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib513.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib514.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib515.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib516.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib517.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib518.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib519.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib520.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib521.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib523.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib524.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib525.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib526.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib530.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib533.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib536.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib537.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib539.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib540.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib541.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib542.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib543.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib544.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib547.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib549.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib552.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib553.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib554.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib555.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib556.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib557.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib558.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib559.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib560.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib562.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib564.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib566.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib567.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib568.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib569.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib570.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib571.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib572.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib573.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib574.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib575.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib576.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib578.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib579.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib582.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib583.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib586.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib589.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib590.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib591.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib597.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib598.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib599.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib643.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib650.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib651.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib652.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib653.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib654.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib655.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib658.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib659.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib661.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib666.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib667.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib668.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib670.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib674.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib676.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib677.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib678.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib694.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib695.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1156.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1301.c test: make unittest 1308 into a libtest 2025-04-02 14:01:27 +02:00
lib1308.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1485.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1500.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1501.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1502.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1506.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1507.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1508.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1509.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1510.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1511.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1512.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1513.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1514.c tests: speed up builds with single-binary test bundles 2024-09-22 09:51:15 +02:00
lib1515.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1517.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1518.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1520.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1522.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1523.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1525.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1526.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1527.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1528.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1529.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1530.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1531.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1532.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1533.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1534.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1535.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1536.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1537.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1538.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1540.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1541.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1542.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1545.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1550.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1551.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1552.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1553.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1554.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1555.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1556.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1557.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1558.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1559.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1560.c urlapi: remove unneeded guards around PUNY2IDN 2025-05-16 14:44:30 +02:00
lib1564.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1565.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1567.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1568.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1569.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1571.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1576.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1591.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1592.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1593.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1594.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1597.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1598.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1662.c tests: speed up builds with single-binary test bundles 2024-09-22 09:51:15 +02:00
lib1900.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1901.c curl.h: switch CURL_HTTP_VERSION* enums to long constants 2025-03-06 01:01:24 +01:00
lib1903.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1905.c cmake: fix clang-tidy builds to verify tests, fix fallouts 2025-03-24 10:14:58 +01:00
lib1906.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1907.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1908.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1910.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1911.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1912.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
lib1913.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1915.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1916.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1918.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1919.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1933.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1934.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1935.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1936.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1937.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1938.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1939.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1940.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1945.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1947.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1948.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
lib1955.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1956.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1957.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1958.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1959.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1960.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1964.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1970.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1971.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1972.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1973.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1974.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1975.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1977.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1978.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2301.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2302.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2304.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2305.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2306.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib2308.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2309.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2310.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2311.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2312.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2402.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2404.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2405.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2502.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3010.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3025.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3026.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3027.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib3100.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3101.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3102.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3103.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3104.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3105.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3207.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3208.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
libauthretry.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
libntlmconnect.c libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
libprereq.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
Makefile.am checksrc: avoid extra runs in CI, enable more check locally, fix fallouts 2025-05-19 18:59:50 +02:00
Makefile.inc lib: move multibyte.[ch] to curlx/ 2025-05-08 10:19:19 +02:00
memptr.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
mk-lib1521.pl libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
stub_gssapi.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
stub_gssapi.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test307.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test610.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test613.pl test615: fix for Cygwin, unignore in CI 2025-03-24 16:49:57 +01:00
test1013.pl test1013.pl: require case match for features, order match for protos, fix issue 2024-08-29 13:56:05 +02:00
test1022.pl test1022: add support for rc releases 2025-03-08 22:15:34 +01:00
test.h libtests: define CURL_DISABLE_DEPRECATION first 2025-05-16 23:10:43 +02:00
testtrace.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
testtrace.h tests: fix callback signatures to please UndefinedBehaviorSanitizer 2024-10-15 14:33:47 +02:00
testutil.c windows: fix issues detected by clang-tidy, and some more 2025-03-24 10:15:08 +01:00
testutil.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00