From 0448d72f9a3ebf1edc84a6400cb47a0cc9e35ce1 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 23 May 2025 10:21:53 +0100 Subject: [PATCH] games-action/teeworlds: wire up tests Signed-off-by: Sam James --- games-action/teeworlds/teeworlds-0.7.5-r3.ebuild | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/games-action/teeworlds/teeworlds-0.7.5-r3.ebuild b/games-action/teeworlds/teeworlds-0.7.5-r3.ebuild index a48cbac93ecd4..dd629e6453078 100644 --- a/games-action/teeworlds/teeworlds-0.7.5-r3.ebuild +++ b/games-action/teeworlds/teeworlds-0.7.5-r3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..13} ) inherit cmake desktop flag-o-matic python-any-r1 DESCRIPTION="Online multi-player platform 2D shooter" @@ -17,7 +17,8 @@ S=${WORKDIR}/${P}-src LICENSE="ZLIB" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="dedicated" +IUSE="dedicated test" +RESTRICT="!test? ( test )" RDEPEND=" !dedicated? ( @@ -31,7 +32,10 @@ RDEPEND=" sys-libs/zlib:= " DEPEND="${RDEPEND}" -BDEPEND="${PYTHON_DEPS}" +BDEPEND=" + ${PYTHON_DEPS} + test? ( dev-cpp/gtest ) +" src_configure() { append-flags -fno-strict-aliasing #858524 @@ -44,6 +48,10 @@ src_configure() { cmake_src_configure } +src_test() { + eninja run_tests +} + src_install() { cmake_src_install