test-lib: provide test prereq REFFILES
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 <hanwen@google.com> Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Han-Wen Nienhuys committed
May 31, 2021 at 16:56 UTC
c305e667e0cad4acb40a4d408e44b823fa47c111
2 files changed
+8
t/README
+6
@@ -1114,6 +1114,12 @@ use these, and "test_set_prereq" for how to define your own.
1114
1115
Git wasn't compiled with NO_PTHREADS=YesPlease.
1116
1117
+ - REFFILES
1118
+
1119
+ Test is specific to packed/loose ref storage, and should be
1120
+ disabled for other ref storage backends
1121
+
1122
+
1123
Tips for Writing Tests
1124
----------------------
1125
t/test-lib.sh
+2
@@ -1481,6 +1481,8 @@ parisc* | hppa*)
1481
;;
1482
esac
1483
1484
+test_set_prereq REFFILES
1485
+
1486
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
1487
test -z "$NO_PERL" && test_set_prereq PERL
1488
test -z "$NO_PTHREADS" && test_set_prereq PTHREADS