mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: emacs-go-mode: Activate tests.
* gnu/packages/emacs-xyz.scm (emacs-go-mode)[arguments]: Activate tests.
This commit is contained in:
parent
48e72ee82b
commit
f75becbb36
1 changed files with 16 additions and 0 deletions
|
@ -3253,7 +3253,23 @@ (define-public emacs-go-mode
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"00qzn136d8cl3szbi44xf3iiv75r6n1m7wwgldmzn4i5mpz8dbq7"))))
|
"00qzn136d8cl3szbi44xf3iiv75r6n1m7wwgldmzn4i5mpz8dbq7"))))
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #t
|
||||||
|
#:test-command #~(list "ert-runner")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'fix-tests
|
||||||
|
;; Two tests fail because they (wrongly) assume we run them from
|
||||||
|
;; the "test" sub-directory. Fix their expectations.
|
||||||
|
(lambda _
|
||||||
|
(let ((test-file "test/go-indentation-test.el"))
|
||||||
|
(make-file-writable test-file)
|
||||||
|
(substitute* test-file
|
||||||
|
(("testdata/indentation_tests/" all)
|
||||||
|
(string-append "test/" all)))))))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
|
(native-inputs (list emacs-ert-runner))
|
||||||
(home-page "https://github.com/dominikh/go-mode.el")
|
(home-page "https://github.com/dominikh/go-mode.el")
|
||||||
(synopsis "Go mode for Emacs")
|
(synopsis "Go mode for Emacs")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue