summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Leung <bkleung89@gmail.com>2019-09-03 08:55:32 +0200
committerOleg Pykhalov <go.wigust@gmail.com>2019-09-06 12:26:11 +0300
commitd6ac801591c595f209ee0a893f60406177fd1355 (patch)
treea4fc45ccc38b38b6e60f78dba070bc18cc911eb7
parent1acf8e7ea8b742f468cff641ec33ce1ced2cafe0 (diff)
downloadpatches-d6ac801591c595f209ee0a893f60406177fd1355.tar
patches-d6ac801591c595f209ee0a893f60406177fd1355.tar.gz
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>
-rw-r--r--gnu/packages/emacs-xyz.scm15
1 files changed, 13 insertions, 2 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b547f89459..bf6818425c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -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