From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1527206-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 1D70C15810F
	for <garchives@archives.gentoo.org>; Sat, 10 Jun 2023 09:12:34 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 12B5EE0928;
	Sat, 10 Jun 2023 09:12:33 +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 E88AAE0907
	for <gentoo-commits@lists.gentoo.org>; Sat, 10 Jun 2023 09:12:32 +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 A283E341153
	for <gentoo-commits@lists.gentoo.org>; Sat, 10 Jun 2023 09:12:31 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 02FEAA8E
	for <gentoo-commits@lists.gentoo.org>; Sat, 10 Jun 2023 09:12:30 +0000 (UTC)
From: "Sam James" <sam@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, "Sam James" <sam@gentoo.org>
Message-ID: <1686387126.0890fb435855f121706704fb56c40053c22dc075.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtraceevent/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild
X-VCS-Directories: dev-libs/libtraceevent/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 0890fb435855f121706704fb56c40053c22dc075
X-VCS-Branch: master
Date: Sat, 10 Jun 2023 09:12:30 +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: a9d90f30-3cca-45ff-937c-4dff87413810
X-Archives-Hash: 27a23fea8fb6134bcad26cc89f94f2f2

commit:     0890fb435855f121706704fb56c40053c22dc075
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 08:47:34 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 08:52:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0890fb43

dev-libs/libtraceevent: fix tests

Depend on cunit for tests and pass the emake args consistently.

Closes: https://bugs.gentoo.org/852689
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild b/dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild
index a572e944cacb..7e83bab0bd27 100644
--- a/dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild
+++ b/dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild
@@ -18,13 +18,18 @@ fi
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-IUSE="doc"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
 	!<dev-util/trace-cmd-3.0
 "
 BDEPEND="
-	doc? ( app-text/xmlto app-text/asciidoc )
+	doc? (
+		app-text/asciidoc
+		app-text/xmlto
+	)
+	test? ( dev-util/cunit )
 "
 
 src_configure() {
@@ -39,7 +44,11 @@ src_configure() {
 
 src_compile() {
 	emake "${EMAKE_FLAGS[@]}"
-	use doc && emake doc
+	use doc && emake "${EMAKE_FLAGS[@]}" doc
+}
+
+src_test() {
+	emake "${EMAKE_FLAGS[@]}" test
 }
 
 src_install() {