* [PATCH] build: support eatmydata in "make check" target by default
@ 2016-05-14 1:17 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-05-14 1:17 UTC (permalink / raw)
To: meta
This should help poor developers who still use rotating disks on
cheap netbooks.
---
.gitignore | 1 +
Makefile.PL | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index dc18378..18d0021 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/config.mak
/Makefile.old
/pm_to_blib
/MYMETA.*
diff --git a/Makefile.PL b/Makefile.PL
index 1948848..448c79c 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -36,6 +36,10 @@ WriteMakefile(
sub MY::postamble {
<<EOF;
+# support using eatmydata to speed up tests (apt-get install eatmydata):
+# https://www.flamingspork.com/projects/libeatmydata/
+EATMYDATA =
+-include config.mak
-include Documentation/include.mk
my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES))
@@ -47,7 +51,7 @@ N := \$(shell echo \$\$(( \$\$(nproc 2>/dev/null || echo 2) + 1)))
syntax:: \$(my_syntax)
check:: pure_all
- prove -lv -j\$(N)
+ \$(EATMYDATA) prove -lv -j\$(N)
EOF
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-14 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-14 1:17 [PATCH] build: support eatmydata in "make check" target by default Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).