aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in44
-rw-r--r--test/lisp/legacy/core-elisp-tests.el2
-rw-r--r--test/manual/etags/html-src/softwarelibero.html2
-rw-r--r--test/manual/indent/scss-mode.scss10
4 files changed, 38 insertions, 20 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index e8b14319549..9f7011353cf 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -87,9 +87,15 @@ WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@
87## to change this; bug#17848 - if that gets done, this can be simplified). 87## to change this; bug#17848 - if that gets done, this can be simplified).
88## 88##
89## Beware: it approximates 'no-byte-compile', so watch out for false-positives! 89## Beware: it approximates 'no-byte-compile', so watch out for false-positives!
90SELECTOR_DEFAULT=(quote (not (tag :expensive-test))) 90SELECTOR_DEFAULT = (quote (not (tag :expensive-test)))
91SELECTOR_EXPENSIVE=nil 91SELECTOR_EXPENSIVE = nil
92SELECTOR= 92ifndef SELECTOR
93SELECTOR_ACTUAL=$(SELECTOR_DEFAULT)
94else
95SELECTOR_ACTUAL=$(SELECTOR)
96endif
97
98
93%.log: %.el 99%.log: %.el
94 @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \ 100 @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \
95 loadfile=$<; \ 101 loadfile=$<; \
@@ -101,7 +107,7 @@ SELECTOR=
101 stat=OK ; \ 107 stat=OK ; \
102 mkdir --parents $(dir $@) ; \ 108 mkdir --parents $(dir $@) ; \
103 $(emacs) -l ert -l $$loadfile \ 109 $(emacs) -l ert -l $$loadfile \
104 --eval "(ert-run-tests-batch-and-exit ${SELECTOR})" ${WRITE_LOG} 110 --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG}
105 111
106ELFILES = $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \ 112ELFILES = $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \
107 -path "*resources" -prune -o -name "*el" -print) 113 -path "*resources" -prune -o -name "*el" -print)
@@ -136,29 +142,31 @@ $(foreach test,${TESTS},$(eval $(call test_template,${test})))
136## have to run Emacs for every make invocation, and it might not be 142## have to run Emacs for every make invocation, and it might not be
137## available during clean. 143## available during clean.
138-include make-test-deps.mk 144-include make-test-deps.mk
139## Rerun default tests. 145## Rerun all default tests.
140check: 146check: mostlyclean
141 @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}" 147 @${MAKE} check-doit SELECTOR="${SELECTOR_ACTUAL}"
142 148
143## Rerun also expensive tests. 149## Rerun all default and expensive tests.
144.PHONY: check-expensive 150.PHONY: check-expensive
145check-expensive: 151check-expensive: mostlyclean
146 @${MAKE} check-doit SELECTOR="${SELECTOR_EXPENSIVE}" 152 @${MAKE} check-doit SELECTOR="${SELECTOR_EXPENSIVE}"
147 153
148## Re-run all the tests every time. 154## Only re-run default tests whose .log is older than the test.
149.PHONY: check-doit
150check-doit:
151 -@for f in $(LOGFILES); do test ! -f $$f || mv $$f $$f~; done
152 @${MAKE} check-maybe
153
154## Only re-run tests whose .log is older than the test.
155.PHONY: check-maybe 155.PHONY: check-maybe
156check-maybe: ${LOGFILES} 156check-maybe:
157 @${MAKE} check-doit SELECTOR="${SELECTOR_ACTUAL}"
158
159## Run the tests.
160.PHONY: check-doit
161check-doit: ${LOGFILES}
157 $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^ 162 $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^
158 163
159.PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean 164.PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean
160 165
161clean mostlyclean: 166mostlyclean:
167 -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done
168
169clean:
162 -rm -f ${LOGFILES} ${LOGSAVEFILES} 170 -rm -f ${LOGFILES} ${LOGSAVEFILES}
163 -rm make-test-deps.mk 171 -rm make-test-deps.mk
164 172
diff --git a/test/lisp/legacy/core-elisp-tests.el b/test/lisp/legacy/core-elisp-tests.el
index 76985331566..b44bb37cc4f 100644
--- a/test/lisp/legacy/core-elisp-tests.el
+++ b/test/lisp/legacy/core-elisp-tests.el
@@ -32,7 +32,7 @@
32 (should (equal (list (let ((c-e-x 1)) (defvar c-e-x 2) c-e-x) c-e-x) 32 (should (equal (list (let ((c-e-x 1)) (defvar c-e-x 2) c-e-x) c-e-x)
33 '(1 2))) 33 '(1 2)))
34 (should (equal (list (let ((c-e-x 1)) 34 (should (equal (list (let ((c-e-x 1))
35 (defcustom c-e-x 2 "doc" :group 'blah) c-e-x) 35 (defcustom c-e-x 2 "doc" :group 'blah :type 'integer) c-e-x)
36 c-e-x) 36 c-e-x)
37 '(1 2))))) 37 '(1 2)))))
38 38
diff --git a/test/manual/etags/html-src/softwarelibero.html b/test/manual/etags/html-src/softwarelibero.html
index 159432908d2..b374273c969 100644
--- a/test/manual/etags/html-src/softwarelibero.html
+++ b/test/manual/etags/html-src/softwarelibero.html
@@ -302,7 +302,7 @@
302Local variables: 302Local variables:
303fill-column: 72 303fill-column: 72
304time-stamp-active: t 304time-stamp-active: t
305time-stamp-time-zone: "GMT" 305time-stamp-time-zone: "UTC0"
306time-stamp-format: "%:y-%02m-%02d" 306time-stamp-format: "%:y-%02m-%02d"
307time-stamp-line-limit: 30 307time-stamp-line-limit: 30
308time-stamp-start: "ultima\\s-+modifica\\s-+è\\s-+del\\s-+" 308time-stamp-start: "ultima\\s-+modifica\\s-+è\\s-+del\\s-+"
diff --git a/test/manual/indent/scss-mode.scss b/test/manual/indent/scss-mode.scss
index 7a29929efca..02a4a98a8c5 100644
--- a/test/manual/indent/scss-mode.scss
+++ b/test/manual/indent/scss-mode.scss
@@ -55,3 +55,13 @@ article[role="main"] {
55} 55}
56 56
57.box { @include border-radius(10px); } 57.box { @include border-radius(10px); }
58
59// bug:21230
60$list: (
61 ('a', #000000, #fff)
62 ('b', #000000, #fff)
63 ('c', #000000, #fff)
64 ('d', #000000, #fff)
65 ('e', #000000, #fff)
66 ('f', #000000, #fff)
67);