From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4049 invoked by alias); 25 Jun 2009 14:55:50 -0000 Received: (qmail 4041 invoked by uid 22791); 25 Jun 2009 14:55:49 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Jun 2009 14:55:44 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3A41C2BAB0F; Thu, 25 Jun 2009 10:55:42 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WM7AYOMHEVZj; Thu, 25 Jun 2009 10:55:42 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 00E812BAAB6; Thu, 25 Jun 2009 10:55:41 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id BE31EF596C; Thu, 25 Jun 2009 07:55:37 -0700 (PDT) Date: Thu, 25 Jun 2009 14:55:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFC: parallelize "make check" Message-ID: <20090625145537.GJ7766@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00669.txt.bz2 Hi Tom, > 2009-06-24 Tom Tromey > > * 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