]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-lib: provide test prereq REFFILES
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 31 May 2021 16:56:29 +0000 (16:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:01:54 +0000 (10:01 +0900)
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>
t/README
t/test-lib.sh

index fd9375b146d199b076b22d6b3b0ad8a9c1a9e4a6..723bd3387fb7b85c88dc722b38413c03847ea069 100644 (file)
--- 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
 ----------------------
 
index d3f6af6a65451cdd7868e5dc355b44fed49a0670..ea7397c633db1048a7b29d4f1c3dcb05c69b12b5 100644 (file)
@@ -1481,6 +1481,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