Skip to content

Commit c305e66

Browse files
hanwengitster
authored andcommitted
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 <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d491f5e commit c305e66

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

t/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,12 @@ use these, and "test_set_prereq" for how to define your own.
11141114

11151115
Git wasn't compiled with NO_PTHREADS=YesPlease.
11161116

1117+
- REFFILES
1118+
1119+
Test is specific to packed/loose ref storage, and should be
1120+
disabled for other ref storage backends
1121+
1122+
11171123
Tips for Writing Tests
11181124
----------------------
11191125

t/test-lib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,8 @@ parisc* | hppa*)
14811481
;;
14821482
esac
14831483

1484+
test_set_prereq REFFILES
1485+
14841486
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
14851487
test -z "$NO_PERL" && test_set_prereq PERL
14861488
test -z "$NO_PTHREADS" && test_set_prereq PTHREADS

0 commit comments

Comments
 (0)