]> Sergey Matveev's repositories - public-inbox.git/commitdiff
Makefile.PL: add parallel test target
authorEric Wong <e@80x24.org>
Wed, 9 Apr 2014 18:06:34 +0000 (18:06 +0000)
committerEric Wong <e@80x24.org>
Wed, 9 Apr 2014 18:06:34 +0000 (18:06 +0000)
These tests were designed to run in parallel.

Makefile.PL

index 3e4f64d3d859bf54d72d7516608595a44b0a4bf8..313161d417fdfc7608661d464eff0385202c96e9 100644 (file)
@@ -47,5 +47,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
 }