Code

test-lib: Add support for multiple test prerequisites
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 6 Aug 2010 21:19:23 +0000 (21:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 19:42:04 +0000 (12:42 -0700)
commit93a5724613861e6cd85964c85f2fa0891caab258
tree33a0e1d47bb638b277ac91a3e9b370f92506aad7
parent8ef1abe5504acb22f6a3fd24a0fda8c4b9f172a5
test-lib: Add support for multiple test prerequisites

Change the test_have_prereq function in test-lib.sh to support a
comma-separated list of prerequisites. This is useful for tests that
need e.g. both POSIXPERM and SANITY.

The implementation was stolen from Junio C Hamano and Johannes Sixt,
the tests and documentation were not. See the "Tests in Cygwin" thread
in May 2009 for the originals:

    http://thread.gmane.org/gmane.comp.version-control.git/116729/focus=118385
    http://thread.gmane.org/gmane.comp.version-control.git/116729/focus=118434

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
t/t0000-basic.sh
t/test-lib.sh