[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-commits
Subject:    [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/
From:       "Conrad Kostecki" <conikost () gentoo ! org>
Date:       2022-10-31 23:46:36
Message-ID: 1667259480.b08539d63aee5ea7e018903a07998485b5717b50.conikost () gentoo
[Download RAW message or body]

commit:     b08539d63aee5ea7e018903a07998485b5717b50
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 31 23:38:00 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 23:38:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b08539d6

net-dns/ddclient: add tests

Adding tests and needed deps.

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 ...-3.10.0_rc2.ebuild => ddclient-3.10.0_rc2-r1.ebuild} | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild b/net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild
similarity index 85%
rename from net-dns/ddclient/ddclient-3.10.0_rc2.ebuild
rename to net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild
index f4d5478a2573..3d430b48e271 100644
--- a/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild
+++ b/net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild
@@ -15,8 +15,8 @@ S="${WORKDIR}/${PN}-${MY_PV}"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
 LICENSE="GPL-2+"
 SLOT="0"
-IUSE="examples selinux"
-RESTRICT="test"
+IUSE="examples selinux test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
 	acct-group/ddclient
@@ -30,14 +30,25 @@ RDEPEND="
 	selinux? ( sec-policy/selinux-ddclient )
 "
 
+BDEPEND="
+	test? (
+		dev-perl/HTTP-Daemon
+		dev-perl/HTTP-Daemon-SSL
+		dev-perl/Plack
+		dev-perl/Test-MockModule
+		dev-perl/Test-Warnings
+	)
+"
+
 src_prepare() {
 	default
 
 	# Remove PID setting, to reliably setup the environment for the init script
 	sed -e '/^pid/d' -i ddclient.conf.in || die
 
+	# Disable 'get_ip_from_if.pl' test, as it fails with network-sandbox
 	# Don't create cache directory, as it's created by init script / tmpfiles
-	sed -e '/MKDIR_P/d' -i Makefile.am || die
+	sed -e '/get_ip_from_if.pl/d' -e '/MKDIR_P/d' -i Makefile.am || die
 
 	# Remove windows executable
 	if use examples; then

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic