This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold: running tests in parallel
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: binutils at sourceware dot org
- Date: Wed, 28 Jul 2010 21:05:20 +0200
- Subject: gold: running tests in parallel
Hello,
so far all tests below gold/testsuite (and the two in gold/) are run
serially. While arguably their creation takes up most of the 'make
check' time, the patch below allows running them in parallel, too.
Results will be summarized in gold/{,testsuite/}test-suite.log.
You could even interleaved compilation and testing by (GNU sed-y)
sed -i 's/check_PROGRAMS/EXTRA_PROGRAMS/g' gold/testsuite/Makefile.am
for more parallelism, at the expense of slightly less readable stdout.
I did a casual look over testsuite/Makefile.am to see that tests do not
scribble over each others files, but not a thorough search. Are there
dependencies between the tests that I overlooked?
Thanks,
Ralf
PS: parallel-tests is documented here:
<http://www.gnu.org/software/automake/manual/html_node/Simple-Tests-using-parallel_002dtests.html>
gold/ChangeLog:
2010-07-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac (AM_INIT_AUTOMAKE): Use parallel-tests option.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
diff --git a/gold/configure.ac b/gold/configure.ac
index 943a1a1..094755c 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -7,7 +7,7 @@ AC_CONFIG_SRCDIR(gold.cc)
AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE([no-dist])
+AM_INIT_AUTOMAKE([no-dist parallel-tests])
AM_CONFIG_HEADER(config.h:config.in)