Message ID | 20250219-b4-pks-meson-contrib-v2-0-1ba5d7fde0b9@pks.im (mailing list archive) |
---|---|
Headers | show |
Series | meson: wire up bits and pieces from "contrib/" | expand |
On 19/02/2025 13:13, Patrick Steinhardt wrote: > Hi, > > this patch series wires up a couple more bits and pieces, mostly from > "contrib/". Included are: > > - The "libsecret", "netrc", "osxkeychain" and "wincred" credential > helpers. > > - The git-contact(1) script. > > - Coccinelle via a new "coccicheck" target that generates the semantic > check. > > Not a lot of stuff is missing after this small patch series, as far as I > am aware. Omissions that I know of include "git-gui", "sparse" and perf > tests. I regularly do 'make sparse' and 'make hdr-check' as part of my routine. Note that ci/run-static-analysis.sh uses several targets: ci/run-static-analysis.sh:8:make coccicheck ci/run-static-analysis.sh:29:make hdr-check || ci/run-static-analysis.sh:32:make check-pot ... and ci/test-documentation.sh some more: ci/test-documentation.sh:18:make check-builtins ci/test-documentation.sh:19:make check-docs ... and then there are some coverage targets like 'coverage-test' and 'coverage-report' (I haven't actually used them in decades ... ;) ). ATB, Ramsay Jones
On Thu, Feb 20, 2025 at 01:25:59AM +0000, Ramsay Jones wrote: > > > On 19/02/2025 13:13, Patrick Steinhardt wrote: > > Hi, > > > > this patch series wires up a couple more bits and pieces, mostly from > > "contrib/". Included are: > > > > - The "libsecret", "netrc", "osxkeychain" and "wincred" credential > > helpers. > > > > - The git-contact(1) script. > > > > - Coccinelle via a new "coccicheck" target that generates the semantic > > check. > > > > Not a lot of stuff is missing after this small patch series, as far as I > > am aware. Omissions that I know of include "git-gui", "sparse" and perf > > tests. > > I regularly do 'make sparse' and 'make hdr-check' as part of my routine. > > Note that ci/run-static-analysis.sh uses several targets: > > ci/run-static-analysis.sh:8:make coccicheck > ci/run-static-analysis.sh:29:make hdr-check || > ci/run-static-analysis.sh:32:make check-pot > > ... and ci/test-documentation.sh some more: > > ci/test-documentation.sh:18:make check-builtins > ci/test-documentation.sh:19:make check-docs > > ... and then there are some coverage targets like 'coverage-test' and > 'coverage-report' (I haven't actually used them in decades ... ;) ). Ah, `make hdr-check` is something I forgot about indeed, yes. I guess introducing those two targets will be one of the next patch series then once the current patch series both land. Coverage reports are something that Meson already does natively: meson setup build -Db_coverage=true meson compile -C build meson test -C build ninja -C build coverage-html Patrick
On 20/02/2025 06:25, Patrick Steinhardt wrote: [snip] > Coverage reports are something that Meson already does natively: > > meson setup build -Db_coverage=true > meson compile -C build > meson test -C build > ninja -C build coverage-html I just tried this (I had to install 'gcovr' first) and the results look pretty good: ... $ ninja -C build coverage-html ninja: Entering directory `build' [1/1] Generates HTML coverage report Ubuntu LLVM version 18.1.3 Optimized build. (INFO) Reading coverage data... (INFO) Writing coverage report... lines: 85.2% (144103 out of 169233) functions: 93.3% (10404 out of 11151) branches: 76.0% (78627 out of 103419) Html coverage report can be found at file:///home/ramsay/git/build/meson-logs/coveragereport/index.html $ :) [Although I have worked on projects where some of those numbers would have been considered too low! :( ] ATB, Ramsay Jones