Test case for package.el's dependency resolution. The two test cases are, with dependencies flowing left to right:
C / \ X---Z A D--E \ / \ / Y B
- For
a
, the only valid install orders are(e d b c a)
or(e d c b a)
- For
x
, the only valid install order is(z y x)
lorne@argon$ brew switch emacs 24.3 && ./test.el Cleaning /usr/local/Cellar/emacs/24.3 Cleaning /usr/local/Cellar/emacs/HEAD 22 links created for /usr/local/Cellar/emacs/24.3 Saving file /Users/lorne/.emacs.d/elpa/archives/test/archive-contents... Loading vc-git... Wrote /Users/lorne/.emacs.d/elpa/archives/test/archive-contents emacs-version: GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) of 2014-03-12 on argon.cons.org.nz emacs-bzr-version: nil package-archives: ((test . ~/src/emacs-package-test/)) [FAIL] install a = (c e d b a) [FAIL] install x = (y z x) tests=2 ok=0 fail=2 TEST FAILURES
For some reason emacs-bzr-version
is lost, Homebrew printed this while installing:
Updated to revision 116733 of branch http://bzr.savannah.gnu.org/r/emacs/trunk
lorne@argon$ brew switch emacs HEAD && ./test.el Cleaning /usr/local/Cellar/emacs/24.3 Cleaning /usr/local/Cellar/emacs/HEAD 22 links created for /usr/local/Cellar/emacs/HEAD Saving file /Users/lorne/.emacs.d/elpa/archives/test/archive-contents... Wrote /Users/lorne/.emacs.d/elpa/archives/test/archive-contents emacs-version: GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) of 2014-03-12 on argon.cons.org.nz emacs-bzr-version: nil package-archives: ((test . ~/src/emacs-package-test/)) [FAIL] install a = (d c e b a) [ OK] install x = (z y x) tests=2 ok=1 fail=1 TEST FAILURES