diff options
| author | Joakim Verona | 2015-01-23 00:13:27 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-23 00:13:27 +0100 |
| commit | bdd672b275034e8c1c65992f2e21dac7cc6eba60 (patch) | |
| tree | 0e773e29ee7e4cbfb680ec31f7350643dd93366d /test | |
| parent | 5693f3de69f9db99252b2f4eb1c7178fdec2a210 (diff) | |
| parent | 2f908e0cac317b381393e3efb70ec08dfaab5383 (diff) | |
| download | emacs-bdd672b275034e8c1c65992f2e21dac7cc6eba60.tar.gz emacs-bdd672b275034e8c1c65992f2e21dac7cc6eba60.zip | |
Merge branch 'master' into xwidget
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 11 | ||||
| -rw-r--r-- | test/automated/package-test.el | 17 |
2 files changed, 23 insertions, 5 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index d63a561953d..af36b5d2bde 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,13 +1,14 @@ | |||
| 1 | 2015-01-20 Jorgen Schaefer <contact@jorgenschaefer.de> | ||
| 2 | |||
| 3 | * automated/package-test.el (package-test-install-prioritized): | ||
| 4 | Re-add the test case and add priority to the correct repository | ||
| 5 | this time around. | ||
| 6 | |||
| 1 | 2015-01-21 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2015-01-21 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * automated/cl-generic-tests.el (setf cl--generic-2): Make sure | 9 | * automated/cl-generic-tests.el (setf cl--generic-2): Make sure |
| 4 | the setf can be used already in the body of the method. | 10 | the setf can be used already in the body of the method. |
| 5 | 11 | ||
| 6 | 2015-01-20 Jorgen Schaefer <contact@jorgenschaefer.de> | ||
| 7 | |||
| 8 | * automated/package-test.el (package-test-install-prioritized): | ||
| 9 | Remove test due to unreproducable failures. | ||
| 10 | |||
| 11 | 2015-01-20 Michal Nazarewicz <mina86@mina86.com> | 12 | 2015-01-20 Michal Nazarewicz <mina86@mina86.com> |
| 12 | 13 | ||
| 13 | * automated/descr-text-test.el: New file with tests for | 14 | * automated/descr-text-test.el: New file with tests for |
diff --git a/test/automated/package-test.el b/test/automated/package-test.el index 27a71c528c6..3ea13dee4ad 100644 --- a/test/automated/package-test.el +++ b/test/automated/package-test.el | |||
| @@ -230,6 +230,23 @@ Must called from within a `tar-mode' buffer." | |||
| 230 | (package-refresh-contents) | 230 | (package-refresh-contents) |
| 231 | (package-install 'simple-single))) | 231 | (package-install 'simple-single))) |
| 232 | 232 | ||
| 233 | (ert-deftest package-test-install-prioritized () | ||
| 234 | "Install a lower version from a higher-prioritized archive." | ||
| 235 | (with-package-test () | ||
| 236 | (let* ((newer-version (expand-file-name "data/package/newer-versions" | ||
| 237 | package-test-file-dir)) | ||
| 238 | (package-archives `(("older" . ,package-test-data-dir) | ||
| 239 | ("newer" . ,newer-version))) | ||
| 240 | (package-archive-priorities '(("older" . 100)))) | ||
| 241 | |||
| 242 | (package-initialize) | ||
| 243 | (package-refresh-contents) | ||
| 244 | (package-install 'simple-single) | ||
| 245 | |||
| 246 | (let ((installed (cadr (assq 'simple-single package-alist)))) | ||
| 247 | (should (version-list-= '(1 3) | ||
| 248 | (package-desc-version installed))))))) | ||
| 249 | |||
| 233 | (ert-deftest package-test-install-multifile () | 250 | (ert-deftest package-test-install-multifile () |
| 234 | "Check properties of the installed multi-file package." | 251 | "Check properties of the installed multi-file package." |
| 235 | (with-package-test (:basedir "data/package" :install '(multi-file)) | 252 | (with-package-test (:basedir "data/package" :install '(multi-file)) |