mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-15 18:13:10 -04:00
dev-util/bats-assert: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-util/bats-assert/Manifest
Normal file
1
dev-util/bats-assert/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bats-assert-2.0.0.tar.gz 14175 BLAKE2B 4e34fdd018c70b18b44b39f3877fd6730631c78c23cc38e404093745d0b606bdffd8ff35bdfe7bda90fadf793b524d8189025a8929b358add9721062ed80cd7c SHA512 02a9d8edc0c241f0d155a074ff58fcda541ab2c5b7b07213c19576b2ff3ae1bc17dacd933e71c9a3db9bfa4f4e1f963349d14426b48619b3ff7b7334f09b181d
|
||||
35
dev-util/bats-assert/bats-assert-2.0.0.ebuild
Normal file
35
dev-util/bats-assert/bats-assert-2.0.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
18
dev-util/bats-assert/metadata.xml
Normal file
18
dev-util/bats-assert/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user