gnu: emacs-sudo-edit: Enable tests.

* gnu/packages/emacs-xyz.scm (emacs-sudo-edit): Enable tests.
[native-inputs]: Add emacs-undercover.

Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
This commit is contained in:
Brian Leung 2019-09-03 08:55:32 +02:00 committed by Oleg Pykhalov
parent 1acf8e7ea8
commit d6ac801591
No known key found for this signature in database
GPG Key ID: 167F8EA5001AFA9C
1 changed files with 13 additions and 2 deletions

View File

@ -3129,11 +3129,10 @@ completion of relevant keywords.")
(define-public emacs-sudo-edit
(let ((commit "cc3d478937b1accd38742bfceba92af02ee9357d")
(version "0.1.0")
(revision "6"))
(package
(name "emacs-sudo-edit")
(version (git-version version revision commit))
(version (git-version "0.1.0" revision commit))
(source
(origin
(method git-fetch)
@ -3145,6 +3144,18 @@ completion of relevant keywords.")
(base32
"1qv58x5j5a3v1s2ylhck1ykbfclq0mbi0gsvaql3nyv8cxazqlwl"))))
(build-system emacs-build-system)
(native-inputs
`(("emacs-undercover" ,emacs-undercover)))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-makefile
(lambda _
(substitute* "Makefile"
(("\\$\\(CASK\\) exec ") ""))
#t)))
#:tests? #t
#:test-command '("make" "test")))
(home-page "https://github.com/nflath/sudo-edit/")
(synopsis "Open files as another user")
(description