aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorBrian Leung <leungbk@mailfence.com>2019-09-21 20:29:40 +0200
committerBrian Leung <leungbk@mailfence.com>2019-10-19 01:39:29 -0700
commit03b966657e02fe0f6370ac1b9f872b1564874837 (patch)
treeb00e30999089970824b6c74f9615d62e919b3c7f /gnu/packages
parent8e37d024e365cb6dd0506baf6d2d5171dac4df3c (diff)
downloadpatches-03b966657e02fe0f6370ac1b9f872b1564874837.tar
patches-03b966657e02fe0f6370ac1b9f872b1564874837.tar.gz
gnu: emacs-web-server: Enable tests.
* gnu/packages/emacs-xyz.scm (emacs-web-server): Enable tests.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emacs-xyz.scm17
1 files changed, 15 insertions, 2 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7f64664f4a..81baef69a6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -89,6 +89,7 @@
#:use-module (gnu packages bash)
#:use-module (gnu packages cmake)
#:use-module (gnu packages code)
+ #:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages dictionaries)
#:use-module (gnu packages emacs)
@@ -18067,11 +18068,10 @@ invoked.")
(define-public emacs-web-server
(let ((commit "cafa5b7582c57252a0884b2c33da9b18fb678713")
- (version "0.1.1")
(revision "1"))
(package
(name "emacs-web-server")
- (version (git-version version revision commit))
+ (version (git-version "0.1.0" revision commit))
(source
(origin
(method git-fetch)
@@ -18083,6 +18083,19 @@ invoked.")
(base32
"1c0lfqmbs5hvz3fh3c8wgp6ipwmxrwx9xj264bjpj3phixd5419y"))))
(build-system emacs-build-system)
+ (native-inputs
+ `(("curl" ,curl)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-shell
+ ;; Setting the SHELL environment variable is required for the tests
+ ;; to find sh.
+ (lambda _
+ (setenv "SHELL" (which "sh"))
+ #t)))
+ #:tests? #t
+ #:test-command '("make" "check")))
(home-page "https://github.com/eschulte/emacs-web-server/")
(synopsis "Web server with handlers in Emacs Lisp")
(description "This package supports HTTP GET and POST requests with