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:
Maciej Barć 2020-09-17 00:37:41 +02:00
parent c33624d0c8
commit c72a1b3777
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
1 changed files with 19 additions and 4 deletions

View File

@ -11,18 +11,33 @@ DESCRIPTION="Small scripts from src_prepare group"
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
EGIT_REPO_URI="https://gitlab.com/src_prepare/${MY_PN}.git"
RESTRICT="
mirror
!test? ( test )
"
LICENSE="ISC"
SLOT="0"
KEYWORDS=""
IUSE=""
IUSE="test"
DEPEND="
RDEPEND="
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() {
# Install the docs
local doc