From c72a1b3777f79c58f954f04633b7433636541135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Thu, 17 Sep 2020 00:37:41 +0200 Subject: [PATCH] app-portage/src_prepare-scripts: add tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Maciej Barć --- .../src_prepare-scripts-9999.ebuild | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) 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