From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1642480-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id DCE9F15817D
	for <garchives@archives.gentoo.org>; Fri, 14 Jun 2024 07:27:26 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BD1C8E2BA2;
	Fri, 14 Jun 2024 07:27:25 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 75AAEE2BA1
	for <gentoo-commits@lists.gentoo.org>; Fri, 14 Jun 2024 07:27:25 +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 750FA33BF29
	for <gentoo-commits@lists.gentoo.org>; Fri, 14 Jun 2024 07:27:24 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id AB89311DF
	for <gentoo-commits@lists.gentoo.org>; Fri, 14 Jun 2024 07:27:22 +0000 (UTC)
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" <xgqt@gentoo.org>
Message-ID: <1718350039.d8cfb771b47bd0a18c0772d6c950726e473e458f.xgqt@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/polychromatic/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/polychromatic/polychromatic-0.9.1.ebuild sys-apps/polychromatic/polychromatic-9999.ebuild
X-VCS-Directories: sys-apps/polychromatic/
X-VCS-Committer: xgqt
X-VCS-Committer-Name: Maciej Barć
X-VCS-Revision: d8cfb771b47bd0a18c0772d6c950726e473e458f
X-VCS-Branch: master
Date: Fri, 14 Jun 2024 07:27:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b2268735-2c77-4cef-9aa4-4d6c48b714e0
X-Archives-Hash: 48f2c7c7fea2337d5fd6c7c5bb13fd6b

commit:     d8cfb771b47bd0a18c0772d6c950726e473e458f
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Fri Jun 14 00:14:35 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Jun 14 07:27:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8cfb771

sys-apps/polychromatic: wire up tests

Bug: https://bugs.gentoo.org/933050
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/37151
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 sys-apps/polychromatic/polychromatic-0.9.1.ebuild | 6 ++++++
 sys-apps/polychromatic/polychromatic-9999.ebuild  | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/sys-apps/polychromatic/polychromatic-0.9.1.ebuild b/sys-apps/polychromatic/polychromatic-0.9.1.ebuild
index 19e9c50db521..17566f06c680 100644
--- a/sys-apps/polychromatic/polychromatic-0.9.1.ebuild
+++ b/sys-apps/polychromatic/polychromatic-0.9.1.ebuild
@@ -51,6 +51,12 @@ DOC_CONTENTS="To automatically start up Polychromatic on session login copy
 /usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's
 ~/.config/autostart/ directory."
 
+src_test() {
+	rm -rf "locale" || die
+	ln -svf "${BUILD_DIR}/locale" "locale" || die
+	PYTHONPATH="tests:${PYTHONPATH}" "${EPYTHON}" "tests/runner.py" || die
+}
+
 src_install() {
 	meson_src_install
 	python_optimize

diff --git a/sys-apps/polychromatic/polychromatic-9999.ebuild b/sys-apps/polychromatic/polychromatic-9999.ebuild
index 19e9c50db521..17566f06c680 100644
--- a/sys-apps/polychromatic/polychromatic-9999.ebuild
+++ b/sys-apps/polychromatic/polychromatic-9999.ebuild
@@ -51,6 +51,12 @@ DOC_CONTENTS="To automatically start up Polychromatic on session login copy
 /usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's
 ~/.config/autostart/ directory."
 
+src_test() {
+	rm -rf "locale" || die
+	ln -svf "${BUILD_DIR}/locale" "locale" || die
+	PYTHONPATH="tests:${PYTHONPATH}" "${EPYTHON}" "tests/runner.py" || die
+}
+
 src_install() {
 	meson_src_install
 	python_optimize