aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * automated/tramp-tests.el (tramp--instrument-test-case):Michael Albinus2014-06-292-11/+13
| | | | Print debug buffer in any case.
* Merge from emacs-24; up to 2014-06-12T14:55:[email protected]Glenn Morris2014-06-283-5/+58
|\
| * * calc-test.el: Set copyright to FSF; standardize permissions noticeGlenn Morris2014-06-271-4/+6
| |
| * * test/automated/calc-tests.el: New file and add tests for math-bignum.Leo Liu2014-06-282-0/+45
| | | | | | | | Fixes: debbugs:17556
| * * automated/dbus-tests.el (dbus--test-register-service)Michael Albinus2014-06-272-5/+11
| | | | | | | | | | | | | | (dbus-test02-register-service-session): Replace `dbus-ping' calls by `dbus-list-known-names'. Fixes: debbugs:17858
* | * test/automated/Makefile.in (GDB): New variable.Glenn Morris2014-06-282-1/+7
| | | | | | | | | | | | (emacs): Use $GDB. Fixes: debbugs:15991
* | Disable logging in the short form of the test Makefile rulesGlenn Morris2014-06-282-12/+12
| | | | | | | | | | | | * test/automated/Makefile.in (WRITE_LOG): New variable. (%.log): Use WRITE_LOG. (test_template): Disable logging.
* | Add short test aliases that always re-run the testsGlenn Morris2014-06-272-0/+28
| | | | | | | | | | * test/automated/Makefile.in (TESTS): New list of short PHONY aliases. (test_template): New definition. Apply to TESTS.
* | Have `make check' re-run all the tests, every timeGlenn Morris2014-06-272-2/+15
| | | | | | | | | | | | * test/automated/Makefile.in (check-maybe): Rename from check. (check): Re-run all the tests, every time. (clean, mostlyclean): Also delete *.log~.
* | * test/automated/package-x-test.el: Do not mess with load-path.Glenn Morris2014-06-262-16/+3
| |
* | * test/automated/Makefile.in (%.log): If error, dump log to stdout.Glenn Morris2014-06-262-1/+7
| | | | | | | | This is mainly so we can see what is going on on hydra...
* | Merge from emacs-24; up to 2014-06-11T19:33:[email protected]Glenn Morris2014-06-253-3/+16
|\|
| * * test/automated/package-test.el (package-test-update-listing)Stefan Monnier2014-06-252-3/+9
| | | | | | | | | | (package-test-update-archives, package-test-describe-package): Adjust tests according to new package-list-unsigned.
| * Fix some indentation problem with \; and pipes.Stefan Monnier2014-06-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/sh-script.el (sh-mode-syntax-table): Set syntax of ;|&. (sh-smie--default-forward-token, sh-smie--default-backward-token): New functions. (sh-smie-sh-forward-token, sh-smie-sh-backward-token) (sh-smie-rc-forward-token, sh-smie-rc-backward-token): Use them. (sh-smie-sh-rules): Fix indentation of a pipe at BOL. Fixes: debbugs:17842
* | Disable byte-compilation in two test/automated filesGlenn Morris2014-06-253-2/+13
| | | | | | | | | | | | | | | | * test/automated/eieio-tests.el (no-byte-compile): Set it. * test/automated/ert-tests.el (no-byte-compile): Set it. Fixes: debbugs:17851 debbugs:17852
* | Simplify and parallize test/automated MakefileGlenn Morris2014-06-252-72/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (mostlyclean, clean): Maybe clean test/automated. * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): New. * test/automated/Makefile.in: Simplify and parallelize. (XARGS_LIMIT, BYTE_COMPILE_EXTRA_FLAGS) (setwins, compile-targets, compile-main, compile-clean): Remove. (GREP_OPTIONS): Unexport. (.el.elc): Replace with pattern rule. (%.elc, %.log): New pattern rules. (ELFILES, LOGFILES): New variables. (check): Depend on LOGFILES. Call ert-summarize-tests-batch-and-exit. (clean, mostlyclean): New rules. (bootstrap-clean): Simplify. (bootstrap-clean, distclean): Depend on clean. * .bzrignore: Ignore test/automated/*.log. Fixes: debbugs:15991
* | * flymake-tests.el (flymake-tests--current-face): Tweak previous sleep change.Glenn Morris2014-06-251-8/+5
| | | | | | | | | | Using the time-honored principle of "if it doesn't when you do X, do it again and see what happens".
* | Try to fix some flymake-tests weirdnessGlenn Morris2014-06-252-1/+11
| | | | | | | | | | * test/automated/flymake-tests.el (flymake-tests--current-face): Sleep for longer. Avoid querying.
* | Do not allow out-of-range character position in Fcompare_strings.Dmitry Antipov2014-06-252-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (validate_subarray): Add prototype. (Fcompare_substring): Use validate_subarray to check ranges. Adjust comment to mention that the semantics was changed. Also see http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html. * lisp/files.el (dir-locals-find-file, file-relative-name): * lisp/info.el (Info-complete-menu-item): * lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p to compare-strings to avoid out-of-range errors. * lisp/subr.el (string-prefix-p): Adjust to match strict range checking in compare-strings. * test/automated/fns-tests.el (fns-tests-compare-string): New test.
* | * automated/tramp-tests.el (tramp-test26-process-file): Extend testMichael Albinus2014-06-242-9/+23
| | | | | | | | according to Bug#17815.
* | Merge from emacs-24; up to 2014-06-06T02:22:[email protected]Glenn Morris2014-06-213-0/+31
|\|
| * Fix completion retrieval parsing.Fabián Ezequiel Gallina2014-06-212-0/+13
| | | | | | | | | | | | | | | | | | | | * progmodes/python.el (python-mode): (python-util-strip-string): New function. (python-shell-completion-get-completions): Use it. * automated/python-tests.el (python-util-strip-string-1): New test. Fixes: debbugs:17209
| * * lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don'tStefan Monnier2014-06-201-0/+8
| | | | | | | | | | | | align with the surrounding parent. Fixes: debbugs:17721
| * * lisp/emacs-lisp/smie.el (smie--hanging-eolp-function): New var.Stefan Monnier2014-06-191-1/+5
| | | | | | | | | | | | | | (smie-indent--hanging-p): Use it. * lisp/progmodes/sh-script.el (sh-set-shell): Set it. Fixes: debbugs:17621
| * * lisp/progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && asStefan Monnier2014-06-191-0/+6
| | | | | | | | | | | | for |. Fixes: debbugs:17621
| * Revert last patch. The problem happens in the trunk.Michael Albinus2014-06-012-7/+1
| |
| * * tramp-tests.el (tramp-test29-vc-registered):Michael Albinus2014-06-011-1/+2
| | | | | | | | Instrument failed test case.
| * * automated/tramp-tests.el (tramp-test29-vc-registered):Michael Albinus2014-06-011-0/+5
| | | | | | | | Instrument failed test case.
* | Sync with Tramp 2.2.10.Michael Albinus2014-06-152-32/+110
| | | | | | | | | | | | | | | | | | | | | | | | * test/automated/tramp-tests.el (tramp--test-enabled): Ignore errors. (tramp--instrument-test-case): Extend docstring. (tramp-test15-copy-directory): Skip for tramp-smb.el. (tramp-test21-file-links): Use `file-truename' for directories. (tramp-test27-start-file-process, tramp-test28-shell-command): Retrieve process output more robustly. (tramp--test-check-files): Extend test. (tramp-test30-special-characters): Skip for tramp-adb.el, tramp-gvfs.el and tramp-smb.el. Add further file names.
* | With GNU make, MFLAGS is not neededGlenn Morris2014-06-132-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (CC, CFLAGS, LDFLAGS, CPPFLAGS, abs_top_srcdir): Remove, no longer used. (lib, lib-src, lisp, nt, src, blessmail, install-arch-dep) (install-nt, install-strip, uninstall, uninstall-nt) (mostlyclean, clean, distclean, bootstrap-clean) (maintainer-clean, extraclean, TAGS, tags, check, $(DOCS)): ($(INSTALL_DOC), $(UNINSTALL_DOC), info, bootstrap, check-declare): GNU make automatically passes command-line arguments to sub-makes. * admin/unidata/Makefile.in (${DSTDIR}/charprop.el): GNU make automatically passes command-line arguments to sub-makes. * lib-src/Makefile.in (../lib/libgnu.a): GNU make automatically passes command-line arguments to sub-makes. * lisp/Makefile.in ($(lisp)/cus-load.el, $(lisp)/finder-inf.el) (autoloads, $(lisp)/subdirs.el, compile-main, leim, semantic, compile) (compile-always): GNU make automatically passes command-line arguments to sub-makes. * lwlib/Makefile.in ($(globals_h)): GNU make automatically passes command-line arguments to sub-makes. * src/Makefile.in ($(leimdir)/leim-list.el, $(srcdir)/macuvs.h) ($(lispsource)/international/charprop.el) ($(libsrc)/make-docfile$(EXEEXT), $(lwlibdir)/liblw.a) ($(oldXMenudir)/libXMenu11.a, ns-app, .el.elc) ($(lispsource)/loaddefs.el, bootstrap-emacs$(EXEEXT)): GNU make automatically passes command-line arguments to sub-makes. * test/automated/Makefile.in (compile-main): GNU make automatically passes command-line arguments to sub-makes.
* | * tests/automated/tildify-tests.el (tildify-test--test): Optimise theMichal Nazarewicz2014-06-052-5/+9
| | | | | | | | | | test slightly by reusing the same temporary buffer across multiple test cases.
* | tildify.el: Rewrite `tildify-region' and co., add foreach function.Michal Nazarewicz2014-06-052-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/tildify.el (tildify-foreach-region-outside-env): New function which calls a callback on portions of the buffer that are outside of ignored environments. (tildify-build-regexp): Remove function since it is now incorporated in `tildify-foreach-region-outside-env' where it is optimised and simplified by the use of `mapconcat'. (tildify-tildify): Return number of substitutions made so that… (tildify-count): …can be removed. (tildify-find-env): Accept a new PAIRS argument which was previously looked up in `tildify-ignored-environments-alist' each time the function was called. With this change, the lookup is performed only once in `tildify-foreach-region-outside-env'. (tildify-region): Greatly simplify the function since now most of the work is done by `tildify-foreach-region-outside-env'. (tildify-mode-alist): Simplify slightly by avoiding if and setq and instead using or. * tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug) (tildify-test-find-env-group-index-bug): Update to support new signature of the `tildify-foreach-region-outside-env' function. Namely, it now takes pairs as an argument instead of looking it up in `tildify-ignored-environments-alist'.
* | tildify.el: Better support for XMLMichal Nazarewicz2014-06-052-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/tildify.el (tildify-string-alist) (tildify-ignored-environments-alist): Add `nxml-mode' to the list of supported modes since `xml-mode' is no longer a thing but just an alias to the former. Also include comments and insides of tags in `tildify-ignored-environments-alist' for XML modes. Finally, since XML does not define “&nbsp;”[1], use a numeric reference for a no-break space (namely “&#160;”) [1] XML specification defines only a handful of predefined entities. The list is at <http://www.w3.org/TR/REC-xml/#sec-predefined-ent> and includes only &lt;, &gt;, &amp;, &apos; and &quot; (meaning <, >, &, ' and " respectively). This is in contrast to HTML and even XHTML which defined a whole bunch of entities including “&nbsp;”. * automated/tildify-tests.el (tildify-test--example-html): Add support for generating XML code, so that… (tildify-test-xml) …test can be added to check handling of XML documents.
* | tildify.el: Fix matched group indexes in end-regex buildingMichal Nazarewicz2014-06-052-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/tildifi.el (tildify-find-env): When looking for a start of an ignore-environment, the regex is built by concatenating regexes of all the environments configured in `tildify-ignored-environments-alist'. So for example, the following list could be used to match TeX's \verb and \verb* commands: (("\\\\verb\\(.\\)" . (1)) ("\\\\verb\\*\\(.\\)" . (1))) This would result in the following regex being used to find the start of any of the variants of the \verb command: \\\\verb\\(.\\)\\|\\\\verb\\*\\(.\\) But now, if “\\\\verb\\*\\(.\\)” matches, the first capture group won't match anything, and thus (match-string 1) will be nil, which will cause building of the end-matching regex to fail. Fix this by using capture groups from the time when the opening regexes are matched individually. * tests/automated/tildify-tests.el (tildify-test-find-env-group-index-bug): New test validating fix to the above bug.
* | tildify.el: Fix end-regex building in `tildify-find-env'Michal Nazarewicz2014-06-052-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/tildify.el (tildify-find-env): The `tildify-ignored-environments-alist' allows the end-regex to be provided not as a static string but mix of strings and indexes of groups matched the begin-regex. For example, the “\verb!…!” TeX-command (where “!” is an arbitrary character) is handled using: ("\\\\verb\\*?\\(.\\)" . (1)) In the same way, the following should be supported as well: ("open-\\(.\\)" . ("end-" 1)) However the tildify-find-env function fails at (concat result (if (stringp (setq aux (car expression))) expression ; BUG: expression is a list (regexp-quote (match-string aux)))) where the string part is handled incorrectly. The most trivial fix would be to replace `expression' in the true-part of the if-statement with `aux', but instead, this commit optimises `tildify-find-env' by changing it to use `mapconcat' rather than open-coded while-loop. * tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug): New test validating fix to the above bug.
* | * test/automated/tramp-tests.el (tramp-test29-vc-registered):Michael Albinus2014-06-022-8/+2
| | | | | | | | Remove instrumentation.
* | * test/automated/tramp-tests.el (tramp-remote-process-environment): Declare.Michael Albinus2014-06-022-0/+15
| | | | | | | | (tramp-test29-vc-registered): Set $BZR_HOME.
* | * tramp-tests.el (tramp-test29-vc-registered):Michael Albinus2014-06-011-1/+6
| | | | | | | | Add more instrumentation code.
* | * automated/tramp-tests.el (tramp-test29-vc-registered):Michael Albinus2014-06-012-1/+7
| | | | | | | | Instrument failed test case.
* | * test/automated/ruby-mode-test.el (ruby-assert-face): Fix typo in previousGlenn Morris2014-05-281-1/+1
| |
* | * lisp/font-lock.el (font-lock-flush, font-lock-ensure): New functions.Stefan Monnier2014-05-282-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (font-lock-fontify-buffer): Mark interactive-only. (font-lock-multiline, font-lock-fontified, font-lock-set-defaults): Make buffer-local. (font-lock-specified-p): Remove redundant boundp check. (font-lock-flush-function, font-lock-ensure-function): New vars. (font-lock-turn-on-thing-lock): Set them. (font-lock-default-fontify-buffer): Obey font-lock-dont-widen. (font-lock-after-change-function): Make `old-len' optional. (font-lock-set-defaults): Remove redundant `set' of font-lock-defaults. Call font-lock-flush, just in case. * lisp/progmodes/verilog-mode.el (verilog-preprocess): Disable workaround in recent Emacsen. * lisp/progmodes/vera-mode.el (vera-fontify-buffer): Declare obsolete. (vera-mode-map, vera-mode-menu): Remove bindings to it. * lisp/progmodes/idlw-help.el (idlwave-help-fontify): Use font-lock-ensure and with-syntax-table. * lisp/textmodes/conf-mode.el (conf-quote-normal): * lisp/progmodes/sh-script.el (sh-set-shell): * lisp/progmodes/prog-mode.el (prettify-symbols-mode): * lisp/progmodes/f90.el (f90-font-lock-n): * lisp/progmodes/cwarn.el (cwarn-mode): * lisp/nxml/nxml-mode.el (nxml-toggle-char-ref-extra-display): * lisp/progmodes/compile.el (compilation-setup, compilation--unsetup): * lisp/hi-lock.el (hi-lock-mode, hi-lock-unface-buffer) (hi-lock-set-pattern, hi-lock-set-file-patterns): Use font-lock-flush. * lisp/mail/rmail.el (rmail-variables): Set font-lock-dont-widen instead of font-lock-fontify-buffer-function and font-lock-unfontify-buffer-function. (rmail-unfontify-buffer-function, rmail-fontify-message): Use with-silent-modifications. * lisp/htmlfontify.el (hfy-force-fontification): Use jit-lock-fontify-now and font-lock-ensure. * lisp/bs.el (bs-show-in-buffer): Use font-lock-ensure. * lisp/gnus/mm-view.el (mm-display-inline-fontify): Use font-lock-ensure. * lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Use font-lock-flush. * lisp/org/org-compat.el (org-font-lock-ensure): New function. * lisp/org/ox-odt.el (org-odt-do-format-code): * lisp/org/ox-html.el (org-html-fontify-code): * lisp/org/org.el (org-fontify-like-in-org-mode): * lisp/org/org-src.el (org-src-font-lock-fontify-block): * lisp/org/org-clock.el (org-clock-get-clocktable): Use it. * lisp/org/ox-org.el (org-org-publish-to-org): Use it. Avoid using find-file from Elisp. * test/automated/ruby-mode-tests.el (ruby-assert-face): Use font-lock-ensure. (ruby-interpolation-keeps-non-quote-syntax): Use syntax-propertize.
* | * test/automated/tildify-tests.el: New file.Michal Nazarewicz2014-05-272-0/+110
| | | | | | | | | | | | | | * lisp/textmodes/tildify.el (tildify-buffer, tildify-region): Add dont-ask option. Fixes: debbugs:17547
* | * test/indent/ps-mode.ps: New file.Stefan Monnier2014-05-275-0/+46
| | | | | | | | | | | | | | * test/automated/core-elisp-tests.el (core-elisp-test-window-configurations): New test. * test/indent/octave.m: Add a few more tests. * test/indent/ruby.rb: Add one more test.
* | * package-test.el (package-test-install-single): Update for changed output.Glenn Morris2014-05-262-1/+7
| |
* | Merge from emacs-24; up to 2014-05-26T10:21:[email protected]Glenn Morris2014-05-251-0/+1
|\|
| * * lisp/emacs-lisp/nadvice.el (advice--member-p): Change second arg.Stefan Monnier2014-05-231-0/+1
| | | | | | | | | | | | | | (advice-function-member-p): Tell it to check both names and functions. (advice--add-function): Adjust call accordingly. Fixes: debbugs:17531
* | Tweak previous bytecomp-tests.el changeGlenn Morris2014-05-212-3/+4
| | | | | | | | | | * test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load): Fix handling of temporary elc files.
* | Remove some stray test tempfilesGlenn Morris2014-05-212-1/+4
| | | | | | | | | | * test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load): Avoid leaving empty .elc tempfiles behind.
* | * fns-tests.el (fns-tests-nreverse): Update for changed string behavior.Glenn Morris2014-05-212-1/+6
| |
* | * src/fns.c (Fnreverse): Allow vectors and bool vectors.Dmitry Antipov2014-05-152-0/+34
| | | | | | | | | | | | | | | | * doc/lispref/lists.texi (Building Cons Cells and Lists): Remove description of `nreverse' and generalize it... * doc/lispref/sequences.texi (Sequences): ...for sequences here. * tests/automated/fns-tests.el (fns-tests-nreverse) (fns-tests-nreverse-bool-vector): New tests.