]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - lib/atf/libatf-c/tests/Makefile
Update atf to 0.18 and remove the code of the deprecated tools.
[FreeBSD/stable/10.git] / lib / atf / libatf-c / tests / Makefile
1 # $FreeBSD$
2
3 .include <bsd.init.mk>
4
5 TESTSDIR=       ${TESTSBASE}/lib/atf/libatf-c
6
7 ATF=            ${.CURDIR:H:H:H:H}/contrib/atf
8 .PATH:          ${ATF}/atf-c
9 .PATH:          ${ATF}/atf-c/detail
10
11 CFLAGS+=        -I${ATF}
12
13 .if ${COMPILER_TYPE} == "clang"
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.
17 CFLAGS+=        -Wno-duplicate-decl-specifier
18 .endif
19
20 FILESDIR=       ${TESTSDIR}
21 FILES=          macros_h_test.c
22 FILES+=         unused_test.c
23
24 # Tests in atf-c.
25
26 .for _T in      atf_c_test \
27                 build_test \
28                 check_test \
29                 config_test \
30                 error_test \
31                 macros_test \
32                 tc_test \
33                 tp_test \
34                 utils_test
35 ATF_TESTS_C+=   ${_T}
36 SRCS.${_T}=     ${_T}.c test_helpers.c
37 .endfor
38
39 ATF_TESTS_SH=   pkg_config_test
40
41 # Tests in atf-c/detail.
42
43 .for _T in      dynstr_test \
44                 env_test \
45                 fs_test \
46                 list_test \
47                 map_test \
48                 process_test \
49                 sanity_test \
50                 text_test \
51                 user_test
52 ATF_TESTS_C+=   ${_T}
53 SRCS.${_T}=     ${_T}.c test_helpers.c
54 .endfor
55
56 PROGS+=         process_helpers
57 SRCS.process_helpers=   process_helpers.c
58 MAN.process_helpers=    # defined
59 BINDIR.process_helpers= ${TESTSDIR}
60
61 .include <atf.test.mk>