summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Licht <jonas.licht@fem.tu-ilmenau.de>2020-06-29 19:57:58 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-07-14 15:57:08 +0300
commit0e6dbfdb04bf7fb75e1099ca8a8e2df720d9a43a (patch)
tree1f588047ebc3a6511deb4386562f4475ca722d3a /net-analyzer
parentnet-analyzer/gvm-libs: fix tests in version 11.0.1 (diff)
downloadgentoo-0e6dbfdb04bf7fb75e1099ca8a8e2df720d9a43a.tar.gz
gentoo-0e6dbfdb04bf7fb75e1099ca8a8e2df720d9a43a.tar.bz2
gentoo-0e6dbfdb04bf7fb75e1099ca8a8e2df720d9a43a.zip
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 <jonas.licht@fem.tu-ilmenau.de> Closes: https://github.com/gentoo/gentoo/pull/15793 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/openvas-scanner/openvas-scanner-7.0.1.ebuild9
1 files changed, 7 insertions, 2 deletions
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() {