diff options
| -rw-r--r-- | test/Makefile.in | 8 | ||||
| -rw-r--r-- | test/README | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 451513a7474..597ef913113 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -98,9 +98,9 @@ TEST_LOCALE = C | |||
| 98 | TEST_INTERACTIVE ?= no | 98 | TEST_INTERACTIVE ?= no |
| 99 | 99 | ||
| 100 | ifeq ($(TEST_INTERACTIVE),yes) | 100 | ifeq ($(TEST_INTERACTIVE),yes) |
| 101 | TEST_RUN_ERT = --eval "(ert ${SELECTOR_ACTUAL})" | 101 | TEST_RUN_ERT = --eval '(ert (quote ${SELECTOR_ACTUAL}))' |
| 102 | else | 102 | else |
| 103 | TEST_RUN_ERT = --batch --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG} | 103 | TEST_RUN_ERT = --batch --eval '(ert-run-tests-batch-and-exit (quote ${SELECTOR_ACTUAL}))' ${WRITE_LOG} |
| 104 | endif | 104 | endif |
| 105 | 105 | ||
| 106 | # Whether to run tests from .el files in preference to .elc, we do | 106 | # Whether to run tests from .el files in preference to .elc, we do |
| @@ -140,8 +140,8 @@ test_module_dir := $(srcdir)/data/emacs-module | |||
| 140 | 140 | ||
| 141 | all: check | 141 | all: check |
| 142 | 142 | ||
| 143 | SELECTOR_DEFAULT = (quote (not (or (tag :expensive-test) (tag :unstable)))) | 143 | SELECTOR_DEFAULT = (not (or (tag :expensive-test) (tag :unstable))) |
| 144 | SELECTOR_EXPENSIVE = (quote (not (tag :unstable))) | 144 | SELECTOR_EXPENSIVE = (not (tag :unstable)) |
| 145 | SELECTOR_ALL = t | 145 | SELECTOR_ALL = t |
| 146 | ifdef SELECTOR | 146 | ifdef SELECTOR |
| 147 | SELECTOR_ACTUAL=$(SELECTOR) | 147 | SELECTOR_ACTUAL=$(SELECTOR) |
diff --git a/test/README b/test/README index c1dde2e0d01..e473248c9e0 100644 --- a/test/README +++ b/test/README | |||
| @@ -42,7 +42,10 @@ except the tests tagged as expensive. | |||
| 42 | 42 | ||
| 43 | If your test file contains the tests "test-foo", "test2-foo" and | 43 | If your test file contains the tests "test-foo", "test2-foo" and |
| 44 | "test-foo-remote", and you want to run only the former two tests, you | 44 | "test-foo-remote", and you want to run only the former two tests, you |
| 45 | could use a selector regexp: "make <filename> SELECTOR='\"foo$$\"'". | 45 | could use a selector regexp (note that the "$" needs to be doubled to |
| 46 | protect against "make" variable expansion): | ||
| 47 | |||
| 48 | make <filename> SELECTOR='"foo$$"' | ||
| 46 | 49 | ||
| 47 | Note that although the test files are always compiled (unless they set | 50 | Note that although the test files are always compiled (unless they set |
| 48 | no-byte-compile), the source files will be run by default, to give | 51 | no-byte-compile), the source files will be run by default, to give |