git: 3aba0ba870ad - main - games/minetest: fix testing

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 23 May 2022 11:22:44 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3aba0ba870ad6d8ac13a4d680438f5f49029d204

commit 3aba0ba870ad6d8ac13a4d680438f5f49029d204
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-05-23 11:01:06 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-05-23 11:20:09 +0000

    games/minetest: fix testing
---
 games/minetest/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/games/minetest/Makefile b/games/minetest/Makefile
index a4a2aae35368..da5b41a3c88c 100644
--- a/games/minetest/Makefile
+++ b/games/minetest/Makefile
@@ -106,10 +106,12 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
 		${WRKSRC}/cmake/Modules/*.cmake
 
-do-test-CLIENT-on:
+do-test-TEST-on:
+.if ${PORT_OPTIONS:MCLIENT}
 	cd ${WRKDIR} && ${SETENV} ${TEST_ENV} ${STAGEDIR}${PREFIX}/bin/minetest --run-unittests
-
-do-test-SERVER-on:
+.endif
+.if ${PORT_OPTIONS:MSERVER}
 	cd ${WRKDIR} && ${SETENV} ${TEST_ENV} ${STAGEDIR}${PREFIX}/bin/minetestserver --run-unittests
+.endif
 
 .include <bsd.port.mk>