From patchwork Fri Dec 12 16:34:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 4220 Received: (qmail 22930 invoked by alias); 12 Dec 2014 16:35:08 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 22898 invoked by uid 89); 12 Dec 2014 16:35:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 12 Dec 2014 16:35:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBCGZ1p0019784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 12 Dec 2014 11:35:02 -0500 Received: from [10.10.116.25] ([10.10.116.25]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBCGZ0vx010659; Fri, 12 Dec 2014 11:35:01 -0500 Message-ID: <548B1931.2040107@redhat.com> Date: Fri, 12 Dec 2014 11:34:57 -0500 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [PATCH] Restore check-gdb.% target References: <5487632F.8070109@redhat.com> <548B0163.7050804@redhat.com> In-Reply-To: <548B0163.7050804@redhat.com> On 12/12/2014 09:53 AM, Pedro Alves wrote: > Looks convenient indeed. Fine with me to restore it. Could you add a > short blurb to testsuite/README mentioning this? Like so? commit f8ad961a3858947176a7ed20e3ecf410d6c50da5 Author: Jason Merrill Date: Tue Dec 9 15:50:03 2014 -0500 * Makefile.in (check-gdb.%): Restore. * README: Mention it. diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index 1c923cd..07d3942 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -188,6 +188,10 @@ DO_RUNTEST = \ @GMAKE_TRUE@endif @GMAKE_FALSE@expanded_tests_or_none = $(TESTS) +# Shorthand for running all the tests in a single directory. +@GMAKE_TRUE@check-gdb.%: +@GMAKE_TRUE@ $(MAKE) check TESTS="gdb.$*/*.exp" + check-single: $(DO_RUNTEST) $(RUNTESTFLAGS) $(expanded_tests_or_none) diff --git a/gdb/testsuite/README b/gdb/testsuite/README index 9a5059a..fa17781 100644 --- a/gdb/testsuite/README +++ b/gdb/testsuite/README @@ -160,7 +160,9 @@ list of tests to run. If using GNU make then the contents are wildcard-expanded using GNU make's $(wildcard) function. Test paths must be fully specified, relative to the "testsuite" subdirectory. This allows one to run all -tests in a subdirectory by passing "gdb.subdir/*.exp". +tests in a subdirectory by passing "gdb.subdir/*.exp", or more simply +by using the check-gdb.subdir target in the Makefile. + If for some strange reason one wanted to run all tests that begin with the letter "d" that is also possible: TESTS="*/d*.exp".