]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tools: helper script to generate a test coverage report
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sun, 18 Jan 2026 17:27:23 +0000 (12:27 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 3 Feb 2026 04:10:58 +0000 (23:10 -0500)
commitd52123d5875227efb2f418dc7d021f0445b1da6b
treee98108c93fd494661696c098abf6a536b5567278
parent31cc5f217f49c0712df8c357547e542df70e9641
tools: helper script to generate a test coverage report

This script uses a heuristic approach to determine an approx.
test coverage of all util-linux tools. It does this by simply
looking at all the test scripts for a given tool and compares
the long options seen in them with all available ones for the
concerned tool. It also reports if a tool is either missing a
test subdirectory in tests/ts or doesn't have any test script
at all.

This script is not necessarily intended to be ran for build
tests but rather for code quality checks and to help util-linux
developers to get a better overview of their testing infrastructure
and plan accordingly for improvements.

It will potentially also help in keeping the tools stable and
detect regressions more efficiently.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tools/testcoverage.sh [new file with mode: 0755]