Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/
Date: Mon, 31 Oct 2022 23:46:39
Message-Id: 1667259480.b08539d63aee5ea7e018903a07998485b5717b50.conikost@gentoo
1 commit: b08539d63aee5ea7e018903a07998485b5717b50
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 31 23:38:00 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 23:38:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b08539d6
7
8 net-dns/ddclient: add tests
9
10 Adding tests and needed deps.
11
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 ...-3.10.0_rc2.ebuild => ddclient-3.10.0_rc2-r1.ebuild} | 17 ++++++++++++++---
15 1 file changed, 14 insertions(+), 3 deletions(-)
16
17 diff --git a/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild b/net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild
18 similarity index 85%
19 rename from net-dns/ddclient/ddclient-3.10.0_rc2.ebuild
20 rename to net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild
21 index f4d5478a2573..3d430b48e271 100644
22 --- a/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild
23 +++ b/net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild
24 @@ -15,8 +15,8 @@ S="${WORKDIR}/${PN}-${MY_PV}"
25 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
26 LICENSE="GPL-2+"
27 SLOT="0"
28 -IUSE="examples selinux"
29 -RESTRICT="test"
30 +IUSE="examples selinux test"
31 +RESTRICT="!test? ( test )"
32
33 RDEPEND="
34 acct-group/ddclient
35 @@ -30,14 +30,25 @@ RDEPEND="
36 selinux? ( sec-policy/selinux-ddclient )
37 "
38
39 +BDEPEND="
40 + test? (
41 + dev-perl/HTTP-Daemon
42 + dev-perl/HTTP-Daemon-SSL
43 + dev-perl/Plack
44 + dev-perl/Test-MockModule
45 + dev-perl/Test-Warnings
46 + )
47 +"
48 +
49 src_prepare() {
50 default
51
52 # Remove PID setting, to reliably setup the environment for the init script
53 sed -e '/^pid/d' -i ddclient.conf.in || die
54
55 + # Disable 'get_ip_from_if.pl' test, as it fails with network-sandbox
56 # Don't create cache directory, as it's created by init script / tmpfiles
57 - sed -e '/MKDIR_P/d' -i Makefile.am || die
58 + sed -e '/get_ip_from_if.pl/d' -e '/MKDIR_P/d' -i Makefile.am || die
59
60 # Remove windows executable
61 if use examples; then