xref: /freebsd/lib/atf/libatf-c++/tests/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include <bsd.init.mk>
2
3PACKAGE=	tests
4
5TESTS_SUBDIRS=	detail
6
7ATF=		${SRCTOP}/contrib/atf
8.PATH:		${ATF}/atf-c++
9.PATH:		${ATF}/atf-c++/detail
10
11CFLAGS+=	-DATF_BUILD_CXX='"c++"'
12CFLAGS+=	-DATF_BUILD_CXXFLAGS='"-Wall"'
13CFLAGS+=	-DATF_C_TESTS_BASE='"${TESTSBASE}/lib/atf/libatf-c"'
14CFLAGS+=	-DATF_INCLUDEDIR='"${INCLUDEDIR}"'
15CFLAGS+=	-I${ATF}
16
17${PACKAGE}FILES+=	macros_hpp_test.cpp
18${PACKAGE}FILES+=	unused_test.cpp
19
20.for _T in	atf_c++_test \
21		build_test \
22		check_test \
23		macros_test \
24		tests_test \
25		utils_test
26ATF_TESTS_CXX+=	${_T}
27SRCS.${_T}=	${_T}.cpp test_helpers.cpp
28.endfor
29
30.for _T in	atf_c++_test \
31		build_test \
32		check_test \
33		macros_test
34TEST_METADATA.${_T}+=	required_programs="c++"
35.endfor
36
37.include <bsd.test.mk>
38