From patchwork Wed Dec 27 15:31:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 58101 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4046D27BBEC; Wed, 27 Dec 2023 15:33:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 927FE27BBE2 for ; Wed, 27 Dec 2023 15:33:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIVu5-00079g-8E; Wed, 27 Dec 2023 10:33:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIVu3-00078Z-LF for guix-patches@gnu.org; Wed, 27 Dec 2023 10:33:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIVu3-0001Do-D1 for guix-patches@gnu.org; Wed, 27 Dec 2023 10:33:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIVu2-0007Fw-11 for guix-patches@gnu.org; Wed, 27 Dec 2023 10:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68060] [PATCH 1/5] gnu: vim-vader: Allow using neovim for tests. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Dec 2023 15:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68060 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68060@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 68060-submit@debbugs.gnu.org id=B68060.170369112527782 (code B ref 68060); Wed, 27 Dec 2023 15:33:01 +0000 Received: (at 68060) by debbugs.gnu.org; 27 Dec 2023 15:32:05 +0000 Received: from localhost ([127.0.0.1]:37597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIVt6-0007E0-QV for submit@debbugs.gnu.org; Wed, 27 Dec 2023 10:32:05 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:53547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIVt4-0007DJ-Hu for 68060@debbugs.gnu.org; Wed, 27 Dec 2023 10:32:03 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-33686649b72so5401718f8f.3 for <68060@debbugs.gnu.org>; Wed, 27 Dec 2023 07:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1703691118; x=1704295918; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PVZEQTVRbOLMObLizaU46hf18pYhCNQwzYSMhIbEEIA=; b=ZFQXnp/qKQqLCiydd3Cb4S9FaR7uy7Z8RgxqgboHInXCiL1nRBBeTiAHWRkT2z+d7k 2yo9hm2gIVeSQ7xOfm7OYof1EO+vHPdlGJ3muJSbUpsKcI99aEUST4sf4u/Gds6Z16a6 9EpiXLFxGd+HPmFvnXYzhbvFEKaHKDuubaH5oOFVyN3KsrnvaTrxb6MT2IrklrgYwK6L tlfDbE7Rx3h1Z6/4cGyWuft8KrRo2bDDktjEiWdXOkHEvSMwnMa0Pp4UEhJsm44+2TJG FQayKhLN5hbPu/RiYbFDJI3aGyIgjstLyIKFuYp6z+abZX/Hd33zffLKfkvvYPOeVv1L MHKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703691118; x=1704295918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PVZEQTVRbOLMObLizaU46hf18pYhCNQwzYSMhIbEEIA=; b=cN2bWJR4BA3PKtaYywpd6xiDBy7ZKdcazOrJWUodEaxeCACSSs+0UgH7LClPzoX5nN HEOUDq5h8+cJCYWv7KT2a2I/ZSjFoz9q7/LjbTnz+G51vDXsZEWPcLBh57C463W7Dccj JkKlYi0jJHDsc8qztqQf9l25qUzNircVBZ/yv2k9HO+AvZd5cAjPntljXex4ACLG7/82 iVMz6oqLW2E8zX4HUDU+Wtbg5TQI1Aqhh81qNGfie3bsgsaadtpjYFpyuroQp2sSTp4b E3dw4EdTmgnsus7dnppJkulPV8AxGNX6qWuHMFGcDX4HOReZVRXAGo/uBgGK9sB+XqA9 PpCw== X-Gm-Message-State: AOJu0YyS2XFsLFyytbV+e+SmxK4IiCuwAE06vamiydu1ZXWlxzaC2Tar ZPRSkLwlcN6ZP9wZb796N/Wb4DFnnLo0fmq16CJpFK/iyo7dcQ== X-Google-Smtp-Source: AGHT+IFDDzDLBiWyMrgHW5vu9FdIcJLHnvQnYm6w1bWMmdivQaADLOTA5UpStTW5W2oosG2kKisRfQ== X-Received: by 2002:adf:ef81:0:b0:336:6db3:1d7a with SMTP id d1-20020adfef81000000b003366db31d7amr4700813wro.103.1703691117512; Wed, 27 Dec 2023 07:31:57 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id e17-20020a5d5311000000b0033672cfca96sm15025139wrv.89.2023.12.27.07.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 07:31:57 -0800 (PST) Date: Wed, 27 Dec 2023 16:31:46 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/vim.scm (vim-vader): Allow using neovim for tests Change-Id: Id5b4423f24fdd42814b0a0e3fab801ec871611f7 --- 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 @@ (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