mirror of
https://github.com/opnsense/src.git
synced 2026-07-12 10:36:23 -04:00
netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
35 lines
685 B
Makefile
35 lines
685 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
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
|
|
|
|
FILESDIR= ${TESTSDIR}
|
|
FILES= macros_h_test.c
|
|
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>
|