From: Jean-Pierre De Jesus DIAZ via Guix-patches via <guix-patches@gnu.org>
To: 65820@debbugs.gnu.org
Cc: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
Subject: [bug#65820] [PATCH 1/3] gnu: Add vim-vader.
Date: Fri, 8 Sep 2023 12:34:19 +0200 [thread overview]
Message-ID: <20230908103419.21662-1-jean@foundationdevices.com> (raw)
In-Reply-To: <20230908103223.21492-1-jean@foundationdevices.com>
* gnu/packages/vim.scm (vim-vader): New variable.
Signed-off-by: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
---
gnu/packages/vim.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 122f0f8ee7..e7c51c1c2d 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
;;; Copyright © 2022, 2023 Luis Henrique Gomes Higin65820@debbugs.gnu.orgo <luishenriquegh2701@gmail.com>
;;; Copyright © 2023 Charles Jackson <charles.b.jackson@protonmail.com>
+;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1479,3 +1480,52 @@ (define-public vim-nerdcommenter
operations and styles which are invoked via key mappings and a menu. These
operations are available for most filetypes.")
(license license:cc0)))
+
+(define-public vim-vader
+ (let ((revision "0")
+ (commit "6fff477431ac3191c69a3a5e5f187925466e275a"))
+ (package
+ (name "vim-vader")
+ (version (git-version "0.4.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/junegunn/vader.vim")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "179dbbqdyl6qf6jdb6kdazn3idz17m1h2n88rlggb1wnly74vjin"))))
+ (build-system copy-build-system)
+ (arguments
+ '(#:install-plan
+ '(("autoload" "share/vim/vimfiles/")
+ ("doc" "share/vim/vimfiles/")
+ ("ftdetect" "share/vim/vimfiles/")
+ ("ftplugin" "share/vim/vimfiles/")
+ ("plugin" "share/vim/vimfiles/")
+ ("syntax" "share/vim/vimfiles/"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; FIXME: suite1.vader fails with an unknown reason,
+ ;; lang-if.vader requires Python and Ruby.
+ (substitute* "test/vader.vader"
+ (("Include.*feature/suite1.vader.*$") "")
+ (("Include.*feature/lang-if.vader.*$") ""))
+
+ (display "Running Vim tests\n")
+ (with-directory-excursion "test"
+ (setenv "VADER_TEST_VIM" "vim -E")
+ (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
+simplify the process of writing and running unit tests. Vader.vim provides an
+intuitive test syntax for defining test cases and expectations, it also can
+be integrated with @acronym{CI, Continuous Integration} pipelines to
+automate testing and is compatible with Vim and Neovim.")
+ (license license:expat)))) ;; Specified in README.md.
--
2.34.1
next prev parent reply other threads:[~2023-09-08 10:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-08 10:32 [bug#65820] [PATCH 0/3] gnu: Add vim-coqtail Jean-Pierre De Jesus DIAZ via Guix-patches via
2023-09-08 10:34 ` Jean-Pierre De Jesus DIAZ via Guix-patches via [this message]
2023-09-08 10:34 ` [bug#65820] [PATCH 2/3] gnu: Add coq-for-coqtail Jean-Pierre De Jesus DIAZ via Guix-patches via
2023-09-08 10:34 ` [bug#65820] [PATCH 3/3] gnu: Add vim-coqtail Jean-Pierre De Jesus DIAZ via Guix-patches via
2023-11-23 10:35 ` bug#65820: [PATCH 0/3] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230908103419.21662-1-jean@foundationdevices.com \
--to=guix-patches@gnu.org \
--cc=65820@debbugs.gnu.org \
--cc=jean@foundationdevices.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.