]> git.ipfire.org Git - thirdparty/git.git/commit
test-lib: introduce required prereq for test runs
authorFabian Stelzer <fs@gigacodes.de>
Sat, 20 Nov 2021 15:04:00 +0000 (16:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Nov 2021 07:24:12 +0000 (23:24 -0800)
commit5024ade1b1445107091c429e0da97f45e06bb7c9
tree8badf4f7fea337fa336a5d653abb3c0582f137d3
parent49da4040701f6d3dd480c6d007109c9a2fc2cb7a
test-lib: introduce required prereq for test runs

In certain environments or for specific test scenarios we might expect a
specific prerequisite check to succeed. Therefore we would like to abort
running our tests if this is not the case.

To remedy this we add the environment variable GIT_TEST_REQUIRE_PREREQ
which can be set to a space separated list of prereqs. If one of these
prereq tests fail then the whole test run will abort.

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