aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley2016-02-15 14:09:12 -0800
committerJohn Wiegley2016-02-15 14:09:12 -0800
commita644fa367504c4587c1b9e5fc20b7af79e6e99a0 (patch)
tree4647c040ba7c430db2d102e39180950ffd90e49f /test
parent8c4e041bdbc07a159305b41e1bcb64f1d301b99f (diff)
parentf5d6b9bb5b307067547f0b26c74e9f538464bfc6 (diff)
downloademacs-a644fa367504c4587c1b9e5fc20b7af79e6e99a0.tar.gz
emacs-a644fa367504c4587c1b9e5fc20b7af79e6e99a0.zip
Merge from origin/emacs-25
f5d6b9b Revert "Support integer image rotation and respect EXIF rotations" afe7d1f Revert "Document EXIF image rotation" c6f377c Document OS X LANG default eb4a18c Set locale when run from OS X GUI 456c0a3 make-docfile cleanup for I/O, etc. 25ec995 Memory-management cleanup in make-docfile 02d925e Kevin Gallagher has new email address 4ef153b Improve doc strings of 'forward/backward-word-strictly' 3ad05a0 Describe Makefile test targets in test/README
Diffstat (limited to 'test')
-rw-r--r--test/README58
1 files changed, 58 insertions, 0 deletions
diff --git a/test/README b/test/README
index 244832decdc..d2aee9bf57b 100644
--- a/test/README
+++ b/test/README
@@ -1,4 +1,62 @@
1Copyright (C) 2008-2016 Free Software Foundation, Inc.
2See the end of the file for license conditions.
3
1This directory contains files intended to test various aspects of 4This directory contains files intended to test various aspects of
2Emacs's functionality. Please help add tests! 5Emacs's functionality. Please help add tests!
3 6
7Emacs uses ERT, Emacs Lisp Regression Testing, for testing. See (info
8"(ert)") or https://www.gnu.org/software/emacs/manual/html_node/ert/
9for more information on writing and running tests.
10
11All ERT test files are supposed to run from subdirectory automated/.
12The Makefile in that directory supports the following targets:
13
14* make check
15 Run all tests as defined in the directory. Expensive tests are
16 suppressed. The result of the tests for <filename>.el is stored in
17 <filename>.log.
18
19* make check-maybe
20 Like "make check", but run only the tests for files which have
21 unresolved prerequisites.
22
23* make check-expensive
24 Like "make check", but run also the tests marked as expensive.
25
26* make <filename> or make <filename>.log
27 Run all tests declared in <filename>.el. This includes expensive
28 tests. In the former case the output is shown on the terminal, in
29 the latter case the output is written to <filename>.log.
30
31ERT offers selectors, which make it possible to filter out which test
32cases shall run. The make variable $(SELECTOR) gives you a simple
33mean to use your own selectors. The ERT manual describes how
34selectors are constructed, see (info "(ert)Test Selectors") or
35https://www.gnu.org/software/emacs/manual/html_node/ert/Test-Selectors.html
36
37You could use predefined selectors of the Makefile. "make <filename>
38SELECTOR='$(SELECTOR_DEFAULT)'" runs all tests for <filename>.el
39except the tests tagged as expensive.
40
41If your test file contains the tests "test-foo", "test2-foo" and
42"test-foo-remote", and you want to run only the former two tests, you
43could use a selector regexp: "make <filename> SELECTOR='\"foo$$\"'".
44
45
4(Also, see etc/compilation.txt for compilation mode font lock tests.) 46(Also, see etc/compilation.txt for compilation mode font lock tests.)
47
48
49This file is part of GNU Emacs.
50
51GNU Emacs is free software: you can redistribute it and/or modify
52it under the terms of the GNU General Public License as published by
53the Free Software Foundation, either version 3 of the License, or
54(at your option) any later version.
55
56GNU Emacs is distributed in the hope that it will be useful,
57but WITHOUT ANY WARRANTY; without even the implied warranty of
58MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59GNU General Public License for more details.
60
61You should have received a copy of the GNU General Public License
62along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.