summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-01-22 15:41:02 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-01-22 15:42:05 +0100
commite6f4e4ac3a9bc1b4d5cd790077daf940a67703d5 (patch)
treec301f171dee4a20982a58ecc348da63a42cf05fb
parentapp-benchmarks/stress-ng: drop old version (diff)
downloadgentoo-e6f4e4ac3a9bc1b4d5cd790077daf940a67703d5.tar.gz
gentoo-e6f4e4ac3a9bc1b4d5cd790077daf940a67703d5.tar.bz2
gentoo-e6f4e4ac3a9bc1b4d5cd790077daf940a67703d5.zip
net-dns/dnsviz: fix tests
Closes: https://bugs.gentoo.org/766486 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--net-dns/dnsviz/dnsviz-0.9.1.ebuild26
1 files changed, 13 insertions, 13 deletions
diff --git a/net-dns/dnsviz/dnsviz-0.9.1.ebuild b/net-dns/dnsviz/dnsviz-0.9.1.ebuild
index a390da1b699..f4883add520 100644
--- a/net-dns/dnsviz/dnsviz-0.9.1.ebuild
+++ b/net-dns/dnsviz/dnsviz-0.9.1.ebuild
@@ -13,15 +13,16 @@ SRC_URI="https://github.com/dnsviz/dnsviz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
-DEPEND="
- >=dev-python/dnspython-1.13[${PYTHON_USEDEP}]
+BDEPEND="test? ( net-dns/bind )"
+
+DEPEND=">=dev-python/dnspython-1.13[${PYTHON_USEDEP}]
>=dev-python/m2crypto-0.37.0[${PYTHON_USEDEP}]
>=dev-python/pygraphviz-1.3.1[${PYTHON_USEDEP}]"
-RDEPEND="
- ${DEPEND}"
+RDEPEND="${DEPEND}"
python_prepare_all() {
# Fix the ebuild to use correct FHS/Gentoo policy paths
@@ -36,14 +37,13 @@ python_prepare_all() {
python_test() {
distutils_install_for_testing
- "${EPYTHON}" tests/offline_tests.py -v || die
-
- # No need to pull in net-dns/bind for this small test
- if hash named-checkconf &>/dev/null ; then
- "${EPYTHON}" tests/local_probe_tests.py -v || die
- else
- einfo "Skipping local_probe_tests -- named-checkconf not found!"
- fi
+ "${EPYTHON}" tests/dnsviz_probe_run_offline.py -v || die
+ "${EPYTHON}" tests/dnsviz_print_options.py -v || die
+ "${EPYTHON}" tests/dnsviz_print_run.py -v || die
+ "${EPYTHON}" tests/dnsviz_graph_options.py -v || die
+ "${EPYTHON}" tests/dnsviz_graph_run.py -v || die
+ "${EPYTHON}" tests/dnsviz_grok_options.py -v || die
+ "${EPYTHON}" tests/dnsviz_grok_run.py -v || die
}
pkg_postinst() {