git: 45dbf6158968 - main - devel/pika: Fix tests: they require to be built first and then run
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Dec 2023 05:32:55 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=45dbf615896805dfb2df9896248d33c8847f3607
commit 45dbf615896805dfb2df9896248d33c8847f3607
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-12-11 21:48:51 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-12-12 05:32:52 +0000
devel/pika: Fix tests: they require to be built first and then run
---
devel/pika/Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/devel/pika/Makefile b/devel/pika/Makefile
index f0c2391f10d5..a5b258b95484 100644
--- a/devel/pika/Makefile
+++ b/devel/pika/Makefile
@@ -24,12 +24,17 @@ GH_ACCOUNT= pika-org
CMAKE_ON= PIKA_WITH_MALLOC
CMAKE_ON+= PIKA_WITH_GENERIC_CONTEXT_COROUTINES # prerequisite, build breaks on aarch64, armv6 w/out it
-CMAKE_TESTING_ON= PIKA_WITH_TESTS PIKA_WITH_TESTS_UNIT PIKA_WITH_TESTS_REGRESSIONS # only hellow_world test runs, see https://github.com/pika-org/pika/issues/853
-CMAKE_TESTING_TARGET= test # some tests fail because some executables aren't found, see https://github.com/pika-org/pika/issues/886
+CMAKE_TESTING_ON= PIKA_WITH_TESTS PIKA_WITH_TESTS_UNIT PIKA_WITH_TESTS_REGRESSIONS # see https://pikacpp.org/usage.html#testing
+CMAKE_TESTING_TARGET= tests # first build the tests, according to https://pikacpp.org/usage.html#testing
BINARY_ALIAS= git=false
post-install:
@${RM} -r ${STAGEDIR}${DATADIR} # remove copy of license
+post-test: # run the tests according to https://pikacpp.org/usage.html#testing (make tests test doesn't work)
+ # some tests fail, see https://github.com/pika-org/pika/issues/895
+ @cd ${BUILD_WRKSRC} && \
+ ${MAKE_CMD} test
+
.include <bsd.port.mk>