From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25851 invoked by alias); 30 Jun 2009 17:37:36 -0000 Received: (qmail 25842 invoked by uid 22791); 30 Jun 2009 17:37:35 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Jun 2009 17:37:26 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5UHbPAs019117 for ; Tue, 30 Jun 2009 13:37:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5UHbOUp000540; Tue, 30 Jun 2009 13:37:24 -0400 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5UHbMcb031570; Tue, 30 Jun 2009 13:37:23 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id n5UHbMa7025345; Tue, 30 Jun 2009 19:37:22 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id n5UHbIjJ025341; Tue, 30 Jun 2009 19:37:18 +0200 Date: Tue, 30 Jun 2009 17:37:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [patch] Enable parallel make check also from gdb/ Message-ID: <20090630173718.GA24648@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-IsSubscribed: yes 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/msg00879.txt.bz2 Hi, fix for: RFC: parallelize "make check", Tom Tromey http://sourceware.org/ml/gdb-patches/2009-06/threads.html#00660 which works from gdb/testsuite/ but not from gdb/ for running: make check//unix/-m32 etc. TARGET_FLAGS_TO_PASS the patch modifies only for `make check', not for `make check//unix...'. Thanks, Jan gdb/ 2009-06-30 Jan Kratochvil * Makefile.in (TARGET_FLAGS_TO_PASS): Include also FORCE_PARALLEL. (check//%): Construct FORCE_PARALLEL for the sub-make. Extend the comment for it. --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -620,7 +620,8 @@ TARGET_FLAGS_TO_PASS = \ "MAKEINFO=$(MAKEINFO)" \ "MAKEHTML=$(MAKEHTML)" \ "RUNTEST=$(RUNTEST)" \ - "RUNTESTFLAGS=$(RUNTESTFLAGS)" + "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ + "FORCE_PARALLEL=$(FORCE_PARALLEL)" # All source files that go into linking GDB. # Links made at configuration time should not be specified here, since @@ -885,7 +886,8 @@ check: force # will run 3 concurrent sessions of check, eventually testing all 10 # combinations. GNU make is required for the % pattern to work, as is # a shell that expands alternations within braces. If GNU make is not -# used, this rule will harmlessly fail to match. +# used, this rule will harmlessly fail to match. Used FORCE_PARALLEL to +# prevent serialized checking due to the passed RUNTESTFLAGS. check//%: force @if [ -f testsuite/config.status ]; then \ rootme=`pwd`; export rootme; \ @@ -905,6 +907,7 @@ check//%: force else :; fi && cd $$testdir && \ $(MAKE) $(TARGET_FLAGS_TO_PASS) \ RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \ + FORCE_PARALLEL=$(if $(FORCE_PARALLEL),1,$(if $(RUNTESTFLAGS),,1)) \ "$$target"; \ else true; fi