1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

281 Commits

Author SHA1 Message Date
Daniel Hackney
281c7202cc * package-test.el: Remove tar-package-building functions. Tar file
used for testing is included in the repository.
(package-test-install-texinfo, package-test-cleanup-built-files): Remove.
2013-08-13 20:56:58 -04:00
Fabián Ezequiel Gallina
ad75644970 * lisp/progmodes/python.el (python-imenu--build-tree)
(python-imenu--put-parent): Simplify and Fix (GH bug 146).

* test/automated/python-tests.el (python-imenu-create-index-4)
(python-imenu-create-flat-index-2): New tests.
2013-08-13 13:36:32 -03:00
Lars Magne Ingebrigtsen
7d8e68fed3 Add a test for decompressing gzipped data 2013-08-12 20:36:05 +02:00
Glenn Morris
3e2cd454fd Extract truncate-string-to-width tests to a separate file
* test/automated/mule-util.el: New file, with tests extracted from
lisp/international/mule-util.el.
Copyright years based on when the original test-suite comment was
added to lisp/international/mule-util.el (in 2002).

* lisp/international/mule-util.el: Extract comment test-suite out to
separate file.
2013-08-04 18:32:00 -07:00
Stefan Monnier
671d5c1654 * lisp/subr.el (macrop): New function.
(text-clone--maintaining): New var.
(text-clone--maintain): Rename from text-clone-maintain.  Use it
instead of inhibit-modification-hooks.

* lisp/emacs-lisp/nadvice.el (advice--normalize): For aliases to macros, use
a proxy, so as handle autoloads and redefinitions of the target.
(advice--defalias-fset, advice-remove): Use advice--symbol-function.

* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
Remove bogus (arrayp . stringp) pair.  Add entries for `vectorp'.
(pcase--mutually-exclusive-p): New function.
(pcase--split-consp): Use it.
(pcase--split-pred): Use it.  Optimize the case where `pat' is a qpat
mutually exclusive with the current predicate.

* test/automated/advice-tests.el (advice-tests-nadvice): Test removal
before definition.
(advice-tests-macroaliases): New test.

* lisp/emacs-lisp/edebug.el (edebug-lookup-function): Remove function.
(edebug-macrop): Remove.  Use `macrop' instead.
* lisp/emacs-lisp/advice.el (ad-subr-p): Remove.  Use `subrp' instead.
(ad-macro-p):
* lisp/eshell/esh-cmd.el (eshell-macrop):
* lisp/apropos.el (apropos-macrop): Remove.  Use `macrop' instead.
2013-08-04 16:18:11 -04:00
Glenn Morris
dc8dfa8a70 * ert-tests.el: Disable failing test that no-one seems to know how to fix. 2013-08-03 21:37:10 -07:00
Glenn Morris
f8654242f1 * test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Remove debug messages.
2013-08-03 21:34:01 -07:00
Glenn Morris
2ad0a06772 * test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Try more precise TZ specification.
2013-08-03 19:30:11 -07:00
Glenn Morris
5e471f0dbc * test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Add debug messages.
2013-08-03 09:44:18 -07:00
Glenn Morris
5edd44c276 Fix previous core-elisp-tests.el fix 2013-08-02 18:47:54 -07:00
Glenn Morris
1f21d30894 * test/automated/core-elisp-tests.el (core-elisp-tests): Fix defcustom. 2013-08-02 18:43:30 -07:00
Glenn Morris
f3ffcd8c96 icalendar-tests.el tweaks related to timezone handling
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import):
Use getenv/setenv rather than set-time-zone-rule.
(icalendar-tests--test-import): Reset zone even if error occurred.
2013-08-02 21:02:51 -04:00
Stefan Monnier
a104f656c8 Make defvar affect the default binding outside of any let.
* src/eval.c (default_toplevel_binding): New function.
(Fdefvar): Use it.
(unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification.
(Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs.
(syms_of_eval): Export them.
* src/data.c (Fdefault_value): Micro cleanup.
* src/term.c (init_tty): Use "false".
* lisp/custom.el (custom-initialize-default, custom-initialize-set)
(custom-initialize-reset, custom-initialize-changed): Affect the
toplevel-default-value (bug#6275, bug#14586).
* lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround
for bug#6275.
* test/automated/core-elisp-tests.el: New file.
2013-08-02 17:16:33 -04:00
Glenn Morris
7d7e9a7314 * test/automated/file-notify-tests.el (file-notify--test-remote-enabled):
Try to check that the remote system has a notification program.
2013-08-01 19:10:51 -04:00
Glenn Morris
67a177722c * test/automated/undo-tests.el (undo-test2, undo-test5): Be quieter. 2013-07-31 00:08:47 -07:00
Michael Albinus
e81dd54dc2 * automated/file-notify-tests.el
(file-notify--test-local-enabled): New defconst.  Replaces all
`file-notify-support' occurences.
(file-notify--test-remote-enabled): New defun.
(file-notify--deftest-remote): Use it.
(file-notify-test00-availability): Rewrite.
(file-notify-test00-availability-remote): New defun.
(file-notify-test01-add-watch): Rewrite first erroneous check.
2013-07-24 15:56:19 +02:00
Glenn Morris
bbece175c9 Use a @configure_input@ comment at the start of generated Makefiles 2013-07-23 18:57:17 -04:00
Glenn Morris
97afc49a1a * inotify-test.el (inotify-file-watch-simple): Delete temp-file when done. 2013-07-23 15:54:01 -04:00
Glenn Morris
66878244eb * test/automated/subword-tests.el: Require subword. 2013-07-23 09:08:47 -07:00
Stefan Monnier
0ac26976f1 * lisp/progmodes/subword.el: Fix boundary case.
(subword-forward-regexp): Make it a constant.  Wrap optional \\W in its
own group.
(subword-backward-regexp): Make it a constant.
(subword-forward-internal): Don't treat a trailing capital as the
beginning of a word.
* test/automated/subword-tests.el: New file.

Fixes: debbugs:13758
2013-07-22 12:25:32 -04:00
Fabián Ezequiel Gallina
1f0480d4cd * lisp/progmodes/python.el (python-imenu--build-tree): Fix corner case
in nested defuns.

* test/automated/python-tests.el (python-imenu-create-index-2)
(python-imenu-create-index-3): New tests.
2013-07-12 22:55:58 -03:00
Glenn Morris
6e0e82a034 ChangeLog fixes 2013-07-11 13:18:48 -04:00
Glenn Morris
a19b3c2d97 Stop reimplementing a bunch of cl- functions in ert
* lisp/emacs-lisp/ert.el: Require cl-lib at runtime too.
(ert--cl-do-remf, ert--remprop, ert--remove-if-not)
(ert--intersection, ert--set-difference, ert--set-difference-eq)
(ert--union, ert--gensym-counter, ert--gensym-counter)
(ert--coerce-to-vector, ert--remove*, ert--string-position)
(ert--mismatch, ert--subseq): Remove reimplementations of cl funcs.
(ert-make-test-unbound, ert--expand-should-1)
(ert--expand-should, ert--should-error-handle-error)
(should-error, ert--explain-equal-rec)
(ert--plist-difference-explanation, ert-select-tests)
(ert--make-stats, ert--remove-from-list, ert--string-first-line):
Use cl-lib functions rather than reimplementations.

* test/automated/ert-tests.el: Require cl-lib at runtime too.
(ert-test-special-operator-p): Use cl-gensym rather than ert-- version.
(ert-test-remprop, ert-test-remove-if-not, ert-test-remove*)
(ert-test-set-functions, ert-test-gensym)
(ert-test-coerce-to-vector, ert-test-string-position)
(ert-test-mismatch): Remove tests.

* test/automated/cl-lib.el: New, split from ert-tests.el.
2013-07-11 09:13:38 -07:00
Glenn Morris
d2e1542aa9 Quieten ruby-mode-tests.el compilation
* test/automated/ruby-mode-tests.el (ruby-deftest-move-to-block):
Goto point-min.
(works-on-do, zero-is-noop, ok-with-three, ok-with-minus-two)
(ruby-move-to-block-skips-percent-literal)
(ruby-move-to-block-skips-heredoc)
(ruby-move-to-block-moves-from-else-to-if)
(ruby-beginning-of-defun-does-not-fold-case)
(ruby-end-of-defun-skips-to-next-line-after-the-method):
Replace goto-line with forward-line/goto-char.
(ruby-move-to-block-does-not-fold-case): Remove unneeded end-of-buffer.
2013-07-11 09:04:56 -07:00
Glenn Morris
03d0198115 Silence package-test.el compilation
* test/automated/package-test.el (makeinfo-buffer): Autoload.
(compilation-in-progress, tar-parse-info, tar-header-name): Declare.
(package-test-install-texinfo): Don't require makeinfo.
2013-07-11 09:01:26 -07:00
Glenn Morris
709c6d2b1c * test/automated/files.el: Stop "local variables" confusion. 2013-07-11 09:00:05 -07:00
Glenn Morris
63cd50d4e2 * automated/flymake-tests.el (flymake-tests): Remove unused group. 2013-07-11 08:58:15 -07:00
Glenn Morris
a550ba3359 Silence icalendar-tests.el compilation
* test/automated/icalendar-tests.el (icalendar-tests--do-test-cycle):
Use with-current-buffer.
2013-07-11 08:57:45 -07:00
Glenn Morris
7faba176ba * undo-tests.el (undo-test-buffer-modified, undo-test-file-modified): New tests. 2013-07-11 08:56:41 -07:00
Michael Albinus
59eb37e5f5 * automated/file-notify-tests.el (file-notify-test00-availability):
Set :expected-result.
(file-notify-test01-add-watch, file-notify-test01-add-watch-remote)
(file-notify-test02-events, file-notify-test02-events-remote)
(file-notify-test03-autorevert, file-notify-test03-autorevert-remote):
Skip when `file-notify-support' is nil.  (Bug#14823)
2013-07-09 09:52:25 +02:00
Glenn Morris
0b57d6fc8e * automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare.
(inotify-file-watch-simple): Silence compiler.
2013-07-09 00:43:12 -07:00
Glenn Morris
a87b74fe64 * test/automated/python-tests.el (python-indent-block-enders):
Make it actually test something.
2013-07-09 00:35:26 -07:00
Glenn Morris
08be5fba9c ChangeLog fix 2013-07-09 00:14:39 -07:00
Glenn Morris
771b2fc303 Explictly require ert in some test/automated/*.el files
* automated/add-log-tests.el, automated/advice-tests.el:
* automated/imenu-test.el, automated/python-tests.el:
* automated/ruby-mode-tests.el, automated/xml-parse-tests.el:
Explictly require ert.
2013-07-09 00:11:50 -07:00
Kenichi Handa
0f01f02fe7 decoder-tests.el (decoder-tests-prefer-utf-8-read):
Use with-ccoding-priority to avoid side-effect (Bug#14781).
2013-07-08 20:51:55 +09:00
Michael Albinus
84b6d3df1a * automated/file-notify-tests.el
(file-notify-test-remote-temporary-file-directory): Use
`null-device' on w32.
(file-notify--test-tmpfile, file-notify--test-tmpfile1)
(file-notify--test-results, file-notify--test-event)
(file-notify--deftest-remote, file-notify--event-test)
(file-notify--test-event-handler)
(file-notify--test-make-temp-name): Renamed, in order to mark them
internal.
(tramp-message-show-message, tramp-read-passwd): Tweak them for
better fitting in noninteractive tests.
(file-notify-test00-availability): Renamed from `file-notify-test0'.
(file-notify-test01-add-watch): Renamed from `file-notify-test1'.
Use `temporary-file-directory '.
(file-notify-test01-add-watch-remote): New test.
(file-notify-test02-events): Renamed from `file-notify-test2'.
(file-notify-test02-events-remote): Renamed from `file-notify-test3'.
(file-notify-test03-autorevert): Renamed from
`file-notify-test4'.  Use timeouts.
(file-notify-test03-autorevert-remote): Renamed from
`file-notify-test5'.
2013-07-05 16:06:14 +02:00
Michael Albinus
46e4f8217a * automated/file-notify-tests.el: New package. 2013-07-04 11:43:17 +02:00
Dmitry Gutov
3086ca2e2c * lisp/progmodes/ruby-mode.el (ruby-move-to-block): When we're at a
middle of block statement initially, lower the depth.  Remove
FIXME comment, not longer valid.  Remove middle of block statement
detection, no need to do that anymore since we've been using
`ruby-parse-region' here.
2013-07-03 05:02:18 +04:00
Paul Eggert
adc5dbceb0 Spelling fixes. 2013-06-30 08:10:33 -07:00
Dmitry Gutov
6dbafa3000 * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Don't
start heredoc inside a string or comment.
2013-06-30 06:23:10 +04:00
Kenichi Handa
2ed909207e merge trunk 2013-06-29 12:31:15 +09:00
Kenichi Handa
3e3da66030 decoder-tests.el (decoder-tests-gen-file): New arg FILE.
(decoder-tests-ao-gen-file): Renamed from decoder-tests-filename.
Callers changed.
(decoder-tests-filename): New function.
(decoder-tests-prefer-utf-8-read)
(decoder-tests-prefer-utf-8-write): New function.
(ert-test-decoder-prefer-utf-8): New test.
2013-06-28 23:39:40 +09:00
Glenn Morris
9c8d35d532 Add Copyright header, standardize license notice 2013-06-27 09:14:05 -07:00
Dmitry Gutov
79f38c4eee * test/automated/package-x-test.el: Change the commentary.
(package-x-test--single-archive-entry-1-3)
(package-x-test--single-archive-entry-1-4): Fix the tests, by
using the appropriate data structure.
2013-06-27 13:51:55 +04:00
Dmitry Gutov
10a2da6ea4 * test/automated/package-x-test.el: Change the commentary. 2013-06-27 13:30:37 +04:00
Dmitry Gutov
9ea5cf9fbd * automated/Makefile.in (setwins): Include the 'data' subdirectory.
* automated/package-x-test.el: New file.

* automated/package-test.el: New file.

* automated/data/package: New directory, with test examples.

* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal): Adapt
to `package-desc-version' being a list.  Use
`package--ac-desc-version' to retrieve version from a package
archive element.
2013-06-27 13:26:54 +04:00
Glenn Morris
df86ba7d4d * python-tests.el (python-tests-with-temp-file): Clean up after ourself 2013-06-26 22:46:51 -07:00
Glenn Morris
568a53f290 Fix ChangeLog typo 2013-06-26 19:16:53 -07:00
Glenn Morris
fc3ec98234 * automated/undo-tests.el (undo-test3): Remove test that seems to
nothing that the previous one doesn't, except leave a tempfile.

Fix copyright header.
2013-06-26 19:00:54 -07:00
Glenn Morris
f2136e1e28 info-xref.el: Update for Texinfo 5 change in *note format
* lisp/info-xref.el (info-xref-node-re, info-xref-note-re): New constants.
(info-xref-check-buffer): Use info-xref-note-re.

* test/automated/info-xref.el: New file.
2013-06-25 18:52:09 -07:00