gnu: emacs-deferred: Fix tests.
* gnu/packages/emacs.scm (emacs-deferred)[arguments]: Add set-shell phase. Set #:test-command to "make test".
This commit is contained in:
parent
c1b4ad2e6e
commit
90ec79fb29
|
@ -2567,17 +2567,19 @@ framework for Emacs Lisp to be used with @code{ert}.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-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))
|
||||||
(add-before 'check 'fix-makefile
|
(add-before 'check 'fix-makefile
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("\\$\\(CASK\\) exec ") ""))
|
(("\\$\\(CASK\\) exec ") ""))
|
||||||
#t)))
|
#t)))
|
||||||
#:tests? #t
|
#:tests? #t
|
||||||
;; FIXME: Normally we'd run the "test" target but for some reason the
|
#:test-command '("make" "test")))
|
||||||
;; test-deferred target fails when run in the Guix build environment
|
|
||||||
;; with the error: (file-error "Searching for program" "No such file or
|
|
||||||
;; directory" "/bin/sh").
|
|
||||||
#:test-command '("make" "test-concurrent" "test-concurrent-compiled")))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("emacs-ert-expectations" ,emacs-ert-expectations)
|
`(("emacs-ert-expectations" ,emacs-ert-expectations)
|
||||||
("emacs-undercover" ,emacs-undercover)
|
("emacs-undercover" ,emacs-undercover)
|
||||||
|
|
Loading…
Reference in New Issue