aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJean-Pierre De Jesus DIAZ <jean@foundationdevices.com>2023-12-27 16:31:46 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-01-01 10:44:20 +0200
commitdef924439d361908e70329ea812fd1391883f1b0 (patch)
tree43d98484a661ccad110fa676631e9a57f0b21181 /gnu/packages
parentb20b624b0244ba9bec832b5c466cda07a94b06ce (diff)
downloadguix-def924439d361908e70329ea812fd1391883f1b0.tar.gz
guix-def924439d361908e70329ea812fd1391883f1b0.zip
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/vim.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 9debed0b86..03d1e5bed5 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1509,7 +1509,7 @@ operations are available for most filetypes.")
#: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 @@ operations are available for most filetypes.")
(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