diff options
author | K. Handa <handa@gnu.org> | 2016-01-03 17:53:43 +0900 |
---|---|---|
committer | K. Handa <handa@gnu.org> | 2016-01-03 17:53:43 +0900 |
commit | fb6d826c69939c2d016c1b824d4e9bcb53d9e643 (patch) | |
tree | b9ce862d6cbe25e740203421984df21e4cbadbf4 /test/lisp/emacs-lisp | |
parent | 536f48e9a2251b9e654ea974bd90ff2f40218753 (diff) | |
parent | 91917dd58ec5278e555b9c693a830749083e8f89 (diff) | |
download | emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.gz emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.bz2 emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.zip |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/package-tests.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/package-tests.el b/test/lisp/emacs-lisp/package-tests.el index 6b3069c2a54..7206084f324 100644 --- a/test/lisp/emacs-lisp/package-tests.el +++ b/test/lisp/emacs-lisp/package-tests.el @@ -242,6 +242,20 @@ Must called from within a `tar-mode' buffer." (should (package-installed-p 'simple-single)) (should (package-installed-p 'simple-depend)))) +(ert-deftest package-test-macro-compilation () + "Install a package which includes a dependency." + (with-package-test (:basedir "data/package") + (package-install-file (expand-file-name "macro-problem-package-1.0/")) + (require 'macro-problem) + ;; `macro-problem-func' uses a macro from `macro-aux'. + (should (equal (macro-problem-func) '(progn a b))) + (package-install-file (expand-file-name "macro-problem-package-2.0/")) + ;; After upgrading, `macro-problem-func' depends on a new version + ;; of the macro from `macro-aux'. + (should (equal (macro-problem-func) '(1 b))) + ;; `macro-problem-10-and-90' depends on an entirely new macro from `macro-aux'. + (should (equal (macro-problem-10-and-90) '(10 90))))) + (ert-deftest package-test-install-two-dependencies () "Install a package which includes a dependency." (with-package-test () |