aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/README
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-02-18 16:11:02 -0800
committerDoug Evans <dje@google.com>2014-02-18 16:11:02 -0800
commitc17ef0d5d26a5374b70f33689042ec2f6a77e4fa (patch)
tree9a334378ba1fa7b83cd3baeea68479d856c23324 /gdb/testsuite/README
parent5dd3176fb78ffa11ff37234d62a953d124d1e8aa (diff)
downloadgdb-c17ef0d5d26a5374b70f33689042ec2f6a77e4fa.zip
gdb-c17ef0d5d26a5374b70f33689042ec2f6a77e4fa.tar.gz
gdb-c17ef0d5d26a5374b70f33689042ec2f6a77e4fa.tar.bz2
New TESTS variable to run a subset of tests in parallel.
* Makefile.in (TESTS): New variable. (expanded_tests, expanded_tests_or_none): New variables (check-single): Pass $(expanded_tests_or_none) to runtest. (check-parallel): Only run tests in $(TESTS) if non-empty. (check/no-matching-tests-found): New rule. * README: Document TESTS makefile variable.
Diffstat (limited to 'gdb/testsuite/README')
-rw-r--r--gdb/testsuite/README24
1 files changed, 24 insertions, 0 deletions
diff --git a/gdb/testsuite/README b/gdb/testsuite/README
index c17bd34..e6d5318 100644
--- a/gdb/testsuite/README
+++ b/gdb/testsuite/README
@@ -151,6 +151,30 @@ them, both to stdout and in the test suite log file.
This setting is only meaningful in conjunction with GDB_PARALLEL.
+TESTS
+
+This variable is used to specify which set of tests to run.
+It is passed to make (not runtest) and its contents are a space separated
+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".
+If for some strange reason one wanted to run all tests that begin with
+the letter "d" that is also possible: TESTS="*/d*.exp".
+
+Do not write */*.exp to specify all tests (assuming all tests are only
+nested one level deep, which is not necessarily true). This will pick up
+.exp files in ancillary directories like "lib" and "config".
+Instead write gdb.*/*.exp.
+
+Example:
+
+ make -j10 check TESTS="gdb.server/[s-w]*.exp */x*.exp"
+
+If not using GNU make then the value is passed directly to runtest.
+If not specified, all tests are run.
Testsuite Configuration
***********************