app-portage/src_prepare-scripts: add tests
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
c33624d0c8
commit
c72a1b3777
@ -11,18 +11,33 @@ DESCRIPTION="Small scripts from src_prepare group"
|
|||||||
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
|
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
|
||||||
EGIT_REPO_URI="https://gitlab.com/src_prepare/${MY_PN}.git"
|
EGIT_REPO_URI="https://gitlab.com/src_prepare/${MY_PN}.git"
|
||||||
|
|
||||||
|
RESTRICT="
|
||||||
|
mirror
|
||||||
|
!test? ( test )
|
||||||
|
"
|
||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE=""
|
IUSE="test"
|
||||||
|
|
||||||
DEPEND="
|
RDEPEND="
|
||||||
app-shells/bash:*
|
app-shells/bash:*
|
||||||
"
|
"
|
||||||
RDEPEND="
|
DEPEND="
|
||||||
${DEPEND}
|
${RDEPEND}
|
||||||
|
test? (
|
||||||
|
dev-python/pylint
|
||||||
|
|| (
|
||||||
|
dev-util/shellcheck
|
||||||
|
dev-util/shellcheck-bin
|
||||||
|
)
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
bash ./test.sh || die "Tests failed"
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
# Install the docs
|
# Install the docs
|
||||||
local doc
|
local doc
|
||||||
|
Loading…
Reference in New Issue
Block a user