commit:     181fb059e9924236f81f552e49ef26d11e998509
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  1 20:25:54 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  1 20:26:36 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=181fb059

app-arch/upx: simplify testing

- No need for IUSE=test & RESTRICT unless we're doing something conditionally
like building tests. Running tests is always conditional on FEATURES=test.

- Pass argument to cmake_src_test instead of calling ctest directly for -j1.

Bug: https://bugs.gentoo.org/878977
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/upx/upx-4.0.0.ebuild | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/app-arch/upx/upx-4.0.0.ebuild b/app-arch/upx/upx-4.0.0.ebuild
index 45118519051f..04a011030c35 100644
--- a/app-arch/upx/upx-4.0.0.ebuild
+++ b/app-arch/upx/upx-4.0.0.ebuild
@@ -13,15 +13,11 @@ S="${WORKDIR}/${P}-src"
 LICENSE="GPL-2+ UPX-exception" # Read the exception before applying any patches
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-
-RESTRICT="!test? ( test )"
 
 RDEPEND="!app-arch/upx-bin"
 BDEPEND="app-arch/xz-utils[extra-filters]"
 
 src_test() {
        # Don't run tests in parallel, #878977
-       cd "${BUILD_DIR}" || die
-       ctest || die
+       cmake_src_test -j1
 }

Reply via email to