Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
Date: Fri, 30 Dec 2022 16:26:59
Message-Id: 1672417528.3750544f26a7427b92b102c1cd2253b2c66cee81.ionen@gentoo
1 commit: 3750544f26a7427b92b102c1cd2253b2c66cee81
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 15:46:06 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 16:25:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3750544f
7
8 media-video/mpv: skip img_format and repack_sws test
9
10 This seems to be mostly inconsistencies than actual issues.
11 Thanks to ernsteiswuerfel for verifying runtime is fine on
12 real hardware.
13
14 Tried with ppc64 qemu and the other tests don't fail.
15
16 Closes: https://bugs.gentoo.org/888639
17 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
18
19 media-video/mpv/mpv-0.35.0-r1.ebuild | 17 ++++++++++++++++-
20 media-video/mpv/mpv-9999.ebuild | 17 ++++++++++++++++-
21 2 files changed, 32 insertions(+), 2 deletions(-)
22
23 diff --git a/media-video/mpv/mpv-0.35.0-r1.ebuild b/media-video/mpv/mpv-0.35.0-r1.ebuild
24 index 2fb3855a1bfd..d979c38b602c 100644
25 --- a/media-video/mpv/mpv-0.35.0-r1.ebuild
26 +++ b/media-video/mpv/mpv-0.35.0-r1.ebuild
27 @@ -250,7 +250,22 @@ src_configure() {
28
29 src_test() {
30 # https://github.com/mpv-player/mpv/blob/master/DOCS/man/options.rst#debugging
31 - edo "${BUILD_DIR}"/mpv --no-config -v --unittest=all-simple
32 + local tests=($("${BUILD_DIR}"/mpv --no-config --unittest=help | tail -n +2; assert))
33 + (( ${#tests[@]} )) || die "failed to gather any tests"
34 +
35 + local skip=(
36 + all-simple
37 +
38 + # fails on non-issue minor inconsistencies (bug #888639)
39 + img_format
40 + repack_sws
41 + )
42 +
43 + local test
44 + for test in "${tests[@]}"; do
45 + [[ ${test} == @($(IFS='|'; echo "${skip[*]}")) ]] ||
46 + edo "${BUILD_DIR}"/mpv -v --no-config --unittest="${test}"
47 + done
48 }
49
50 src_install() {
51
52 diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild
53 index a7b00cd2fc59..0f9e5d85df07 100644
54 --- a/media-video/mpv/mpv-9999.ebuild
55 +++ b/media-video/mpv/mpv-9999.ebuild
56 @@ -250,7 +250,22 @@ src_configure() {
57
58 src_test() {
59 # https://github.com/mpv-player/mpv/blob/master/DOCS/man/options.rst#debugging
60 - edo "${BUILD_DIR}"/mpv --no-config -v --unittest=all-simple
61 + local tests=($("${BUILD_DIR}"/mpv --no-config --unittest=help | tail -n +2; assert))
62 + (( ${#tests[@]} )) || die "failed to gather any tests"
63 +
64 + local skip=(
65 + all-simple
66 +
67 + # fails on non-issue minor inconsistencies (bug #888639)
68 + img_format
69 + repack_sws
70 + )
71 +
72 + local test
73 + for test in "${tests[@]}"; do
74 + [[ ${test} == @($(IFS='|'; echo "${skip[*]}")) ]] ||
75 + edo "${BUILD_DIR}"/mpv -v --no-config --unittest="${test}"
76 + done
77 }
78
79 src_install() {