diff options
| author | Michael Albinus | 2016-02-10 12:18:30 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-02-10 12:18:30 +0100 |
| commit | 3ad05a0dc46093dd6b8958747a0475b8baba954f (patch) | |
| tree | 6d1a5a0e50387f3fcd61caaedae53a285c87c98d /CONTRIBUTE | |
| parent | 12c50e82c9b432b2fc31f8fb2215f43ceea80822 (diff) | |
| download | emacs-3ad05a0dc46093dd6b8958747a0475b8baba954f.tar.gz emacs-3ad05a0dc46093dd6b8958747a0475b8baba954f.zip | |
Describe Makefile test targets in test/README
* CONTRIBUTE: Move Makefile test targets to test/README.
* Makefile.in:
* test/README: Describe Makefile test targets.
Diffstat (limited to 'CONTRIBUTE')
| -rw-r--r-- | CONTRIBUTE | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/CONTRIBUTE b/CONTRIBUTE index 5a5cb5db5a5..d8e102dc7fb 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE | |||
| @@ -257,26 +257,8 @@ If your test lasts longer than some few seconds, mark it in its | |||
| 257 | To run tests on the entire Emacs tree, run "make check" from the | 257 | To run tests on the entire Emacs tree, run "make check" from the |
| 258 | top-level directory. Most tests are in the directory | 258 | top-level directory. Most tests are in the directory |
| 259 | "test/automated". From the "test/automated" directory, run "make | 259 | "test/automated". From the "test/automated" directory, run "make |
| 260 | <filename>" to run the tests for <filename>.el(c). See | 260 | <filename>" to run the tests for <filename>.el(c). See "test/README" |
| 261 | "test/automated/Makefile" for more information. | 261 | for more information. |
| 262 | |||
| 263 | Tests which are tagged ":expensive-test" are enabled additionally, if | ||
| 264 | you run "make check-expensive" from the top-level directory. "make | ||
| 265 | <filename>" as mentioned above incorporates expensive tests for | ||
| 266 | <filename>.el(c). You can also define any ert selector on the command | ||
| 267 | line. So "make check SELECTOR=nil" is equivalent to "make | ||
| 268 | check-expensive". | ||
| 269 | |||
| 270 | You could also use predefined selectors of the Makefile. "make | ||
| 271 | <filename> SELECTOR='$(SELECTOR_DEFAULT)'" runs all tests for | ||
| 272 | <filename>.el(c) except the tests tagged as expensive. | ||
| 273 | |||
| 274 | Selectors can be defined with different methods, see (info "(ert)Test | ||
| 275 | Selectors") or | ||
| 276 | https://www.gnu.org/software/emacs/manual/html_node/ert/Test-Selectors.html | ||
| 277 | If your test file contains the tests "test-foo", "test2-foo" and | ||
| 278 | "test-foo-remote", and you want to run only the former two tests, you | ||
| 279 | could use a regexp: "make <filename> SELECTOR='\"foo$$\"'" . | ||
| 280 | 262 | ||
| 281 | ** Understanding Emacs Internals. | 263 | ** Understanding Emacs Internals. |
| 282 | 264 | ||