git: 8891b1d70c01 - main - devel/criterion: Add tests; Remove unnecessary compile flags
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Jul 2022 22:31:00 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8891b1d70c016f64aaf53b352f11ed61dcc89cc7
commit 8891b1d70c016f64aaf53b352f11ed61dcc89cc7
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-03 22:30:04 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-03 22:30:04 +0000
devel/criterion: Add tests; Remove unnecessary compile flags
---
devel/criterion/Makefile | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/devel/criterion/Makefile b/devel/criterion/Makefile
index d742f74aa354..1e8bccebbf6e 100644
--- a/devel/criterion/Makefile
+++ b/devel/criterion/Makefile
@@ -33,9 +33,6 @@ SHEBANG_FILES= src/protocol/gen-pb.py
MESON_ARGS= -Dtests=false -Dsamples=false
-CFLAGS+= -fPIC
-CXXFLAGS+= -fPIC
-
quick-test:
@cd ${TEST_WRKSRC} && \
${CC} ${CFLAGS} ${LDFLAGS} -I${STAGEDIR}${PREFIX}/include \
@@ -44,4 +41,11 @@ quick-test:
${FILESDIR}/example.c && \
./a.out # test succeeds when simple::Test fails with assertion
+do-test:
+ @cd ${WRKSRC} && \
+ ${RM} -rf _build && \
+ ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS} -Dtests=true -Dsamples=false && \
+ cd ${BUILD_WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} test
+
.include <bsd.port.mk>