From 0e6dbfdb04bf7fb75e1099ca8a8e2df720d9a43a Mon Sep 17 00:00:00 2001 From: Jonas Licht Date: Mon, 29 Jun 2020 19:57:58 +0200 Subject: net-analyzer/openvas-scanner: fix tests in 7.0.1 Closes: https://bugs.gentoo.org/729864 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jonas Licht Closes: https://github.com/gentoo/gentoo/pull/15793 Signed-off-by: Joonas Niilola --- net-analyzer/openvas-scanner/openvas-scanner-7.0.1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'net-analyzer/openvas-scanner') diff --git a/net-analyzer/openvas-scanner/openvas-scanner-7.0.1.ebuild b/net-analyzer/openvas-scanner/openvas-scanner-7.0.1.ebuild index 402a9e69659f..812b342a1ca3 100644 --- a/net-analyzer/openvas-scanner/openvas-scanner-7.0.1.ebuild +++ b/net-analyzer/openvas-scanner/openvas-scanner-7.0.1.ebuild @@ -16,7 +16,8 @@ SRC_URI="https://github.com/greenbone/openvas-scanner/archive/v${PV}.tar.gz -> $ SLOT="0" LICENSE="GPL-2 GPL-2+" KEYWORDS="~amd64 ~x86" -IUSE="cron extras" +IUSE="cron extras test" +RESTRICT="!test? ( test )" DEPEND=" acct-user/gvm @@ -44,7 +45,8 @@ BDEPEND=" app-text/htmldoc dev-perl/CGI dev-perl/SQL-Translator - )" + ) + test? ( dev-libs/cgreen )" BUILD_DIR="${WORKDIR}/${MY_PN}-${PV}_build" S="${WORKDIR}/${MY_PN}-${PV}" @@ -84,6 +86,9 @@ src_compile() { cmake_build doc-full -C "${BUILD_DIR}" doc fi cmake_build rebuild_cache + if use test; then + cmake_build tests + fi } src_install() { -- cgit v1.2.3-65-gdbad