Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2018 03:43:55 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Yuri Victorovich <yuri@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r485493 - in head/misc: . sdformat sdformat/files
Message-ID:  <in0r-xi8k-wny@FreeBSD.org>
In-Reply-To: <201811210216.wAL2Gpqd090066@repo.freebsd.org> (Yuri Victorovich's message of "Wed, 21 Nov 2018 02:16:51 %2B0000 (UTC)")
References:  <201811210216.wAL2Gpqd090066@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Yuri Victorovich <yuri@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



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