xref: /freebsd/lib/atf/libatf-c/tests/Makefile (revision 55620f43deef5c0eb5b4b0f675de18b30c8d1c2d)
1# $FreeBSD$
2
3.include <bsd.init.mk>
4
5PACKAGE=	tests
6
7TESTS_SUBDIRS=	detail
8
9ATF=		${SRCTOP}/contrib/atf
10.PATH:		${ATF}/atf-c
11.PATH:		${ATF}/atf-c/detail
12
13CFLAGS+=	-DATF_INCLUDEDIR='"${INCLUDEDIR}"'
14CFLAGS+=	-I${ATF}
15
16# macros_test.c contains a double 'const const' which will be gone with
17# the import of atf-0.18.
18# TODO(jmmv): Remove this workaround once we do that update.
19CFLAGS.clang+=	-Wno-duplicate-decl-specifier
20
21${PACKAGE}FILES+=	macros_h_test.c
22${PACKAGE}FILES+=	unused_test.c
23
24.for _T in	atf_c_test \
25		build_test \
26		check_test \
27		error_test \
28		macros_test \
29		tc_test \
30		tp_test \
31		utils_test
32ATF_TESTS_C+=	${_T}
33SRCS.${_T}=	${_T}.c test_helpers.c
34.endfor
35
36.include <bsd.test.mk>
37