]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Makefile.PL
Makefile.PL: add parallel test target
[public-inbox.git] / Makefile.PL
index 5d2f5c572bc4ca5133089fd09b3d5250f6dd73a0..313161d417fdfc7608661d464eff0385202c96e9 100644 (file)
@@ -7,7 +7,7 @@ WriteMakefile(
        NAME => 'public-inbox',
        VERSION => '0.0.0',
        AUTHOR => 'Eric Wong <normalperson@yhbt.net>',
-       ABSTRACT => 'public-inbox.org infrastructure',
+       ABSTRACT => 'public-inbox server infrastructure',
        EXE_FILES => [qw/public-inbox-mda public-inbox-cgi/],
        PREREQ_PM => {
                # note: we use ssoma(1) and spamc(1),
@@ -17,10 +17,12 @@ WriteMakefile(
                'Email::MIME::ContentType' => 0,
                'Email::Filter' => 0,
                'Email::Address' => 0,
+               'Mail::Thread' => '2.5', # 2.5+ needed for Email::Simple compat
                'Date::Parse' => 0,
                'Encode::MIME::Header' => 0,
                'XML::Atom::SimpleFeed' => 0,
                'IPC::Open2' => 0,
+               'IPC::Run' => 0,
                'File::Path::Expand' => 0,
                'CGI' => 0,
                'URI::Escape' => 0,
@@ -45,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
 }