el-get/test/el-get-issue-583.el
Ryan C. Thompson 1fb104010c Use setq instead of let in tests
This makes it easier to run tests interactively and inspect the
results afterward, because the variables such as "el-get-sources" that
were set for the tests are still bound to the values they had during
the test.
2012-03-18 12:33:04 -07:00

28 lines
828 B
EmacsLisp

;; https://github.com/dimitri/el-get/issues/583
;;
;; Installing, removing, and installing a package doesn't
;;
;; Also related: https://github.com/dimitri/el-get/issues/576
(setq el-get-default-process-sync t
el-get-verbose t
el-get-sources
'((:name a :type builtin :depends
(b c d e f))
(:name b :type builtin)
(:name c :type builtin)
(:name d :type builtin)
(:name e :type builtin)
(:name f :type builtin)))
;; Ensure a is uninstalled
(ignore-errors (el-get-remove 'a))
;; Install a and all deps
(el-get-install 'a)
;; Remove a, leaving deps installed
(el-get-remove 'a)
;; Try to install a again, this fails and only inits b and c.
(el-get-install 'a)
(assert (el-get-package-is-installed 'a) nil
"Package A should be installed but isn't.")