summaryrefslogtreecommitdiff
path: root/hadrian/README.md
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2018-12-11 13:11:32 -0500
committerBen Gamari <ben@smart-cactus.org>2018-12-11 13:11:33 -0500
commita5e76a073afc8ffdde274a4cb3d09847f2d35be9 (patch)
tree6d8ddb41c55240ae285118f18e431b4c34052e72 /hadrian/README.md
parent7491cedb20d15a54e905205c51aea72a13ac73aa (diff)
downloadhaskell-a5e76a073afc8ffdde274a4cb3d09847f2d35be9.tar.gz
Hadrian: ability to run a subset of the testsuite
This was supposed to be working already but didn't work when we specified several tests with --only. This patch not only fixes this but also makes it possible to specify a subset of tests to run with the TEST environment variable, like the make build system. Here are some examples: hadrian/build.sh test --only=plugins01 hadrian/build.sh test --only="plugins01 plugins02" TEST="plugins01 plugins02" hadrian/build.sh test TEST=plugins03 hadrian/build.sh test --only="plugins01 plugins02" When both the TEST environment variable and the --only flag are used, we simply concatenate the list of tests from both sources and ask the testsuite driver to run them all. This patch addresses #16026. Test Plan: hadrian/build.sh test --only="plugins01 plugins02" Reviewers: bgamari, snowleopard Reviewed By: bgamari, snowleopard Subscribers: rwbarton, carter GHC Trac Issues: #16026 Differential Revision: https://phabricator.haskell.org/D5431
Diffstat (limited to 'hadrian/README.md')
-rw-r--r--hadrian/README.md14
1 files changed, 5 insertions, 9 deletions
diff --git a/hadrian/README.md b/hadrian/README.md
index 7bd5fa8a34..c88d98e99d 100644
--- a/hadrian/README.md
+++ b/hadrian/README.md
@@ -170,16 +170,12 @@ workflow, for now.
#### Testing
-* `build validate` runs GHC tests by simply executing `make fast` in `testsuite/tests`
-directory. This can be used instead of `sh validate --fast --no-clean` in the existing
-build system. Note: this will rebuild Stage2 GHC, `ghc-pkg` and `hpc` if they are out of date.
+To run GHC's testsuite, use `build test`. See
+[doc/testsuite.md](doc/testsuite.md) to learn about all the options
+you can use to mimic what the Make build system offers.
-* `build test` runs GHC tests by calling the `testsuite/driver/runtests.py` python
-script with appropriate flags. The current implementation is limited and cannot
-replace the `validate` script (see [#187][validation-issue]).
-
-* `build selftest` runs tests of the build system. Current test coverage is close to
-zero (see [#197][test-issue]).
+`build selftest` runs tests of the build system. Current test coverage
+is close to zero (see [#197][test-issue]).
Troubleshooting
---------------