diff options
author | Eric Wong <e@80x24.org> | 2020-04-20 07:05:30 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-20 20:20:35 +0000 |
commit | 9f8184b0c8bd6bdb1f5f6c3845472c69863c1cf7 (patch) | |
tree | 8ab7849f19e6085795363d116cef5ba3954abce2 /HACKING | |
parent | 6e07def560b211d9a1a3221862e72b7aeb4a31b3 (diff) | |
download | public-inbox-9f8184b0c8bd6bdb1f5f6c3845472c69863c1cf7.tar.gz |
`make test' is annoyingly slow, and `make check-run' works wonders for improving the edit && test cycle.
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -59,6 +59,24 @@ directory for design decisions made during development. See Documentation/technical/ in the source tree for more details on specific topics, in particular data_structures.txt +Faster tests +------------ + +The `make test' target provided by MakeMaker does not run in +parallel. Our `make check' target supports parallel runs, and +it also creates a `.prove' file to optimize `make check-run'. + +The prove(1) command (distributed with Perl) may also be used +for finer-grained testing: prove -bvw t/foo.t + +If using a make(1) (e.g. GNU make) with `include' support, the +`config.mak' Makefile snippet can be used to set environment +variables such as PERL_INLINE_DIRECTORY and TMPDIR. + +With PERL_INLINE_DIRECTORY set to enable Inline::C support and +TMPDIR pointed to a tmpfs(5) mount, `make check-run' takes 6-10s +(load-dependent) on a busy workstation built in 2010. + Perl notes ---------- |