summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2010-10-14 08:53:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-10-26 18:25:48 (GMT)
commit28d836c81586e6b49131c69bbc5228a41667f1da (patch)
treeb3624ff4cf45cef1111a0667c6e99134dc54def8 /t/README
parentd4c436975214d8f94d38f9be0ef709b4714fc821 (diff)
downloadgit-28d836c81586e6b49131c69bbc5228a41667f1da.zip
git-28d836c81586e6b49131c69bbc5228a41667f1da.tar.gz
git-28d836c81586e6b49131c69bbc5228a41667f1da.tar.bz2
test: allow running the tests under "prove"
You can run "make DEFAULT_TEST_TARGET=prove test" to run the test under "prove" (or $(PROVE) if set). The output is a bit easier to read when running many tests in parallel. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Liked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Liked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/README')
-rw-r--r--t/README6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/README b/t/README
index a1eb7c8..c548bf1 100644
--- a/t/README
+++ b/t/README
@@ -50,6 +50,12 @@ prove and other harnesses come with a lot of useful options. The
# Repeat until no more failures
$ prove -j 15 --state=failed,save ./t[0-9]*.sh
+You can give DEFAULT_TEST_TARGET=prove on the make command (or define it
+in config.mak) to cause "make test" to run tests under prove.
+GIT_PROVE_OPTS can be used to pass additional options, e.g.
+
+ $ make DEFAULT_TEST_TARGET=prove GIT_PROVE_OPTS='--timer --jobs 16' test
+
You can also run each test individually from command line, like this:
$ sh ./t3010-ls-files-killed-modified.sh