xref: /freebsd/lib/atf/libatf-c/tests/Makefile (revision ff0ba87247820afbdfdc1b307c803f7923d0e4d3)
1# $FreeBSD$
2
3.include <bsd.init.mk>
4
5TESTSDIR=	${TESTSBASE}/lib/atf/libatf-c
6TESTS_SUBDIRS=	detail
7
8ATF=		${.CURDIR:H:H:H:H}/contrib/atf
9.PATH:		${ATF}/atf-c
10.PATH:		${ATF}/atf-c/detail
11
12CFLAGS+=	-DATF_INCLUDEDIR='"${INCLUDEDIR}"'
13CFLAGS+=	-I${ATF}
14
15# macros_test.c contains a double 'const const' which will be gone with
16# the import of atf-0.18.
17# TODO(jmmv): Remove this workaround once we do that update.
18CFLAGS.clang+=	-Wno-duplicate-decl-specifier
19
20FILESDIR=	${TESTSDIR}
21FILES=		macros_h_test.c
22FILES+=		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