public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openjpeg/
Date: Tue, 12 Jul 2022 06:56:37 +0000 (UTC)	[thread overview]
Message-ID: <1657608986.6a37ee83a847c9e108e140c1445dc261d5e3253a.sam@gentoo> (raw)

commit:     6a37ee83a847c9e108e140c1445dc261d5e3253a
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Thu Jul  7 08:27:21 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 06:56:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a37ee83

media-libs/openjpeg: rework testing phase

Instead of running all the test, and filtering for failures, collect the
names of all known failures and skip them.

Closes: https://bugs.gentoo.org/856505
Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Closes: https://github.com/gentoo/gentoo/pull/26256
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild | 63 ++++++----------------------
 1 file changed, 12 insertions(+), 51 deletions(-)

diff --git a/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild b/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild
index b7f5f6918adf..d4f51290425f 100644
--- a/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild
+++ b/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild
@@ -74,67 +74,28 @@ multilib_src_test() {
 		return 0
 	fi
 
-	local myctestargs=
-
 	pushd "${BUILD_DIR}" > /dev/null || die
 	[[ -e CTestTestfile.cmake ]] || die "Test suite not available! Check source!"
 
-	if [[ -n ${TEST_VERBOSE} ]]; then
-		myctestargs+=( --extra-verbose --output-on-failure )
-	fi
-
-	echo ctest "${myctestargs[@]}"
-	if ctest "${myctestargs[@]}" ; then
-		popd > /dev/null || die
-		einfo "Tests succeeded."
-		return 0
-	fi
-
-	local FAILEDTEST_LOG="${BUILD_DIR}/Testing/Temporary/LastTestsFailed.log"
-
-	# Should never happen
-	[[ -f "${FAILEDTEST_LOG}" ]] || die "Cannot analyze test failures: LastTestsFailed.log is missing!"
-
-	elog
 	elog "Note: Upstream maintains a list of known test failures."
-	elog "We will now compare our test results against this list and remove any known failures."
+	elog "We collect all the known failures and skip them."
 	elog
 
-	local KNOWN_FAILURES_LIST="${T}/known_failures_compiled.txt"
-	cp "${S}/tools/travis-ci/knownfailures-all.txt" "${KNOWN_FAILURES_LIST}" || die
-
-	local ARCH_SPECIFIC_FAILURES=
+	local toskip=( "${S}"/tools/travis-ci/knownfailures-all.txt )
 	if use amd64 ; then
-		ARCH_SPECIFIC_FAILURES="$(find "${S}/tools/travis-ci/" -name 'knownfailures-*x86_64*.txt' -print0 | sort -z | tail -z -n 1 | tr -d '\0')"
+		toskip+=( "${S}"/tools/travis-ci/knownfailures-*x86_64*.txt )
 	elif use x86 || use arm || use arm64; then
-		ARCH_SPECIFIC_FAILURES="$(find "${S}/tools/travis-ci/" -name 'knownfailures-*i386*.txt' -print0 | sort -z | tail -z -n 1 | tr -d '\0')"
-	fi
-
-	if [[ -f "${ARCH_SPECIFIC_FAILURES}" ]]; then
-		elog "Adding architecture specific failures (${ARCH_SPECIFIC_FAILURES}) to known failures list ..."
-		elog
-		<"${ARCH_SPECIFIC_FAILURES}" >> "${KNOWN_FAILURES_LIST}" || die
+		toskip+=( "${S}"/tools/travis-ci/knownfailures-*i386*.txt )
 	fi
 
-	# Logic copied from $S/tools/travis-ci/run.sh
-	local FAILEDTEST=
-	local HAS_UNKNOWN_TEST_FAILURES=0
-
-	while read FAILEDTEST; do
-		# is this failure known?
-		if grep -xq "${FAILEDTEST}" "${KNOWN_FAILURES_LIST}" ; then
-			elog "Test '${FAILEDTEST}' is known to fail, ignoring ..."
-		else
-			eerror "New/unknown test failure found: '${FAILEDTEST}'"
-			HAS_UNKNOWN_TEST_FAILURES=1
-		fi
-	done < <(awk -F: '{ print $2 }' "${FAILEDTEST_LOG}")
-
-	[[ ${HAS_UNKNOWN_TEST_FAILURES} -eq 0 ]] || die "Test suite failed. New/unknown test failure(s) found!"
+	local exp=$(sort "${toskip[@]}" | uniq | tr '\n' '|'; assert)
+	popd > /dev/null || die
 
-	elog
-	elog "Test suite passed. No new/unknown test failure(s) found!"
+	local myctestargs=()
+	if [[ -n ${TEST_VERBOSE} ]]; then
+		myctestargs+=( --extra-verbose --output-on-failure )
+	fi
+	myctestargs+=( -E "(${exp::-1})" )
 
-	popd > /dev/null || die
-	return 0
+	cmake_src_test
 }


             reply	other threads:[~2022-07-12  6:56 UTC|newest]

Thread overview: 134+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12  6:56 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-08 11:07 [gentoo-commits] repo/gentoo:master commit in: media-libs/openjpeg/ Sam James
2024-09-24 15:03 Arthur Zamarin
2024-09-23  8:18 Arthur Zamarin
2024-09-23  7:13 Arthur Zamarin
2024-09-23  0:32 Sam James
2024-09-23  0:32 Sam James
2024-03-14  5:03 Sam James
2024-03-10 14:47 Sam James
2024-03-09 11:53 Yixun Lan
2023-12-23 20:00 Arthur Zamarin
2023-12-19 17:01 Arthur Zamarin
2023-12-18  7:10 Joonas Niilola
2023-12-18  4:51 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-07-11 18:43 Matt Turner
2023-04-13 10:52 David Seifert
2022-07-06  6:58 Arthur Zamarin
2022-07-05  8:05 Sam James
2022-07-05  7:09 Joonas Niilola
2022-07-05  6:04 Agostino Sarubbo
2022-07-05  6:04 Agostino Sarubbo
2022-07-05  6:02 Agostino Sarubbo
2022-07-05  0:01 Sam James
2022-07-04 11:39 Joonas Niilola
2022-07-04 11:20 Agostino Sarubbo
2022-05-13 12:19 WANG Xuerui
2022-04-18 21:01 Sam James
2022-04-07  3:37 Sam James
2021-10-15 10:22 Joonas Niilola
2021-09-20 14:09 James Le Cuirot
2021-02-11  8:14 Sam James
2021-01-23 18:13 Andreas Sturmlechner
2021-01-17 11:41 Sergei Trofimovich
2021-01-10  9:35 Sam James
2021-01-07 10:42 Sam James
2021-01-07  2:35 Sam James
2021-01-07  1:10 Sam James
2021-01-06 14:27 Fabian Groffen
2021-01-06  6:37 Sam James
2021-01-06  6:34 Sam James
2021-01-06  3:10 Sam James
2020-03-31 18:40 Thomas Deutschmann
2020-03-31 17:58 Thomas Deutschmann
2020-03-30 13:36 Agostino Sarubbo
2020-03-29 11:18 Mart Raudsepp
2020-03-26 18:01 Sergei Trofimovich
2020-03-26 12:04 Agostino Sarubbo
2020-03-26 10:24 Agostino Sarubbo
2020-03-26 10:22 Agostino Sarubbo
2020-03-26 10:21 Agostino Sarubbo
2020-03-26 10:20 Agostino Sarubbo
2020-03-26 10:17 Agostino Sarubbo
2019-08-11 21:55 Aaron Bauman
2019-07-05 15:43 Sergei Trofimovich
2019-06-14  9:00 Agostino Sarubbo
2019-06-13 14:52 Agostino Sarubbo
2019-06-13 14:31 Agostino Sarubbo
2019-06-13 14:19 Agostino Sarubbo
2019-06-13 14:17 Agostino Sarubbo
2019-06-13 14:12 Agostino Sarubbo
2019-06-13  4:28 Markus Meier
2019-06-11 22:15 Sergei Trofimovich
2019-06-11  2:23 Aaron Bauman
2019-06-10 19:50 Thomas Deutschmann
2019-04-11 11:40 Lars Wendler
2019-01-29 11:54 Mikle Kolyada
2019-01-17 23:15 Sergei Trofimovich
2019-01-04  0:46 Mart Raudsepp
2019-01-02 12:18 Markus Meier
2018-12-30 22:16 Matt Turner
2018-12-28  8:14 Mikle Kolyada
2018-12-27 18:48 Fabian Groffen
2018-12-26 17:23 Matt Turner
2018-12-26 11:46 Sergei Trofimovich
2018-12-25 11:11 Sergei Trofimovich
2018-12-20  1:30 Thomas Deutschmann
2018-12-20  1:10 Thomas Deutschmann
2018-11-03 21:46 Andreas Sturmlechner
2018-10-11 18:35 Andreas Sturmlechner
2018-10-11 18:35 Andreas Sturmlechner
2018-09-15  2:31 Andreas Sturmlechner
2018-09-14  8:28 Tobias Klausmann
2018-09-08 12:53 Mart Raudsepp
2018-09-03 17:40 Markus Meier
2018-09-01 23:26 Sergei Trofimovich
2018-09-01 23:22 Sergei Trofimovich
2018-09-01 23:18 Sergei Trofimovich
2018-08-30  8:48 Mikle Kolyada
2018-08-30  6:16 Sergei Trofimovich
2018-08-29  1:07 Thomas Deutschmann
2018-08-27 20:15 Sergei Trofimovich
2018-08-18 14:34 Andreas Sturmlechner
2018-06-22  9:56 Mikle Kolyada
2018-03-28 20:59 Sebastian Pipping
2018-03-23 23:42 Aaron Bauman
2018-03-03 12:29 Mart Raudsepp
2017-10-24 18:59 Sergei Trofimovich
2017-10-21 13:25 Tobias Klausmann
2017-10-14  6:19 Markus Meier
2017-10-13  9:09 Sergei Trofimovich
2017-10-13  0:13 Sergei Trofimovich
2017-10-12 21:19 Thomas Deutschmann
2017-10-11 17:59 Manuel Rüger
2017-10-10 23:04 Sergei Trofimovich
2017-10-05 10:44 Lars Wendler
2017-09-25  8:12 Sergei Trofimovich
2017-08-31 15:18 Matt Turner
2017-08-25 21:46 Mikle Kolyada
2017-08-25  4:44 Markus Meier
2017-08-21 17:31 Austin English
2017-08-20 20:20 Sergei Trofimovich
2017-08-20 19:16 Thomas Deutschmann
2017-08-10 15:28 Thomas Deutschmann
2017-03-28 22:29 Michael Weber
2017-01-29 19:15 Fabian Groffen
2016-12-11 19:21 Michał Górny
2016-12-07 23:12 Thomas Deutschmann
2016-09-29 13:28 Agostino Sarubbo
2016-09-29 13:14 Agostino Sarubbo
2016-09-29 12:35 Agostino Sarubbo
2016-09-29  9:41 Agostino Sarubbo
2016-09-28 20:39 Thomas Deutschmann
2016-09-27  8:24 Tobias Klausmann
2016-09-27  4:21 Jeroen Roovers
2016-09-26 18:58 Agostino Sarubbo
2016-09-26 18:56 Agostino Sarubbo
2016-09-26 18:38 Thomas Deutschmann
2016-09-26 14:07 Thomas Deutschmann
2015-11-20  1:23 Mike Frysinger
2015-09-01 19:55 Tobias Klausmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1657608986.6a37ee83a847c9e108e140c1445dc261d5e3253a.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox