diff --git a/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild b/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild index c12ab2e..db6871b 100644 --- a/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild +++ b/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild @@ -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