From 75553dd0bd5e7e0549aa003f006b719f5502b1cb Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 00:59:15 +0530 Subject: [PATCH 2/3] gnu: emacs-circe: Enable tests. * gnu/packages/emacs.scm (emacs-circe)[arguments]: Enable tests. Set test-command. Add set-home phase. [native-inputs]: Add emacs-buttercup. --- gnu/packages/emacs.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 74a9bb79d..0575338ee 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7835,6 +7835,19 @@ value of the access token.") (base32 "10gi14kwxd81blddpvqh95lgmpbfgp0m955naxix3bs3r6a75n4s")))) (build-system emacs-build-system) + (arguments + `(#:tests? #t + #:test-command '("buttercup" "-L" ".") + #:phases + (modify-phases %standard-phases + ;; The HOME environment variable should be set to an existing + ;; directory for the tests to succeed. + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp") + #t))))) + (native-inputs + `(("emacs-buttercup" ,emacs-buttercup))) ;; In order to securely connect to an IRC server using TLS, Circe requires ;; the GnuTLS binary. (propagated-inputs -- 2.19.2