summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-07-02 14:59:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-05 18:23:45 (GMT)
commitb5500d16cd1021bc1430ad019512c636dd3311d6 (patch)
tree9223d5daa6df5fafc9d1b016174cb0ec9af12b1d
parent97d9fd925bd0db1d11c4fbe8dd919bfb952b2cc1 (diff)
downloadgit-b5500d16cd1021bc1430ad019512c636dd3311d6.zip
git-b5500d16cd1021bc1430ad019512c636dd3311d6.tar.gz
git-b5500d16cd1021bc1430ad019512c636dd3311d6.tar.bz2
t/README: Add a section about skipping tests
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/README12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/README b/t/README
index 04ad927..4079635 100644
--- a/t/README
+++ b/t/README
@@ -231,6 +231,18 @@ This test harness library does the following things:
consistently when command line arguments --verbose (or -v),
--debug (or -d), and --immediate (or -i) is given.
+Skipping tests
+--------------
+
+If you need to skip all the remaining tests you should set skip_all
+and immediately call test_done. The string you give to skip_all will
+be used as an explanation for why the test was skipped. for instance:
+
+ if ! test_have_prereq PERL
+ then
+ skip_all='skipping perl interface tests, perl not available'
+ test_done
+ fi
End with test_done
------------------