app-arch/rpm: Add src_test
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 6 Jun 2018 21:41:04 +0000 (23:41 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 6 Jun 2018 21:41:25 +0000 (23:41 +0200)
Closes: https://bugs.gentoo.org/657488
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-arch/rpm/rpm-4.14.1.ebuild
profiles/arch/alpha/package.use.mask
profiles/arch/arm/package.use.mask
profiles/arch/arm64/package.use.mask
profiles/arch/ia64/package.use.mask

index 1fc3b937c5bebed4f5c8cb9e34cdbbb3e98d9bfd..00c3cbeb2eb4e79cc50d5e2cf3356c33b53366db 100644 (file)
@@ -16,7 +16,7 @@ LICENSE="GPL-2 LGPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
 
-IUSE="acl caps doc lua nls python selinux"
+IUSE="acl caps doc lua nls python selinux test"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 CDEPEND="!app-arch/rpm5
@@ -40,6 +40,7 @@ DEPEND="${CDEPEND}
        nls? ( sys-devel/gettext )
        doc? ( app-doc/doxygen )
        virtual/pkgconfig
+       test? ( sys-apps/fakechroot )
 "
 RDEPEND="${CDEPEND}
        selinux? ( sec-policy/selinux-rpm )
@@ -106,6 +107,10 @@ src_install() {
        perl_delete_localpod
 }
 
+src_test() {
+       emake check
+}
+
 pkg_postinst() {
        if [[ -f "${EROOT}"/var/lib/rpm/Packages ]] ; then
                einfo "RPM database found... Rebuilding database (may take a while)..."
index 5e27b1349ab6a8f2154f7c12343995c4b0c90764..9dc1afa265449d4bee5e050e179b3e853e424d71 100644 (file)
@@ -1,6 +1,10 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+# Thomas Deutschmann <whissi@gentoo.org> (06 Jun 2018)
+# Needs sys-apps/fakechroot which isn't keyworded
+app-arch/rpm test
+
 # Tomáš Mózes <hydrapolic@gmail.com> (05 Jun 2018)
 # Unkeyworded dependencies.
 app-admin/syslog-ng amqp mongodb
index 975f98ca998e628a45bd654c769916addd6a24ea..a8638afdd530d6491a96db1040824bf20039b311 100644 (file)
@@ -1,6 +1,10 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+# Thomas Deutschmann <whissi@gentoo.org> (06 Jun 2018)
+# Needs sys-apps/fakechroot which isn't keyworded
+app-arch/rpm test
+
 # Andreas Sturmlechner <asturm@gentoo.org> (03 Jun 2018)
 # net-wireless/soapysdr not keyworded
 net-wireless/gr-osmosdr soapy
index ee9cb80813eff5ce5970015f19f4f8c84d7485ab..c859a1044c816d795b69e41a3b8ef8f935aa7868 100644 (file)
@@ -1,6 +1,10 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+# Thomas Deutschmann <whissi@gentoo.org> (06 Jun 2018)
+# Needs sys-apps/fakechroot which isn't keyworded
+app-arch/rpm test
+
 # Alex Bennee <alex@bennee.com> (31 May 2018)
 # bunch of dev-perl packages not yet keyworded
 # and the i3 ebuild currently has RESTRICT="test" due to upstream bug
index d38ac61fcce93714754ced9d3550f7335550b622..acf5931ca845a3c53cc4ee87909e7fb931563311 100644 (file)
@@ -1,6 +1,10 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+# Thomas Deutschmann <whissi@gentoo.org> (06 Jun 2018)
+# Needs sys-apps/fakechroot which isn't keyworded
+app-arch/rpm test
+
 # Michał Górny <mgorny@gentoo.org> (15 Apr 2018)
 # Unkeyworded deps.
 net-misc/curl curl_ssl_axtls