mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
net/uriparser: Utilize framework for unit tests
Instead of having unit tests as an option and enabled by default build when requested. PR: 283184 Reviewed by: Sergei Vyshenski <svysh.fbsd@gmail.com> (maintainer)
This commit is contained in:
parent
10da00dd35
commit
197b5473c2
1 changed files with 6 additions and 6 deletions
|
@ -13,24 +13,24 @@ LICENSE= BSD3CLAUSE
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
BUILD_DEPENDS= bash:shells/bash
|
BUILD_DEPENDS= bash:shells/bash
|
||||||
|
TEST_DEPENDS= googletest>=1.10.0:devel/googletest
|
||||||
|
|
||||||
USES= cmake:noninja cpe pathfix tar:xz
|
USES= cmake:noninja,testing cpe pathfix tar:xz
|
||||||
CPE_VENDOR= uriparser_project
|
CPE_VENDOR= uriparser_project
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
CMAKE_OFF= URIPARSER_BUILD_DOCS # will fetch prebuilds from the upstream, if DOCS is selected
|
CMAKE_TESTING_ON= URIPARSER_BUILD_TESTS
|
||||||
|
|
||||||
TEST_TARGET= test
|
CMAKE_OFF= URIPARSER_BUILD_TESTS \
|
||||||
|
URIPARSER_BUILD_DOCS # will fetch prebuilds from the upstream, if DOCS is selected
|
||||||
|
|
||||||
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS TEST
|
OPTIONS_DEFINE= DOCS
|
||||||
DOCS_DISTFILES= ${_DISTDOCSFILE} \
|
DOCS_DISTFILES= ${_DISTDOCSFILE} \
|
||||||
${DISTNAME}.qch
|
${DISTNAME}.qch
|
||||||
DOCS_EXTRACT_ONLY= ${_DISTDOCSFILE}
|
DOCS_EXTRACT_ONLY= ${_DISTDOCSFILE}
|
||||||
TEST_BUILD_DEPENDS= googletest>=1.10.0:devel/googletest
|
|
||||||
TEST_CMAKE_BOOL= URIPARSER_BUILD_TESTS
|
|
||||||
|
|
||||||
_DISTDOCSFILE= ${_DISTDOCSNAME}.zip
|
_DISTDOCSFILE= ${_DISTDOCSNAME}.zip
|
||||||
_DISTDOCSNAME= ${DISTNAME}-doc
|
_DISTDOCSNAME= ${DISTNAME}-doc
|
||||||
|
|
Loading…
Add table
Reference in a new issue