svn commit: r485493 - in head/misc: . sdformat sdformat/files

Jan Beich jbeich at FreeBSD.org
Wed Nov 21 02:43:59 UTC 2018


Yuri Victorovich <yuri at FreeBSD.org> writes:

> +do-test:
> +	@cd ${BUILD_WRKSRC} && \
> +		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
> +		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
> +		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test

Why not just add TEST option and run after build when enabled?

  OPTIONS_DEFINE=	TEST

  TEST_CMAKE_BOOL=	BUILD_TESTING
  TEST_TEST_TARGET=	test

  pre-install-TEST-on: do-test


More information about the svn-ports-all mailing list