mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-21 01:26:43 +01:00
gnu: vim-vader: Allow using neovim for tests.
* gnu/packages/vim.scm (vim-vader): Allow using neovim for tests. Change-Id: Id5b4423f24fdd42814b0a0e3fab801ec871611f7 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
b20b624b02
commit
def924439d
1 changed files with 5 additions and 3 deletions
|
@ -1509,7 +1509,7 @@ (define-public vim-vader
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'install 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(lambda* (#:key tests? vim? neovim? #:allow-other-keys)
|
||||
(when tests?
|
||||
;; FIXME: suite1.vader fails with an unknown reason,
|
||||
;; lang-if.vader requires Python and Ruby.
|
||||
|
@ -1519,9 +1519,11 @@ (define-public vim-vader
|
|||
|
||||
(display "Running Vim tests\n")
|
||||
(with-directory-excursion "test"
|
||||
(setenv "VADER_TEST_VIM" "vim -E")
|
||||
(when vim?
|
||||
(setenv "VADER_TEST_VIM" "vim -E"))
|
||||
(when neovim?
|
||||
(setenv "VADER_TEST_VIM" "nvim --headless"))
|
||||
(invoke "bash" "./run-tests.sh"))))))))
|
||||
(native-inputs (list vim))
|
||||
(home-page "https://github.com/junegunn/vader.vim")
|
||||
(synopsis "Test framework for Vimscript")
|
||||
(description "Vader is a test framework for Vimscript designed to
|
||||
|
|
Loading…
Reference in a new issue