From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B007F1581EE for ; Thu, 27 Mar 2025 17:11:43 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9871F34310B for ; Thu, 27 Mar 2025 17:11:43 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C05B61104AE; Thu, 27 Mar 2025 17:11:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id B72181104AE for ; Thu, 27 Mar 2025 17:11:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 700CC3431B5 for ; Thu, 27 Mar 2025 17:11:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CBCB9236F for ; Thu, 27 Mar 2025 17:11:37 +0000 (UTC) From: "Jakov Smolić" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jakov Smolić" Message-ID: <1743095428.c1b7bd031cd3da894c3adf5bf70536383fd08439.jsmolic@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libyuv/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libyuv/libyuv-1904.ebuild media-libs/libyuv/libyuv-9999.ebuild X-VCS-Directories: media-libs/libyuv/ X-VCS-Committer: jsmolic X-VCS-Committer-Name: Jakov Smolić X-VCS-Revision: c1b7bd031cd3da894c3adf5bf70536383fd08439 X-VCS-Branch: master Date: Thu, 27 Mar 2025 17:11:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 41f75bd7-2e7e-4307-85dc-58ebfe11857b X-Archives-Hash: 9111a1efba1a31b56392aef5094b947f commit: c1b7bd031cd3da894c3adf5bf70536383fd08439 Author: Jakov Smolić gentoo org> AuthorDate: Wed Mar 26 21:22:51 2025 +0000 Commit: Jakov Smolić gentoo org> CommitDate: Thu Mar 27 17:10:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1b7bd03 media-libs/libyuv: Enable tests Bug: https://bugs.gentoo.org/952112 Signed-off-by: Jakov Smolić gentoo.org> media-libs/libyuv/libyuv-1904.ebuild | 15 ++++++++++----- media-libs/libyuv/libyuv-9999.ebuild | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/media-libs/libyuv/libyuv-1904.ebuild b/media-libs/libyuv/libyuv-1904.ebuild index b4210853ab36..c1e85a7e35df 100644 --- a/media-libs/libyuv/libyuv-1904.ebuild +++ b/media-libs/libyuv/libyuv-1904.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake edo DESCRIPTION="Open source project that includes YUV scaling and conversion functionality." HOMEPAGE="https://chromium.googlesource.com/libyuv/libyuv" @@ -22,11 +22,12 @@ fi LICENSE="BSD" SLOT="0/${PV}" -# TODO(NRK): enable tests -RESTRICT="test" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=">=media-libs/libjpeg-turbo-3.0.0" -BDEPEND="${RDEPEND}" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-cpp/gtest )" PATCHES=( "${FILESDIR}/0001-fix-install-dirs.patch" @@ -36,7 +37,11 @@ PATCHES=( src_configure() { mycmakeargs=( - -DUNIT_TEST=OFF + -DUNIT_TEST=$(usex test) ) cmake_src_configure } + +src_test() { + edo "${BUILD_DIR}"/libyuv_unittest +} diff --git a/media-libs/libyuv/libyuv-9999.ebuild b/media-libs/libyuv/libyuv-9999.ebuild index b4210853ab36..c1e85a7e35df 100644 --- a/media-libs/libyuv/libyuv-9999.ebuild +++ b/media-libs/libyuv/libyuv-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake edo DESCRIPTION="Open source project that includes YUV scaling and conversion functionality." HOMEPAGE="https://chromium.googlesource.com/libyuv/libyuv" @@ -22,11 +22,12 @@ fi LICENSE="BSD" SLOT="0/${PV}" -# TODO(NRK): enable tests -RESTRICT="test" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=">=media-libs/libjpeg-turbo-3.0.0" -BDEPEND="${RDEPEND}" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-cpp/gtest )" PATCHES=( "${FILESDIR}/0001-fix-install-dirs.patch" @@ -36,7 +37,11 @@ PATCHES=( src_configure() { mycmakeargs=( - -DUNIT_TEST=OFF + -DUNIT_TEST=$(usex test) ) cmake_src_configure } + +src_test() { + edo "${BUILD_DIR}"/libyuv_unittest +}