From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OKiiE4MBAGbtLwEAqHPOHw:P1 (envelope-from ) for ; Sun, 24 Mar 2024 11:33:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OKiiE4MBAGbtLwEAqHPOHw (envelope-from ) for ; Sun, 24 Mar 2024 11:33:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b="q/sZOGvk"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711276419; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SgL4s/RiOJujEINnlpY7THxkGzgMO1cs+/LIcphCcdY=; b=uuyy9mGNxuqiGvlsfWpYi7xRBbyHpN93AbN5iWFfe6iND5HPyu6AVzLUCYYW7GmmsvcUzp HHGab62m7LUb14v2qYPRhAW72ZcY+vI6ZbV6BbgcvCU+LLsMotANl8PJJwKFeKMDX6Stta NgWBbCqVogION3WHhkcFKnoH4c1uNoyhQx6OrUfi+0CaLNNPz+kAM3axG9uKAMdXpKRejQ uNArvEnZW/5kEcJ6t86fpRMu+/WT4FauqsvobAY9EQI5GQ0llGIAiLNtfQrtrYmSJWOQsz aVOtd34Uy8Csxt8JZgl6U1rTTW5dYyO64xMf0eyvf3D3myR6U9FPxTwopu2PjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b="q/sZOGvk"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711276419; a=rsa-sha256; cv=none; b=aCaHsdpXDbCBVHM2pJbPkaqQr7kYx1J0M514wKECH+QEHNvblJD+MTY063IQDtCjmOYehZ SVIWWtwUje2yL8nTR3kcRLp0tyPLa3GLDpCdaPEiAFr0ezw7NXH47Tq95EoKCGGDGv/8QT lOeMja0u7O1/kwErt9t6ZgpSlHKZXtjC3thmegAdB78YIdNwEqQdCszNBvCdLRzwddUYHE aJujEqAO8wIP8MFZAgzu3lGbwP4sQxvLgV6LrTasnB7XB9kg4w+ETJ0/N/2iyEFBip3R9N ZZO2f3TbLWef/CocRYQI0OH4ZQ25JfbSRVA3zL92b/9TZg9AIY/E0iuZ3BhmXg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 55242755B5 for ; Sun, 24 Mar 2024 11:33:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roLAK-0000zq-9m; Sun, 24 Mar 2024 06:33:24 -0400 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 1roLAH-0000zI-PE for guix-patches@gnu.org; Sun, 24 Mar 2024 06:33:21 -0400 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 1roLAH-000122-Ge for guix-patches@gnu.org; Sun, 24 Mar 2024 06:33:21 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1roLAx-00006h-5S for guix-patches@gnu.org; Sun, 24 Mar 2024 06:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69975] [PATCH] gnu: Add bash-unit. Resent-From: chris Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Mar 2024 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69975 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69975@debbugs.gnu.org Cc: chris X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171127639632734 (code B ref -1); Sun, 24 Mar 2024 10:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Mar 2024 10:33:16 +0000 Received: from localhost ([127.0.0.1]:47450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roLAC-0008Vo-7E for submit@debbugs.gnu.org; Sun, 24 Mar 2024 06:33:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:36934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roLA8-0008VQ-Rb for submit@debbugs.gnu.org; Sun, 24 Mar 2024 06:33:13 -0400 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 1roJQh-0005hR-BV for guix-patches@gnu.org; Sun, 24 Mar 2024 04:42:11 -0400 Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1roJQf-0002BI-4k for guix-patches@gnu.org; Sun, 24 Mar 2024 04:42:11 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id F0E372095C26 for ; Sun, 24 Mar 2024 09:41:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1711269716; x=1713084117; bh=SgL4s/RiOJujEINnlpY7THxkGzgMO1cs+/LIcphCcdY=; b=q/sZOGvkU2H2 otxkRl9bB4GekWU2ZfQfyP5wkrFGgRid7VXGU2IXXkjFBfj4J28dGhtX43qrH9Kv YAMrCSQhvxrFqLzyoG+YsLgnwB0zPZWheHJKtr/SDYZNlfnSSvM8um7llXezqWvj YQ1wK/6z5FU/G4LctH8K2OwB2l2FYnBkaGBLKMpL04IU/IJb6iQUR5bL3CBtR2cJ zHsbr6kWmam+AyvE8sU0hSf1vYZN+T4PKW6a+bzKdMgUEF1Ys28Uv1AztVTghp41 4TNFRgw0om0dCKQK8TKGlzJjbayVzZwhzJu4oXRWsmh2f/aT509vpsG4pFizKqyS sdnpd81y7L9R5GScqY0vs4IrGEI0iLJmByQJck6Uc0uv2uag3y8X7ZyqooA0ccQY 7DnW4I7Ld9be57qjtiJ7vwun1MRQUBzkyTN2JtQkYoP3mYQAeemKQv34wNVqdMGG THCb3rnMz7eJqQ1+4EkCR0irbkruAz9fKAQxb88laFua7wlcQdXWD2Yq22GFrlq3 7A2zX3q6w7onPe7OvSQ9LiVrVBz8IM0IQU8noxOFwPwsjnO8G/NLcjcDxp5Twbtt VL77N4pXSScnqGlhRmvW47KOgppCHKGT373rY+myNTSnV79Ih/W+g70lbYYzRN1i 6ie00MNBqAR+yDANP82HnA9+/sVfNWY= X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id VKNUzbP5Q1pp for ; Sun, 24 Mar 2024 09:41:56 +0100 (CET) Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id 4DAF62095C24 for ; Sun, 24 Mar 2024 09:41:55 +0100 (CET) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 91D9620D5841 for ; Sun, 24 Mar 2024 09:41:55 +0100 (CET) From: chris Date: Sun, 24 Mar 2024 01:40:03 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.103.80.155; envelope-from=chris@bumblehead.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 55242755B5 X-Spam-Score: -3.03 X-Migadu-Spam-Score: -3.03 X-Migadu-Scanner: mx10.migadu.com X-TUID: WuQlkKBi1YDS * (bash-unit): New variable. Change-Id: I0952538a456e2ce5f6bbb94c0fa8c1b467606835 --- gnu/packages/bash.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index bb3359d5d1..17a371d385 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2020 Zhu Zihao ;;; Copyright © 2021 Marius Bakke +;;; Copyright © 2024 chris ;;; ;;; This file is part of GNU Guix. ;;; @@ -47,6 +48,7 @@ (define-module (gnu packages bash) #:use-module (guix monads) #:use-module (guix store) #:use-module (guix build-system gnu) + #:use-module (guix build-system copy) #:use-module (guix build-system trivial) #:autoload (guix gnupg) (gnupg-verify*) #:autoload (guix base32) (bytevector->nix-base32-string) @@ -481,3 +483,33 @@ (define-public blesh which replaces the default GNU Readline. It adds syntax highlighting, auto suggestions, vim modes, and more to Bash interactive sessions.") (license license:bsd-3))) + +(define-public bash-unit + (package + (name "bash-unit") + (version "2.3.1") + (home-page "https://github.com/pgrange/bash_unit") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16vaw9lc7g43g9va1kxbzxqs6b1mawsj4gqi8izz9km3dkbn3pli")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("bash_unit" "bin/")) + #:phases (modify-phases %standard-phases + (add-before 'install 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./bash_unit" "tests/test_core.sh")) #t))))) + (inputs (list bash-minimal)) + (synopsis "Bash unit testing framework") + (description + "@command{bash_unit} allows you to write unit tests, run them and, in case of + failure, display the stack trace with source file and line number indications + to locate the problem.") + (license license:gpl3+))) base-commit: 28bc0e870b4d48b8e3e773382bb0e999df2e3611 -- 2.41.0