diff options
| author | Michael Albinus | 2016-01-12 10:37:06 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-01-12 10:37:06 +0100 |
| commit | 696f32c95c96f120ed1dc10193d27b7bc2adaba9 (patch) | |
| tree | b8421e99a43d4219ab03de421d90eb7b51d4c436 | |
| parent | c7bef6a4f033fa6b22906de0be6da54958d5b3c3 (diff) | |
| download | emacs-696f32c95c96f120ed1dc10193d27b7bc2adaba9.tar.gz emacs-696f32c95c96f120ed1dc10193d27b7bc2adaba9.zip | |
Merge missing commit from emacs-25 branch
* test/Makefile.in (SELECTOR_DEFAULT, SELECTOR_EXPENSIVE, SELECTOR):
New variables.
(check-expensive, check-doit): New targets.
* Makefile.in (check-expensive): New target.
* test/lisp/autorevert-tests.el
(auto-revert-test01-auto-revert-several-files):
* test/lisp/filenotify-tests.el (file-notify--deftest-remote)
(file-notify-test06-many-events):
* test/lisp/net/tramp-tests.el (tramp-test26-process-file)
(tramp-test27-start-file-process, tramp-test28-shell-command)
(tramp-test29-vc-registered)
(tramp-test31-special-characters-with-stat)
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls)
(tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl)
(tramp-test32-utf8-with-ls, tramp-test33-asynchronous-requests)
(tramp-test35-unload): Tag the tests as :expensive-test.
| -rw-r--r-- | Makefile.in | 4 | ||||
| -rw-r--r-- | test/Makefile.in | 17 | ||||
| -rw-r--r-- | test/lisp/autorevert-tests.el | 3 | ||||
| -rw-r--r-- | test/lisp/filenotify-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 12 |
5 files changed, 33 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in index fdaa63a9ec2..55c75717115 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -929,7 +929,7 @@ have-tests: | |||
| 929 | exit 1; \ | 929 | exit 1; \ |
| 930 | fi | 930 | fi |
| 931 | 931 | ||
| 932 | check check-maybe: have-tests all | 932 | check check-maybe check-expensive: have-tests all |
| 933 | $(MAKE) -C test $@ | 933 | $(MAKE) -C test $@ |
| 934 | 934 | ||
| 935 | dist: | 935 | dist: |
| @@ -946,7 +946,7 @@ $(DOCS): | |||
| 946 | $(MAKE) -C doc/$(subst -, ,$@) | 946 | $(MAKE) -C doc/$(subst -, ,$@) |
| 947 | 947 | ||
| 948 | .PHONY: $(DOCS) docs pdf ps | 948 | .PHONY: $(DOCS) docs pdf ps |
| 949 | .PHONY: info dvi dist check check-maybe html info-real info-dir check-info | 949 | .PHONY: info dvi dist check check-maybe check-expensive html info-real info-dir check-info |
| 950 | 950 | ||
| 951 | ## TODO add etc/refcards. | 951 | ## TODO add etc/refcards. |
| 952 | docs: $(DOCS) | 952 | docs: $(DOCS) |
diff --git a/test/Makefile.in b/test/Makefile.in index 62443a195ef..388ea5397f9 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -87,6 +87,9 @@ 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! |
| 90 | SELECTOR_DEFAULT=(quote (not (tag :expensive-test))) | ||
| 91 | SELECTOR_EXPENSIVE=nil | ||
| 92 | SELECTOR= | ||
| 90 | %.log: %.el | 93 | %.log: %.el |
| 91 | @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \ | 94 | @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \ |
| 92 | loadfile=$<; \ | 95 | loadfile=$<; \ |
| @@ -98,7 +101,7 @@ WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@ | |||
| 98 | stat=OK ; \ | 101 | stat=OK ; \ |
| 99 | mkdir --parents $(dir $@) ; \ | 102 | mkdir --parents $(dir $@) ; \ |
| 100 | $(emacs) -l ert -l $$loadfile \ | 103 | $(emacs) -l ert -l $$loadfile \ |
| 101 | -f ert-run-tests-batch-and-exit ${WRITE_LOG} | 104 | --eval "(ert-run-tests-batch-and-exit ${SELECTOR})" ${WRITE_LOG} |
| 102 | 105 | ||
| 103 | ELFILES = $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \ | 106 | ELFILES = $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \ |
| 104 | -path "*resources" -prune -o -name "*el" -print) | 107 | -path "*resources" -prune -o -name "*el" -print) |
| @@ -135,7 +138,17 @@ $(foreach test,${TESTS},$(eval $(call test_template,${test}))) | |||
| 135 | -include make-test-deps.mk | 138 | -include make-test-deps.mk |
| 136 | ## Rerun default tests. | 139 | ## Rerun default tests. |
| 137 | check: | 140 | check: |
| 138 | -@for f in $(LOGFILES); do test ! -f $$f || mv $$f $$f~; done | 141 | @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}" |
| 142 | |||
| 143 | ## Rerun also expensive tests. | ||
| 144 | .PHONY: check-expensive | ||
| 145 | check-expensive: | ||
| 146 | @${MAKE} check-doit SELECTOR="${SELECTOR_EXPENSIVE}" | ||
| 147 | |||
| 148 | ## Re-run all the tests every time. | ||
| 149 | .PHONY: check-doit | ||
| 150 | check-doit: | ||
| 151 | -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done | ||
| 139 | @${MAKE} check-maybe | 152 | @${MAKE} check-maybe |
| 140 | 153 | ||
| 141 | ## Only re-run tests whose .log is older than the test. | 154 | ## Only re-run tests whose .log is older than the test. |
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el index b37850054fa..a6f8cb29563 100644 --- a/test/lisp/autorevert-tests.el +++ b/test/lisp/autorevert-tests.el | |||
| @@ -94,6 +94,7 @@ | |||
| 94 | ;; This is inspired by Bug#21841. | 94 | ;; This is inspired by Bug#21841. |
| 95 | (ert-deftest auto-revert-test01-auto-revert-several-files () | 95 | (ert-deftest auto-revert-test01-auto-revert-several-files () |
| 96 | "Check autorevert for several files at once." | 96 | "Check autorevert for several files at once." |
| 97 | :tags '(:expensive-test) | ||
| 97 | (skip-unless (executable-find "cp")) | 98 | (skip-unless (executable-find "cp")) |
| 98 | 99 | ||
| 99 | (let* ((cp (executable-find "cp")) | 100 | (let* ((cp (executable-find "cp")) |
| @@ -138,7 +139,7 @@ | |||
| 138 | ;; Strange, that `copy-directory' does not work as expected. | 139 | ;; Strange, that `copy-directory' does not work as expected. |
| 139 | ;; The following shell command is not portable on all | 140 | ;; The following shell command is not portable on all |
| 140 | ;; platforms, unfortunately. | 141 | ;; platforms, unfortunately. |
| 141 | (shell-command (format "%s %s/* %s" cp tmpdir2 tmpdir1)) | 142 | (shell-command (format "%s -f %s/* %s" cp tmpdir2 tmpdir1)) |
| 142 | 143 | ||
| 143 | ;; Check, that the buffers have been reverted. | 144 | ;; Check, that the buffers have been reverted. |
| 144 | (dolist (buf (list buf1 buf2)) | 145 | (dolist (buf (list buf1 buf2)) |
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el index 4cde86c8eee..de64f5086d2 100644 --- a/test/lisp/filenotify-tests.el +++ b/test/lisp/filenotify-tests.el | |||
| @@ -152,6 +152,7 @@ remote host, or nil." | |||
| 152 | (declare (indent 1)) | 152 | (declare (indent 1)) |
| 153 | `(ert-deftest ,(intern (concat (symbol-name test) "-remote")) () | 153 | `(ert-deftest ,(intern (concat (symbol-name test) "-remote")) () |
| 154 | ,docstring | 154 | ,docstring |
| 155 | :tags '(:expensive-test) | ||
| 155 | (let* ((temporary-file-directory | 156 | (let* ((temporary-file-directory |
| 156 | file-notify-test-remote-temporary-file-directory) | 157 | file-notify-test-remote-temporary-file-directory) |
| 157 | (ert-test (ert-get-test ',test))) | 158 | (ert-test (ert-get-test ',test))) |
| @@ -783,6 +784,7 @@ longer than timeout seconds for the events to be delivered." | |||
| 783 | 784 | ||
| 784 | (ert-deftest file-notify-test06-many-events () | 785 | (ert-deftest file-notify-test06-many-events () |
| 785 | "Check that events are not dropped." | 786 | "Check that events are not dropped." |
| 787 | :tags '(:expensive-test) | ||
| 786 | (skip-unless (file-notify--test-local-enabled)) | 788 | (skip-unless (file-notify--test-local-enabled)) |
| 787 | ;; Under cygwin events arrive in random order. Impossible to define a test. | 789 | ;; Under cygwin events arrive in random order. Impossible to define a test. |
| 788 | (skip-unless (not (eq system-type 'cygwin))) | 790 | (skip-unless (not (eq system-type 'cygwin))) |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 305ca9d6770..a29e42e7343 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -1395,6 +1395,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1395 | 1395 | ||
| 1396 | (ert-deftest tramp-test26-process-file () | 1396 | (ert-deftest tramp-test26-process-file () |
| 1397 | "Check `process-file'." | 1397 | "Check `process-file'." |
| 1398 | :tags '(:expensive-test) | ||
| 1398 | (skip-unless (tramp--test-enabled)) | 1399 | (skip-unless (tramp--test-enabled)) |
| 1399 | (skip-unless | 1400 | (skip-unless |
| 1400 | (not | 1401 | (not |
| @@ -1441,6 +1442,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1441 | 1442 | ||
| 1442 | (ert-deftest tramp-test27-start-file-process () | 1443 | (ert-deftest tramp-test27-start-file-process () |
| 1443 | "Check `start-file-process'." | 1444 | "Check `start-file-process'." |
| 1445 | :tags '(:expensive-test) | ||
| 1444 | (skip-unless (tramp--test-enabled)) | 1446 | (skip-unless (tramp--test-enabled)) |
| 1445 | (skip-unless | 1447 | (skip-unless |
| 1446 | (not | 1448 | (not |
| @@ -1510,6 +1512,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1510 | 1512 | ||
| 1511 | (ert-deftest tramp-test28-shell-command () | 1513 | (ert-deftest tramp-test28-shell-command () |
| 1512 | "Check `shell-command'." | 1514 | "Check `shell-command'." |
| 1515 | :tags '(:expensive-test) | ||
| 1513 | (skip-unless (tramp--test-enabled)) | 1516 | (skip-unless (tramp--test-enabled)) |
| 1514 | (skip-unless | 1517 | (skip-unless |
| 1515 | (not | 1518 | (not |
| @@ -1597,6 +1600,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1597 | 1600 | ||
| 1598 | (ert-deftest tramp-test29-vc-registered () | 1601 | (ert-deftest tramp-test29-vc-registered () |
| 1599 | "Check `vc-registered'." | 1602 | "Check `vc-registered'." |
| 1603 | :tags '(:expensive-test) | ||
| 1600 | (skip-unless (tramp--test-enabled)) | 1604 | (skip-unless (tramp--test-enabled)) |
| 1601 | (skip-unless | 1605 | (skip-unless |
| 1602 | (eq | 1606 | (eq |
| @@ -1967,6 +1971,7 @@ Several special characters do not work properly there." | |||
| 1967 | (ert-deftest tramp-test31-special-characters-with-stat () | 1971 | (ert-deftest tramp-test31-special-characters-with-stat () |
| 1968 | "Check special characters in file names. | 1972 | "Check special characters in file names. |
| 1969 | Use the `stat' command." | 1973 | Use the `stat' command." |
| 1974 | :tags '(:expensive-test) | ||
| 1970 | (skip-unless (tramp--test-enabled)) | 1975 | (skip-unless (tramp--test-enabled)) |
| 1971 | (skip-unless | 1976 | (skip-unless |
| 1972 | (eq | 1977 | (eq |
| @@ -1985,6 +1990,7 @@ Use the `stat' command." | |||
| 1985 | (ert-deftest tramp-test31-special-characters-with-perl () | 1990 | (ert-deftest tramp-test31-special-characters-with-perl () |
| 1986 | "Check special characters in file names. | 1991 | "Check special characters in file names. |
| 1987 | Use the `perl' command." | 1992 | Use the `perl' command." |
| 1993 | :tags '(:expensive-test) | ||
| 1988 | (skip-unless (tramp--test-enabled)) | 1994 | (skip-unless (tramp--test-enabled)) |
| 1989 | (skip-unless | 1995 | (skip-unless |
| 1990 | (eq | 1996 | (eq |
| @@ -2006,6 +2012,7 @@ Use the `perl' command." | |||
| 2006 | (ert-deftest tramp-test31-special-characters-with-ls () | 2012 | (ert-deftest tramp-test31-special-characters-with-ls () |
| 2007 | "Check special characters in file names. | 2013 | "Check special characters in file names. |
| 2008 | Use the `ls' command." | 2014 | Use the `ls' command." |
| 2015 | :tags '(:expensive-test) | ||
| 2009 | (skip-unless (tramp--test-enabled)) | 2016 | (skip-unless (tramp--test-enabled)) |
| 2010 | (skip-unless | 2017 | (skip-unless |
| 2011 | (eq | 2018 | (eq |
| @@ -2045,6 +2052,7 @@ Use the `ls' command." | |||
| 2045 | (ert-deftest tramp-test32-utf8-with-stat () | 2052 | (ert-deftest tramp-test32-utf8-with-stat () |
| 2046 | "Check UTF8 encoding in file names and file contents. | 2053 | "Check UTF8 encoding in file names and file contents. |
| 2047 | Use the `stat' command." | 2054 | Use the `stat' command." |
| 2055 | :tags '(:expensive-test) | ||
| 2048 | (skip-unless (tramp--test-enabled)) | 2056 | (skip-unless (tramp--test-enabled)) |
| 2049 | (skip-unless | 2057 | (skip-unless |
| 2050 | (eq | 2058 | (eq |
| @@ -2063,6 +2071,7 @@ Use the `stat' command." | |||
| 2063 | (ert-deftest tramp-test32-utf8-with-perl () | 2071 | (ert-deftest tramp-test32-utf8-with-perl () |
| 2064 | "Check UTF8 encoding in file names and file contents. | 2072 | "Check UTF8 encoding in file names and file contents. |
| 2065 | Use the `perl' command." | 2073 | Use the `perl' command." |
| 2074 | :tags '(:expensive-test) | ||
| 2066 | (skip-unless (tramp--test-enabled)) | 2075 | (skip-unless (tramp--test-enabled)) |
| 2067 | (skip-unless | 2076 | (skip-unless |
| 2068 | (eq | 2077 | (eq |
| @@ -2084,6 +2093,7 @@ Use the `perl' command." | |||
| 2084 | (ert-deftest tramp-test32-utf8-with-ls () | 2093 | (ert-deftest tramp-test32-utf8-with-ls () |
| 2085 | "Check UTF8 encoding in file names and file contents. | 2094 | "Check UTF8 encoding in file names and file contents. |
| 2086 | Use the `ls' command." | 2095 | Use the `ls' command." |
| 2096 | :tags '(:expensive-test) | ||
| 2087 | (skip-unless (tramp--test-enabled)) | 2097 | (skip-unless (tramp--test-enabled)) |
| 2088 | (skip-unless | 2098 | (skip-unless |
| 2089 | (eq | 2099 | (eq |
| @@ -2109,6 +2119,7 @@ Such requests could arrive from timers, process filters and | |||
| 2109 | process sentinels. They shall not disturb each other." | 2119 | process sentinels. They shall not disturb each other." |
| 2110 | ;; Mark as failed until bug has been fixed. | 2120 | ;; Mark as failed until bug has been fixed. |
| 2111 | :expected-result :failed | 2121 | :expected-result :failed |
| 2122 | :tags '(:expensive-test) | ||
| 2112 | (skip-unless (tramp--test-enabled)) | 2123 | (skip-unless (tramp--test-enabled)) |
| 2113 | (skip-unless | 2124 | (skip-unless |
| 2114 | (eq | 2125 | (eq |
| @@ -2220,6 +2231,7 @@ process sentinels. They shall not disturb each other." | |||
| 2220 | Since it unloads Tramp, it shall be the last test to run." | 2231 | Since it unloads Tramp, it shall be the last test to run." |
| 2221 | ;; Mark as failed until all symbols are unbound. | 2232 | ;; Mark as failed until all symbols are unbound. |
| 2222 | :expected-result (if (featurep 'tramp) :failed :passed) | 2233 | :expected-result (if (featurep 'tramp) :failed :passed) |
| 2234 | :tags '(:expensive-test) | ||
| 2223 | (when (featurep 'tramp) | 2235 | (when (featurep 'tramp) |
| 2224 | (unload-feature 'tramp 'force) | 2236 | (unload-feature 'tramp 'force) |
| 2225 | ;; No Tramp feature must be left. | 2237 | ;; No Tramp feature must be left. |