Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2022 22:31:00 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8891b1d70c01 - main - devel/criterion: Add tests; Remove unnecessary compile flags
Message-ID:  <202207032231.263MV0vM072770@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207032231.263MV0vM072770>