summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-11-01 00:38:00 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-11-01 00:38:00 +0100
commitb08539d63aee5ea7e018903a07998485b5717b50 (patch)
tree306045330f8d4828a77d53ccb3943653cf5e4434
parentapp-arch/upx-bin: drop 3.96 (diff)
downloadgentoo-b08539d63aee5ea7e018903a07998485b5717b50.tar.gz
gentoo-b08539d63aee5ea7e018903a07998485b5717b50.tar.bz2
gentoo-b08539d63aee5ea7e018903a07998485b5717b50.zip
net-dns/ddclient: add tests
Adding tests and needed deps. Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--net-dns/ddclient/ddclient-3.10.0_rc2-r1.ebuild (renamed from net-dns/ddclient/ddclient-3.10.0_rc2.ebuild)17
1 files 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
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