X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=Makefile.PL;h=88da5b45f88a73293278058f1dc4770f83033c7a;hb=6e2da35b9e9e5510e3156b07e91ebc835146758c;hp=30b8adda2f0166126a543ba0b9cd42367a155e49;hpb=9ccd182245d5924cf90a4152b032fca5b99d32e6;p=public-inbox.git diff --git a/Makefile.PL b/Makefile.PL index 30b8adda..88da5b45 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -34,7 +34,7 @@ $v->{my_syntax} = [map { "$_.syntax" } @syn]; $v->{-m1} = [ map { (split('/'))[-1] } @EXE_FILES ]; $v->{-m5} = [ qw(public-inbox-config public-inbox-v1-format public-inbox-v2-format) ]; -$v->{-m7} = [ qw(public-inbox-overview) ]; +$v->{-m7} = [ qw(public-inbox-overview public-inbox-tuning) ]; $v->{-m8} = [ qw(public-inbox-daemon) ]; my @sections = (1, 5, 7, 8); $v->{check_80} = []; @@ -138,10 +138,6 @@ WriteMakefile( # Plack is needed for public-inbox-httpd and PublicInbox::WWW # 'Plack' => 0, - # Filesys::Notify::Simple is pulled in by Plack, but also - # needed by public-inbox-watch (for now) - # 'Filesys::Notify::Simple' => 0, - # TODO: this should really be made optional... 'URI::Escape' => 0, @@ -160,12 +156,14 @@ WriteMakefile( ); sub MY::postamble { - </dev/null` || 1); + $N += 1; # account for sleeps in some tests (and makes an IV) + </dev/null || gnproc 2>/dev/null || echo 2) + 1 )) +N = $N -include config.mak $VARS -include Documentation/include.mk @@ -180,18 +178,22 @@ syntax:: \$(my_syntax) changed = \$(shell git ls-files -m) dsyn :: \$(addsuffix .syntax, \$(filter \$(changed), \$(syn_files))) -check-manifest :: MANIFEST - if test -e .git && git ls-files >\$?.gen 2>&1; then \\ - diff -u \$? \$?.gen; fi +check_manifest := if test -e .git && git ls-files >MANIFEST.gen 2>&1; then \\ + diff -u MANIFEST MANIFEST.gen; fi + +check-manifest : MANIFEST + \$(check_manifest) # the traditional way running per-*.t processes: -check-each :: pure_all check-manifest +check-each :: pure_all \$(EATMYDATA) \$(PROVE) --state=save -bvw -j\$(N) + -@\$(check_manifest) # lightly-tested way to run tests, relies "--state=save" in check-each # for best performance -check-run :: pure_all check-manifest +check-run :: pure_all \$(EATMYDATA) \$(PROVE) -bvw t/run.perl :: -j\$(N) + -@\$(check_manifest) check :: check-each