[PATCH 6/6] Add test_harness make target for testing with prove(1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The --jobs option I'm supplying to prove(1) is not supported in all
prove versions, some older ones (before Perl 5.10.1) don't have
it. Anyone that's hacking Git probably has 5.10.1, and you can always
use the old `make test` for non-parallel tests.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx>
---
 Makefile   |    3 +++
 t/Makefile |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 910f471..c72c3d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1912,6 +1912,9 @@ export NO_SVN_TESTS
 test: all
 	$(MAKE) -C t/ all
 
+test_harness: all
+	$(MAKE) -C t/ test_harness
+
 test-ctype$X: ctype.o
 
 test-date$X: date.o ctype.o
diff --git a/t/Makefile b/t/Makefile
index 25c559b..ef876e4 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -19,6 +19,9 @@ TSVN = $(wildcard t91[0-9][0-9]-*.sh)
 all: pre-clean
 	$(MAKE) aggregate-results-and-cleanup
 
+test_harness:
+	prove --jobs 9 ./t[0-9]*.sh
+
 $(T):
 	@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
 
-- 
1.7.1.dirty

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]