dev-perl/AnyEvent-CacheDNS: Disable tests without explict network grants.
authorKent Fredric <kentfredric@gmail.com>
Sun, 8 May 2016 11:11:46 +0000 (23:11 +1200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 21 May 2016 00:11:08 +0000 (02:11 +0200)
Testing does DNS lookups, which fail under network-sandboxing.

Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"

dev-perl/AnyEvent-CacheDNS/AnyEvent-CacheDNS-0.80.0.ebuild

index e97462d66d54e34ddb0a5f0b88829a1b2444020c..8fb37bc3dccf673907f3bb163fa68fa192cdc675 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -22,3 +22,11 @@ DEPEND="${RDEPEND}
        >=dev-perl/Module-Build-0.400.0
        test? ( virtual/perl-Test-Simple )
 "
+src_test() {
+       local my_test_control=${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}
+       if has network ${my_test_control}; then
+               perl-module_src_test
+       else
+               einfo "Tests skipped without DIST_TEST_OVERRIDE =~ network: Fails under network sandboxing"
+       fi
+}