opnsense-src/lib/atf/libatf-c++/tests/Makefile
Alex Richardson c203bd70b5 Import atf 0.22 snapshot ca73d08c3fc1ecffc1f1c97458c31ab82c12bb01
This includes improvements to the atf-sh helper functions that
significantly reduce the number of spawned processes for each test
and therefore speeds up running the testsuite noticeably.
2021-02-04 15:03:05 +00:00

39 lines
747 B
Makefile

# $FreeBSD$
.include <bsd.init.mk>
PACKAGE= tests
TESTS_SUBDIRS= detail
ATF= ${SRCTOP}/contrib/atf
.PATH: ${ATF}/atf-c++
.PATH: ${ATF}/atf-c++/detail
CFLAGS+= -DATF_BUILD_CXX='"c++"'
CFLAGS+= -DATF_BUILD_CXXFLAGS='"-Wall"'
CFLAGS+= -DATF_C_TESTS_BASE='"${TESTSBASE}/lib/atf/libatf-c"'
CFLAGS+= -DATF_INCLUDEDIR='"${INCLUDEDIR}"'
CFLAGS+= -I${ATF}
${PACKAGE}FILES+= macros_hpp_test.cpp
${PACKAGE}FILES+= unused_test.cpp
.for _T in atf_c++_test \
build_test \
check_test \
macros_test \
tests_test \
utils_test
ATF_TESTS_CXX+= ${_T}
SRCS.${_T}= ${_T}.cpp test_helpers.cpp
.endfor
.for _T in atf_c++_test \
build_test \
check_test \
macros_test
TEST_METADATA.${_T}+= required_programs="c++"
.endfor
.include <bsd.test.mk>