diff options
author | Sam James <sam@gentoo.org> | 2022-05-17 05:32:40 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-05-17 05:34:04 +0000 |
commit | 9f97d3deaba5185297268d07f28f05e06bb4085b (patch) | |
tree | 97b7caaec548dec56117e59b460a8db12bba3830 /media-libs/libaom | |
parent | sys-auth/elogind: conditionally build tests (diff) | |
download | gentoo-9f97d3deaba5185297268d07f28f05e06bb4085b.tar.gz gentoo-9f97d3deaba5185297268d07f28f05e06bb4085b.tar.bz2 gentoo-9f97d3deaba5185297268d07f28f05e06bb4085b.zip |
media-libs/libaom: partially wire up tests
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libaom')
-rw-r--r-- | media-libs/libaom/libaom-3.3.0.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/media-libs/libaom/libaom-3.3.0.ebuild b/media-libs/libaom/libaom-3.3.0.ebuild index e23ac9e6a952..8b1b5dafce17 100644 --- a/media-libs/libaom/libaom-3.3.0.ebuild +++ b/media-libs/libaom/libaom-3.3.0.ebuild @@ -19,10 +19,12 @@ HOMEPAGE="https://aomedia.org https://aomedia.googlesource.com/aom/" LICENSE="BSD-2" SLOT="0/3" -IUSE="doc +examples" +IUSE="doc +examples test" IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3" IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2" IUSE="${IUSE} cpu_flags_arm_neon" +# Tests need more wiring up +RESTRICT="!test? ( test ) test" REQUIRED_USE=" cpu_flags_x86_sse2? ( cpu_flags_x86_mmx ) @@ -45,7 +47,7 @@ multilib_src_configure() { -DENABLE_DOCS=$(multilib_native_usex doc ON OFF) -DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF) -DENABLE_NASM=OFF - -DENABLE_TESTS=OFF + -DENABLE_TESTS=$(usex test) -DENABLE_TOOLS=ON -DENABLE_WERROR=OFF @@ -89,6 +91,10 @@ multilib_src_configure() { cmake_src_configure } +multilib_src_test() { + "${BUILD_DIR}"/test_libaom || die +} + multilib_src_install() { if multilib_is_native_abi && use doc ; then local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) |