aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-07-13 20:31:24 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-07-13 20:31:55 +0000
commitc3089c26d87ccb73884a911f2175d91fba0b3c27 (patch)
treefa2f1b1485bb069e3cf5a1942025722a2ee8e4d5
parentd4b9152cab28f37e4124ad194e83d5ef9fdacba1 (diff)
downloadports-c3089c26d87ccb73884a911f2175d91fba0b3c27.tar.gz
ports-c3089c26d87ccb73884a911f2175d91fba0b3c27.zip
devel/pika: Add test target
-rw-r--r--devel/pika/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/pika/Makefile b/devel/pika/Makefile
index 81cb72e81c47..c28c2010fc0b 100644
--- a/devel/pika/Makefile
+++ b/devel/pika/Makefile
@@ -19,11 +19,15 @@ USE_GITHUB= yes
GH_ACCOUNT= pika-org
CMAKE_ON= PIKA_WITH_MALLOC
-CMAKE_TESTING_ON= PIKA_WITH_TESTS # unclear how to run tests
+CMAKE_TESTING_ON= PIKA_WITH_TESTS PIKA_WITH_TESTS_UNIT # unclear how to run tests
+CMAKE_TESTING_TARGET= tests test
BINARY_ALIAS= git=false
post-install:
@${RM} -r ${STAGEDIR}${DATADIR} # remove copy of license
+pre-test: # unlike most other cmake projects tests fail to build when reconfigured, and require full rebuild
+ @${RM} -r ${BUILD_WRKSRC}/*
+
.include <bsd.port.mk>