This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: parallelize "make check"
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 25 Jun 2009 07:55:37 -0700
- Subject: Re: RFC: parallelize "make check"
- References: <m34ou5ig9e.fsf@fleche.redhat.com>
Hi Tom,
> 2009-06-24 Tom Tromey <tromey@redhat.com>
>
> * dg-extract-results.sh: New file.
> * Makefile.in (FORCE_PARALLEL): New variable.
> (CHECK_TARGET): New conditional variable.
> (check): Use CHECK_TARGET.
> (DO_RUNTEST): New variable.
> (check-single): New target.
> (TEST_DIRS): New variable.
> (TEST_TARGETS): Likewise.
> (check-parallel): New target.
> (check-gdb.%): New pattern.
> (BASE1_FILES): New variable.
> (BASE2_FILES): Likewise.
> (check-gdb.base%): New pattern.
> (%/.dir): New pattern.
> * configure: Rebuild.
> * aclocal.m4 (AM_CONDITIONAL): New defun.
> * configure.ac: Check whether user is using GNU make.
> (GMAKE): New conditional.
This looks awesome. If I understand your patch correctly,
parallelization is active by default when one does "make -j6 check"
as you split the "check" target into multiple sub targets.
If one does a regular "make check" without the -j, then the sub
targets will simply be run in sequence.
Thanks for doing this. At this rate, I don't think you'll be able
to remain sober at the next GCC Summit :). (Editor's note: Daniel
and now myself promised Tom a drink for various very useful patches
that he wrote).
--
Joel