Makefile.PL: add parallel tests
authorEric Wong <e@80x24.org>
Wed, 9 Apr 2014 18:12:49 +0000 (18:12 +0000)
committerEric Wong <e@80x24.org>
Wed, 9 Apr 2014 18:12:49 +0000 (18:12 +0000)
These tests are intended to run in parallel.

Makefile.PL

index 577e5b9d3c15186a70e9820d9ecaae42bfb391f1..8f10bcef545b6623364d267987f5ae2874710ef9 100644 (file)
@@ -37,5 +37,9 @@ rsync-docs:
        $(MAKE) gz-docs
        rsync --chmod=Fugo=r -av $(gz_docs) $(docs) $(RSYNC_DEST)
 
+N = $(shell echo $$(( $$(nproc 2>/dev/null || echo 2) + 1)))
+check:: pure_all
+       prove -lv -j$(N)
+
 EOF
 }