gold: running tests in parallel

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Wed Jul 28 19:05:00 GMT 2010


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)
 



More information about the Binutils mailing list