Make capsicum test cases fine-grained
Add a wrapping script to use ATF to run tests written with Googletest one by one. This helps locating and tracking the failing case in CI easier. This is a temporarily solution while Googletest support in Kyua is developing. We will revert this once Kyua+Googletest integration is ready. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25896
This commit is contained in:
@@ -30,12 +30,18 @@ GTESTS?=
|
||||
.include <googletest.test.inc.mk>
|
||||
|
||||
PROGS_CXX+= ${GTESTS}
|
||||
_TESTS+= ${GTESTS}
|
||||
.for _T in ${GTESTS}
|
||||
BINDIR.${_T}= ${TESTSDIR}
|
||||
CXXFLAGS.${_T}+= ${GTESTS_CXXFLAGS}
|
||||
MAN.${_T}?= # empty
|
||||
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
|
||||
.endif
|
||||
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
Reference in New Issue
Block a user