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_INCLUDEDIR='"${INCLUDEDIR}"'
12CFLAGS+=	-I${ATF}
13
14${PACKAGE}FILES+=	macros_h_test.c
15${PACKAGE}FILES+=	unused_test.c
16
17.for _T in	atf_c_test \
18		build_test \
19		check_test \
20		error_test \
21		macros_test \
22		tc_test \
23		tp_test \
24		utils_test
25ATF_TESTS_C+=	${_T}
26SRCS.${_T}=	${_T}.c test_helpers.c
27.endfor
28
29.for _T in	atf_c_test \
30		build_test \
31		check_test \
32		macros_test
33TEST_METADATA.${_T}+=	required_programs="cc"
34.endfor
35
36.include "Makefile.inc"
37.include <bsd.test.mk>
38