Restore check-gdb.% target
Commit Message
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?
Comments
On 12/12/2014 04:34 PM, Jason Merrill wrote:
> 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?
OK, thanks.
commit f8ad961a3858947176a7ed20e3ecf410d6c50da5
Author: Jason Merrill <jason@redhat.com>
Date: Tue Dec 9 15:50:03 2014 -0500
* Makefile.in (check-gdb.%): Restore.
* README: Mention it.
@@ -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)
@@ -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".