From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/bats-assert/
Date: Sat, 16 Oct 2021 10:21:38 +0000 (UTC) [thread overview]
Message-ID: <1634379664.a44ba9e72dbe1b0878fb78f0fdc2ca708a8bc636.Alessandro-Barbieri@gentoo> (raw)
commit: a44ba9e72dbe1b0878fb78f0fdc2ca708a8bc636
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Oct 16 08:56:14 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> 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 <lssndrbarbieri <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">bats-core/bats-assert</remote-id>
+ </upstream>
+ <longdescription lang="en">
+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.
+ </longdescription>
+</pkgmetadata>
next reply other threads:[~2021-10-16 10:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-16 10:21 Alessandro Barbieri [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-16 10:25 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/bats-assert/ Alessandro Barbieri
2024-02-06 12:23 Takuya Wakazono
2024-02-06 12:23 Takuya Wakazono
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=1634379664.a44ba9e72dbe1b0878fb78f0fdc2ca708a8bc636.Alessandro-Barbieri@gentoo \
--to=lssndrbarbieri@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox