commit: 07cd94cfc7eaf66924f9255a70682940c2f06780
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 22 12:56:40 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Aug 22 13:41:32 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07cd94cf
net-dns/dnsviz: add tests
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
net-dns/dnsviz/dnsviz-0.8.2-r1.ebuild | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/net-dns/dnsviz/dnsviz-0.8.2-r1.ebuild
b/net-dns/dnsviz/dnsviz-0.8.2-r1.ebuild
index c2613635b24..aaee35f2902 100644
--- a/net-dns/dnsviz/dnsviz-0.8.2-r1.ebuild
+++ b/net-dns/dnsviz/dnsviz-0.8.2-r1.ebuild
@@ -35,6 +35,19 @@ python_prepare_all() {
distutils-r1_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
+}
+
pkg_postinst() {
elog "Support for extra feature can be get from:"
optfeature "Support for pre-deployment testing" net-dns/bind