[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: vim-vader: Allow using neovim for tests.
From: |
guix-commits |
Subject: |
02/06: gnu: vim-vader: Allow using neovim for tests. |
Date: |
Mon, 1 Jan 2024 04:00:12 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit def924439d361908e70329ea812fd1391883f1b0
Author: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
AuthorDate: Wed Dec 27 16:31:46 2023 +0100
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>
---
gnu/packages/vim.scm | 8 +++++---
1 file 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
- branch master updated (86b5fa1009 -> 3bb1390171), guix-commits, 2024/01/01
- 01/06: gnu: gccgo-12: Fix building with 1 core., guix-commits, 2024/01/01
- 03/06: gnu: Add neovim-vader., guix-commits, 2024/01/01
- 02/06: gnu: vim-vader: Allow using neovim for tests.,
guix-commits <=
- 04/06: gnu: vim-coqtail: Move vim-full to arguments., guix-commits, 2024/01/01
- 06/06: gnu: Add neovim-coqtail., guix-commits, 2024/01/01
- 05/06: gnu: vim-coqtail: Allow using neovim for tests., guix-commits, 2024/01/01