aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-12-09 15:50:03 -0500
committerJason Merrill <jason@redhat.com>2014-12-15 10:35:30 -0500
commit4992aa2019c1b0467e60c6064b8aa958913f37e5 (patch)
tree526a176f6587874a30f39ce731872288d0ac0075
parent5227d625257f3ae52d45d87f2e16954fb5af9349 (diff)
downloadgdb-4992aa2019c1b0467e60c6064b8aa958913f37e5.zip
gdb-4992aa2019c1b0467e60c6064b8aa958913f37e5.tar.gz
gdb-4992aa2019c1b0467e60c6064b8aa958913f37e5.tar.bz2
* Makefile.in (check-gdb.%): Restore.
* README: Mention it.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/Makefile.in4
-rw-r--r--gdb/testsuite/README4
3 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5e8953c..0b41e3d7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-15 Jason Merrill <jason@redhat.com>
+
+ * Makefile.in (check-gdb.%): Restore.
+ * README: Mention it.
+
2014-12-13 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/str_uninit: New testcase.
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".