diff options
Diffstat (limited to 'lib/atf/libatf-c/tests/Makefile')
-rw-r--r-- | lib/atf/libatf-c/tests/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/atf/libatf-c/tests/Makefile b/lib/atf/libatf-c/tests/Makefile new file mode 100644 index 0000000000000..9b4e1299228f7 --- /dev/null +++ b/lib/atf/libatf-c/tests/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +PACKAGE= tests + +TESTS_SUBDIRS= detail + +ATF= ${SRCTOP}/contrib/atf +.PATH: ${ATF}/atf-c +.PATH: ${ATF}/atf-c/detail + +CFLAGS+= -DATF_INCLUDEDIR='"${INCLUDEDIR}"' +CFLAGS+= -I${ATF} + +# macros_test.c contains a double 'const const' which will be gone with +# the import of atf-0.18. +# TODO(jmmv): Remove this workaround once we do that update. +CFLAGS.clang+= -Wno-duplicate-decl-specifier + +${PACKAGE}FILES+= macros_h_test.c +${PACKAGE}FILES+= unused_test.c + +.for _T in atf_c_test \ + build_test \ + check_test \ + error_test \ + macros_test \ + tc_test \ + tp_test \ + utils_test +ATF_TESTS_C+= ${_T} +SRCS.${_T}= ${_T}.c test_helpers.c +.endfor + +.include <bsd.test.mk> |