commit: 0448d72f9a3ebf1edc84a6400cb47a0cc9e35ce1
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 09:21:53 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 23 18:01:57 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0448d72f
games-action/teeworlds: wire up tests
Signed-off-by: Sam James <sam <AT> gentoo.org>
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 a48cbac93ecd..dd629e645307 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