1 |
commit: 9f97d3deaba5185297268d07f28f05e06bb4085b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 05:32:40 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 05:34:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f97d3de |
7 |
|
8 |
media-libs/libaom: partially wire up tests |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-libs/libaom/libaom-3.3.0.ebuild | 10 ++++++++-- |
13 |
1 file changed, 8 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/media-libs/libaom/libaom-3.3.0.ebuild b/media-libs/libaom/libaom-3.3.0.ebuild |
16 |
index e23ac9e6a952..8b1b5dafce17 100644 |
17 |
--- a/media-libs/libaom/libaom-3.3.0.ebuild |
18 |
+++ b/media-libs/libaom/libaom-3.3.0.ebuild |
19 |
@@ -19,10 +19,12 @@ HOMEPAGE="https://aomedia.org https://aomedia.googlesource.com/aom/" |
20 |
|
21 |
LICENSE="BSD-2" |
22 |
SLOT="0/3" |
23 |
-IUSE="doc +examples" |
24 |
+IUSE="doc +examples test" |
25 |
IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3" |
26 |
IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2" |
27 |
IUSE="${IUSE} cpu_flags_arm_neon" |
28 |
+# Tests need more wiring up |
29 |
+RESTRICT="!test? ( test ) test" |
30 |
|
31 |
REQUIRED_USE=" |
32 |
cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) |
33 |
@@ -45,7 +47,7 @@ multilib_src_configure() { |
34 |
-DENABLE_DOCS=$(multilib_native_usex doc ON OFF) |
35 |
-DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF) |
36 |
-DENABLE_NASM=OFF |
37 |
- -DENABLE_TESTS=OFF |
38 |
+ -DENABLE_TESTS=$(usex test) |
39 |
-DENABLE_TOOLS=ON |
40 |
-DENABLE_WERROR=OFF |
41 |
|
42 |
@@ -89,6 +91,10 @@ multilib_src_configure() { |
43 |
cmake_src_configure |
44 |
} |
45 |
|
46 |
+multilib_src_test() { |
47 |
+ "${BUILD_DIR}"/test_libaom || die |
48 |
+} |
49 |
+ |
50 |
multilib_src_install() { |
51 |
if multilib_is_native_abi && use doc ; then |
52 |
local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) |