]> git.ipfire.org Git - thirdparty/git.git/commit
test-lib: show missing prereq summary
authorFabian Stelzer <fs@gigacodes.de>
Sat, 20 Nov 2021 15:03:59 +0000 (16:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Nov 2021 07:24:11 +0000 (23:24 -0800)
commit49da4040701f6d3dd480c6d007109c9a2fc2cb7a
treea95d78eabe4dfee6e5bce46fd180f762535a06a3
parentcd3e606211bb1cf8bc57f7d76bab98cc17a150bc
test-lib: show missing prereq summary

When running the full test suite many tests can be skipped because of
missing prerequisites. It not easy right now to get an overview of which
ones are missing.
When switching to a new machine or environment some libraries and tools
might be missing or maybe a dependency broke completely. In this case
the tests would indicate nothing since all dependant tests are simply
skipped. This could hide broken behaviour or missing features in the
build. Therefore this patch summarizes the missing prereqs at the end of
the test run making it easier to spot such cases.

 - Add failed prereqs to the test results.
 - Aggregate and then show them with the totals.

Signed-off-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/aggregate-results.sh
t/test-lib.sh