commit: 915a015cb2b38e40a06e9d5588270e94fa11f05e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Feb 22 12:01:33 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 22 12:31:21 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=915a015c
sys-apps/iproute2: wire up (restricted) tests Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/iproute2/iproute2-6.2.0.ebuild | 6 ++++++ sys-apps/iproute2/iproute2-9999.ebuild | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sys-apps/iproute2/iproute2-6.2.0.ebuild b/sys-apps/iproute2/iproute2-6.2.0.ebuild index 6c4318197517..831b5a3fbf14 100644 --- a/sys-apps/iproute2/iproute2-6.2.0.ebuild +++ b/sys-apps/iproute2/iproute2-6.2.0.ebuild @@ -19,6 +19,8 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iproute2" LICENSE="GPL-2" SLOT="0" IUSE="atm berkdb bpf caps elf +iptables libbsd minimal nfs selinux split-usr" +# Needs root +RESTRICT="test" # We could make libmnl optional, but it's tiny, so eh RDEPEND=" @@ -167,6 +169,10 @@ src_compile() { emake V=1 NETNS_RUN_DIR=/run/netns } +src_test() { + emake check +} + src_install() { if use minimal ; then into / diff --git a/sys-apps/iproute2/iproute2-9999.ebuild b/sys-apps/iproute2/iproute2-9999.ebuild index 46297152d6c6..831b5a3fbf14 100644 --- a/sys-apps/iproute2/iproute2-9999.ebuild +++ b/sys-apps/iproute2/iproute2-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,6 +19,8 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iproute2" LICENSE="GPL-2" SLOT="0" IUSE="atm berkdb bpf caps elf +iptables libbsd minimal nfs selinux split-usr" +# Needs root +RESTRICT="test" # We could make libmnl optional, but it's tiny, so eh RDEPEND=" @@ -167,6 +169,10 @@ src_compile() { emake V=1 NETNS_RUN_DIR=/run/netns } +src_test() { + emake check +} + src_install() { if use minimal ; then into /
