curl-curl/scripts
Viktor Szakats e088e10454
cmake: replace the way clang-tidy verifies tests, fix issues found
Replace existing `mk-unity.pl` `--embed` workaround with running
`clang-tidy` manually on individual test source instead. This aligns
with how clang-tidy works and removes `mk-unity.pl` from the solution.

Also:
- mqttd: fix potentially uninitialized buffer by zero filling it.
  ```
  tests/server/mqttd.c:484:41: error: The left operand of '<<' is a garbage value
    [clang-analyzer-core.UndefinedBinaryOperatorResult,-warnings-as-errors]
    484 |       payload_len = (size_t)(buffer[10] << 8) | buffer[11];
        |                                         ^
  [...]
  tests/server/mqttd.c:606:45: error: The left operand of '<<' is a garbage value
    [clang-analyzer-core.UndefinedBinaryOperatorResult,-warnings-as-errors]
    606 |       topiclen = (size_t)(buffer[1 + bytes] << 8) | buffer[2 + bytes];
        |                                             ^
  ```
- sockfilt: fix potential out-of-bound pointer:
  ```
  tests/server/sockfilt.c:1128:33: error: The 2nd argument to 'send' is a buffer
     with size 17010 but should be a buffer with size equal to or greater than
     the value of the 3rd argument (which is 18446744073709551615)
     [clang-analyzer-unix.StdCLibraryFunctions,-warnings-as-errors]
   1128 |         ssize_t bytes_written = swrite(sockfd, buffer, buffer_len);
        |                                 ^
  ```
- clang-tidy: suppress bogus `bzero()` warnings that happens
  inside the notorious `FD_ZERO()` macros, on macOS.

Ref: https://github.com/curl/curl/pull/17680#issuecomment-2991730158

Closes #17705
2025-06-22 23:08:46 +02:00
..
cd2cd docs: introduce "curldown" for libcurl man page format 2024-01-23 00:29:02 +01:00
cd2nroff TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00
cdall docs: introduce "curldown" for libcurl man page format 2024-01-23 00:29:02 +01:00
checksrc-all.sh checksrc: avoid extra runs in CI, enable more check locally, fix fallouts 2025-05-19 18:59:50 +02:00
checksrc.pl checksrc: avoid extra runs in CI, enable more check locally, fix fallouts 2025-05-19 18:59:50 +02:00
ciconfig.pl tidy-up: use /usr/bin/env perl shebang 2024-06-26 23:58:10 +02:00
cijobs.pl GHA: tidy up apt commands 2025-01-30 02:36:43 +01:00
cmakelint.sh cmake: replace cmakelint with cmake-lint from cmakelang, fix issues 2025-06-11 07:07:49 +02:00
CMakeLists.txt cmake: install shell completions for cross-builds 2025-04-24 10:04:17 +02:00
completion.pl scripts: fix perl indentation, whitespace, semicolons 2025-04-29 19:35:55 +02:00
contributors.sh contributors.sh: lowercase 'github' for consistency 2025-02-24 08:05:06 +01:00
contrithanks.sh contrithanks.sh: drop set -e 2025-04-02 11:44:26 +02:00
coverage.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
delta scripts: fix perl indentation, whitespace, semicolons 2025-04-29 19:35:55 +02:00
dmaketgz dmaketgz: use --no-cache when building docker image 2024-12-05 15:41:53 +01:00
firefox-db2pem.sh firefox-db2pem: mention what "certutil" the script uses 2024-09-06 08:57:34 +02:00
installcheck.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Makefile.am GHA: add a job to check function complexity 2025-05-21 22:59:13 +02:00
maketgz Makefile.dist: delete 2025-01-27 20:59:47 +01:00
managen managen: accept more markdown-quote-markers 2025-03-12 14:36:11 +01:00
mdlinkcheck scripts/mdlinkcheck: fix the ../ handling in file links 2024-12-21 13:57:38 +01:00
mk-ca-bundle.pl mk-ca-bundle: switch URLs to GitHub versions 2025-05-12 11:09:17 +02:00
mk-unity.pl cmake: replace the way clang-tidy verifies tests, fix issues found 2025-06-22 23:08:46 +02:00
nroff2cd tidy-up: one comment and EOF newlines 2024-03-12 15:38:44 +00:00
pythonlint.sh scripts: move the ruff linter command into a script 2025-05-13 16:41:32 -07:00
randdisable randdisable: build randomizer 2025-04-05 14:59:17 +02:00
release-notes.pl release-notes.pl: manage more "closes" typos 2025-02-08 10:51:27 +01:00
release-tools.sh maketgz: fix RELEASE-TOOLS.md for daily tarballs 2024-09-07 09:33:09 -07:00
schemetable.c WebSockets: make support official (non-experimental) 2024-09-27 13:20:25 +02:00
singleuse.pl async: DoH improvements 2025-04-16 16:06:03 +02:00
top-complexity top-complexity: lower max allowed complexity threshold to 90 2025-06-21 10:52:15 +02:00
verify-release configure: fail if PSL is not disabled but not found 2024-08-05 08:33:58 +02:00
wcurl wcurl: update to v2025.05.26 2025-05-27 09:29:43 +02:00