1 |
commit: 181fb059e9924236f81f552e49ef26d11e998509 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 1 20:25:54 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 1 20:26:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=181fb059 |
7 |
|
8 |
app-arch/upx: simplify testing |
9 |
|
10 |
- No need for IUSE=test & RESTRICT unless we're doing something conditionally |
11 |
like building tests. Running tests is always conditional on FEATURES=test. |
12 |
|
13 |
- Pass argument to cmake_src_test instead of calling ctest directly for -j1. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/878977 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
app-arch/upx/upx-4.0.0.ebuild | 6 +----- |
19 |
1 file changed, 1 insertion(+), 5 deletions(-) |
20 |
|
21 |
diff --git a/app-arch/upx/upx-4.0.0.ebuild b/app-arch/upx/upx-4.0.0.ebuild |
22 |
index 45118519051f..04a011030c35 100644 |
23 |
--- a/app-arch/upx/upx-4.0.0.ebuild |
24 |
+++ b/app-arch/upx/upx-4.0.0.ebuild |
25 |
@@ -13,15 +13,11 @@ S="${WORKDIR}/${P}-src" |
26 |
LICENSE="GPL-2+ UPX-exception" # Read the exception before applying any patches |
27 |
SLOT="0" |
28 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" |
29 |
-IUSE="test" |
30 |
- |
31 |
-RESTRICT="!test? ( test )" |
32 |
|
33 |
RDEPEND="!app-arch/upx-bin" |
34 |
BDEPEND="app-arch/xz-utils[extra-filters]" |
35 |
|
36 |
src_test() { |
37 |
# Don't run tests in parallel, #878977 |
38 |
- cd "${BUILD_DIR}" || die |
39 |
- ctest || die |
40 |
+ cmake_src_test -j1 |
41 |
} |