From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 02A35158087 for ; Sat, 16 Oct 2021 10:21:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D35AFE0829; Sat, 16 Oct 2021 10:21:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC512E0828 for ; Sat, 16 Oct 2021 10:21:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3042B3430B5 for ; Sat, 16 Oct 2021 10:21:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFD7A15A for ; Sat, 16 Oct 2021 10:21:38 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1634379664.a44ba9e72dbe1b0878fb78f0fdc2ca708a8bc636.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/bats-assert/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/bats-assert/Manifest dev-util/bats-assert/bats-assert-2.0.0.ebuild dev-util/bats-assert/metadata.xml X-VCS-Directories: dev-util/bats-assert/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: a44ba9e72dbe1b0878fb78f0fdc2ca708a8bc636 X-VCS-Branch: dev Date: Sat, 16 Oct 2021 10:21:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bfce89c3-e62e-4f1b-ac90-41069407c766 X-Archives-Hash: 7dacf74602155f123c6037ddaaaa304e commit: a44ba9e72dbe1b0878fb78f0fdc2ca708a8bc636 Author: Alessandro Barbieri gmail com> AuthorDate: Sat Oct 16 08:56:14 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sat Oct 16 10:21:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a44ba9e7 dev-util/bats-assert: initial import Signed-off-by: Alessandro Barbieri gmail.com> dev-util/bats-assert/Manifest | 1 + dev-util/bats-assert/bats-assert-2.0.0.ebuild | 35 +++++++++++++++++++++++++++ dev-util/bats-assert/metadata.xml | 18 ++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/dev-util/bats-assert/Manifest b/dev-util/bats-assert/Manifest new file mode 100644 index 000000000..794915756 --- /dev/null +++ b/dev-util/bats-assert/Manifest @@ -0,0 +1 @@ +DIST bats-assert-2.0.0.tar.gz 14175 BLAKE2B 4e34fdd018c70b18b44b39f3877fd6730631c78c23cc38e404093745d0b606bdffd8ff35bdfe7bda90fadf793b524d8189025a8929b358add9721062ed80cd7c SHA512 02a9d8edc0c241f0d155a074ff58fcda541ab2c5b7b07213c19576b2ff3ae1bc17dacd933e71c9a3db9bfa4f4e1f963349d14426b48619b3ff7b7334f09b181d diff --git a/dev-util/bats-assert/bats-assert-2.0.0.ebuild b/dev-util/bats-assert/bats-assert-2.0.0.ebuild new file mode 100644 index 000000000..bfda1254c --- /dev/null +++ b/dev-util/bats-assert/bats-assert-2.0.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Supporting library for Bats test helpers" +HOMEPAGE="https://github.com/bats-core/bats-assert" +SRC_URI="https://github.com/bats-core/bats-assert/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RDEPEND=" + dev-util/bats + dev-util/bats-support +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) +RESTRICT="!test? ( test )" + +src_install() { + insinto "/usr/share/${PN}" + doins *.bash + doins -r src + einstalldocs +} + +src_test() { + ln -s "/usr/share/bats-support" "${WORKDIR}/bats-support" || die + source /usr/share/bats-support/load.bash || die + bats test || die +} diff --git a/dev-util/bats-assert/metadata.xml b/dev-util/bats-assert/metadata.xml new file mode 100644 index 000000000..b0887e3dd --- /dev/null +++ b/dev-util/bats-assert/metadata.xml @@ -0,0 +1,18 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + bats-core/bats-assert + + +bats-assert is a helper library providing common assertions for Bats. + +In the context of this project, an assertion is a function that perform a test and returns 1 on failure or 0 on success. To make debugging easier, the assertion also outputs relevant information on failure. The output is formatted for readability. To make assertions usable outside of @test blocks, the output is sent to stderr. + +The most recent invocation of Bats' run function is used for testing assertions on output and status code. + +