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