[PATCH v2 13/21] test-lib: provide test prereq REFFILES
From: Han-Wen Nienhuys via GitGitGadget <hidden>
Date: 2021-04-27 10:39:22
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Han-Wen Nienhuys via GitGitGadget <hidden>
Date: 2021-04-27 10:39:22
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Han-Wen Nienhuys <redacted> REFFILES can be used to mark tests that are specific to the packed/loose ref storage format and its limitations. Marking such tests is a preparation for introducing the reftable storage backend. Signed-off-by: Han-Wen Nienhuys <redacted> --- t/README | 6 ++++++ t/test-lib.sh | 2 ++ 2 files changed, 8 insertions(+)
diff --git a/t/README b/t/README
index fd9375b146d1..723bd3387fb7 100644
--- a/t/README
+++ b/t/README@@ -1114,6 +1114,12 @@ use these, and "test_set_prereq" for how to define your own. Git wasn't compiled with NO_PTHREADS=YesPlease. + - REFFILES + + Test is specific to packed/loose ref storage, and should be + disabled for other ref storage backends + + Tips for Writing Tests ----------------------
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 3dec266221cd..4a0c08e81e12 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh@@ -1483,6 +1483,8 @@ parisc* | hppa*) ;; esac +test_set_prereq REFFILES + ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1 test -z "$NO_PERL" && test_set_prereq PERL test -z "$NO_PTHREADS" && test_set_prereq PTHREADS
--
gitgitgadget