From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 986FD158020 for ; Mon, 5 Dec 2022 18:29:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3737E0894; Mon, 5 Dec 2022 18:29:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id AD76BE0894 for ; Mon, 5 Dec 2022 18:29:58 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C835A3410E8 for ; Mon, 5 Dec 2022 18:29:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E60B6F2 for ; Mon, 5 Dec 2022 18:29:56 +0000 (UTC) From: "Yuan Liao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yuan Liao" Message-ID: <1670263265.b010132352bb0f511b673b208ce080af29023b9a.liaoyuan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/dosbox-x/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild games-emulation/dosbox-x/dosbox-x-9999.ebuild X-VCS-Directories: games-emulation/dosbox-x/ X-VCS-Committer: liaoyuan X-VCS-Committer-Name: Yuan Liao X-VCS-Revision: b010132352bb0f511b673b208ce080af29023b9a X-VCS-Branch: dev Date: Mon, 5 Dec 2022 18:29:56 +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: 46a7bdb4-05f6-4cd6-9730-9d5aef5543e0 X-Archives-Hash: b5f0854762a026418aeb37b92e56d289 commit: b010132352bb0f511b673b208ce080af29023b9a Author: Yuan Liao gmail com> AuthorDate: Mon Dec 5 18:01:05 2022 +0000 Commit: Yuan Liao gmail com> CommitDate: Mon Dec 5 18:01:05 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b0101323 games-emulation/dosbox-x: Enable unit tests Signed-off-by: Yuan Liao gmail.com> games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild | 8 ++++++++ games-emulation/dosbox-x/dosbox-x-9999.ebuild | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild b/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild index 55b6b1acc..396f0023f 100644 --- a/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild +++ b/games-emulation/dosbox-x/dosbox-x-2022.08.0.ebuild @@ -25,6 +25,8 @@ LICENSE="GPL-2" SLOT="0" IUSE="X debug ffmpeg fluidsynth freetype opengl png slirp" +# Unit tests are only available in debug builds +RESTRICT="!debug? ( test )" BDEPEND=" dev-lang/nasm @@ -151,6 +153,12 @@ src_compile() { emake AR="$(tc-getAR)" } +src_test() { + set -- src/dosbox-x -tests + echo "${@}" >&2 + "${@}" || die "Unit tests failed" +} + pkg_preinst() { xdg_pkg_preinst diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild b/games-emulation/dosbox-x/dosbox-x-9999.ebuild index 3fb2d9f29..fba8467c0 100644 --- a/games-emulation/dosbox-x/dosbox-x-9999.ebuild +++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild @@ -25,6 +25,8 @@ LICENSE="GPL-2" SLOT="0" IUSE="X debug ffmpeg fluidsynth freetype opengl png slirp" +# Unit tests are only available in debug builds +RESTRICT="!debug? ( test )" BDEPEND=" dev-lang/nasm @@ -118,6 +120,12 @@ src_compile() { emake AR="$(tc-getAR)" } +src_test() { + set -- src/dosbox-x -tests + echo "${@}" >&2 + "${@}" || die "Unit tests failed" +} + pkg_preinst() { xdg_pkg_preinst