From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7730 invoked by alias); 26 Jun 2009 15:56:20 -0000 Received: (qmail 7719 invoked by uid 22791); 26 Jun 2009 15:56:19 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,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; Fri, 26 Jun 2009 15:56:11 +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 n5QFu8Qv011637; Fri, 26 Jun 2009 11:56:08 -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 n5QFu7EB026983; Fri, 26 Jun 2009 11:56:07 -0400 Received: from opsy.redhat.com (vpn-225-10.phx2.redhat.com [10.3.225.10]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5QFu6cU032543; Fri, 26 Jun 2009 11:56:07 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 468F93785DB; Fri, 26 Jun 2009 09:56:06 -0600 (MDT) To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: RFC: parallelize "make check" References: <831vp90ztf.fsf@gnu.org> <83tz23zdsz.fsf@gnu.org> From: Tom Tromey Reply-To: tromey@redhat.com Date: Fri, 26 Jun 2009 15:56:00 -0000 In-Reply-To: <83tz23zdsz.fsf@gnu.org> (Eli Zaretskii's message of "Fri\, 26 Jun 2009 09\:53\:16 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00722.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: Eli> . You mention RUNTESTFLAGS that is not otherwise documented in Eli> README. It seemed better to document this. Tom diff --git a/gdb/README b/gdb/README index 7116227..57f600a 100644 --- a/gdb/README +++ b/gdb/README @@ -642,6 +642,20 @@ or make site.exp (builds the site specific file) runtest -tool gdb GDB=../gdb (or GDB= as appropriate) +When using a `make'-based method, you can use the Makefile variable +`RUNTESTFLAGS' to pass flags to `runtest', e.g.: + + make RUNTESTFLAGS=--directory=gdb.cp check + +If you use GNU make, you can use its `-j' option to run the testsuite +in parallel. This can greatly reduce the amount of time it takes for +the testsuite to run. In this case, if you set `RUNTESTFLAGS' then, +by default, the tests will be run serially even under `-j'. You can +override this and force a parallel run by setting the `make' variable +`FORCE_PARALLEL' to any non-empty value. Note that the parallel `make +check' assumes that you want to run the entire testsuite, so it is not +compatible with some dejagnu options, like `--directory'. + The last method gives you slightly more control in case of problems with building one or more test executables or if you are using the testsuite `standalone', without it being part of the GDB source tree.