Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/googletest.test.mk
Show All 24 Lines | |||||
# (which should be overridden by the Makefile) and are not required to provide a | # (which should be overridden by the Makefile) and are not required to provide a | ||||
# manpage. | # manpage. | ||||
GTESTS?= | GTESTS?= | ||||
.if !empty(GTESTS) | .if !empty(GTESTS) | ||||
.include <googletest.test.inc.mk> | .include <googletest.test.inc.mk> | ||||
PROGS_CXX+= ${GTESTS} | PROGS_CXX+= ${GTESTS} | ||||
_TESTS+= ${GTESTS} | |||||
.for _T in ${GTESTS} | .for _T in ${GTESTS} | ||||
BINDIR.${_T}= ${TESTSDIR} | BINDIR.${_T}= ${TESTSDIR} | ||||
CXXFLAGS.${_T}+= ${GTESTS_CXXFLAGS} | CXXFLAGS.${_T}+= ${GTESTS_CXXFLAGS} | ||||
MAN.${_T}?= # empty | MAN.${_T}?= # empty | ||||
SRCS.${_T}?= ${_T}.cc | SRCS.${_T}?= ${_T}.cc | ||||
.if !empty(GTESTS_WRAPPER_SH.${_T}) | |||||
# A stopgap/workaround to let kyua execute test case one by one | |||||
ATF_TESTS_SH+= ${GTESTS_WRAPPER_SH.${_T}} | |||||
.else | |||||
_TESTS+= ${_T} | |||||
TEST_INTERFACE.${_T}= plain | TEST_INTERFACE.${_T}= plain | ||||
.endif | |||||
.endfor | .endfor | ||||
.endif | .endif |