el-get/test/el-get-issue-513.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

23 lines
680 B
EmacsLisp

;; https://github.com/dimitri/el-get/issues/513
;;
;; Testing the github and emacsmirror methods
(setq debug-on-error t
el-get-verbose t)
;; Install a github-type recipe
(el-get 'sync 'window-layout)
;; Install an emacsmirror-type recipe
(el-get 'sync 'dired-plus)
(condition-case err
(progn
;; Should fail
(let ((el-get-sources
'((:name broken-pkg
:type github))))
(el-get 'sync 'broken-pkg))
(signal 'test-failure
'("The package\"broken-pkg\" should have caused an error, but it didn't.")))
(error (message "Installing \"broken-pkg\" failed as expected. The error message was: %S" err)))