games-action/teeworlds: wire up tests

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-23 10:21:53 +01:00
parent f18e9d9f79
commit 0448d72f9a

View File

@@ -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