The current default is provided in various Makefile.inc in some top-level directories and covers a good portion of the tree, but doesn't cover parts of the build a little deeper (e.g. libcasper). Provide a default in src.sys.mk and set WARNS to it in bsd.sys.mk if that variable is defined. This lets us relatively cleanly provide a default WARNS no matter where you're building in the src tree without breaking things outside of the tree. Crunchgen has been updated as a bootstrap tool to work on this change because it needs r365605 at a minimum to succeed. The cleanup necessary to successfully walk over this change on WITHOUT_CLEAN builds has been added. There is a supplemental project to this to list all of the warnings that are encountered when the environment has WARNS=6 NO_WERROR=yes: https://warns.kevans.dev -- this project will hopefully eventually go away in favor of CI doing a much better job than it. Reviewed by: emaste, brooks, ngie (all earlier version) Reviewed by: emaste, arichardson (depend-cleanup.sh change) Differential Revision: https://reviews.freebsd.org/D26455
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
BINDIR?= ${TESTSDIR}
|
|
WARNS?= 3
|
|
|
|
# SKIP_LEFTASSOC -> these testcases fail on FreeBSD.
|
|
IMPLEMENTATION?= -DREGEX_SPENCER -DSKIP_LEFTASSOC
|
|
|
|
CFLAGS.h_regex+=-I${TESTSRC} -I${SRCTOP}/lib/libc/regex
|
|
PROGS+= h_regex
|
|
SRCS.h_regex= main.c split.c debug.c
|
|
|
|
NETBSD_ATF_TESTS_SH= regex_test
|
|
|
|
${PACKAGE}FILES+= README
|
|
|
|
FILESGROUPS+= ${PACKAGE}DATA_FILES
|
|
${PACKAGE}DATA_FILESPACKAGE=${PACKAGE}
|
|
|
|
${PACKAGE}DATA_FILESDIR= ${TESTSDIR}/data
|
|
${PACKAGE}DATA_FILES+= data/anchor.in
|
|
${PACKAGE}DATA_FILES+= data/backref.in
|
|
${PACKAGE}DATA_FILES+= data/basic.in
|
|
${PACKAGE}DATA_FILES+= data/bracket.in
|
|
${PACKAGE}DATA_FILES+= data/c_comments.in
|
|
${PACKAGE}DATA_FILES+= data/complex.in
|
|
${PACKAGE}DATA_FILES+= data/error.in
|
|
${PACKAGE}DATA_FILES+= data/meta.in
|
|
${PACKAGE}DATA_FILES+= data/nospec.in
|
|
${PACKAGE}DATA_FILES+= data/paren.in
|
|
${PACKAGE}DATA_FILES+= data/regress.in
|
|
${PACKAGE}DATA_FILES+= data/repet_bounded.in
|
|
${PACKAGE}DATA_FILES+= data/repet_multi.in
|
|
${PACKAGE}DATA_FILES+= data/repet_ordinary.in
|
|
${PACKAGE}DATA_FILES+= data/startend.in
|
|
${PACKAGE}DATA_FILES+= data/subexp.in
|
|
${PACKAGE}DATA_FILES+= data/subtle.in
|
|
${PACKAGE}DATA_FILES+= data/word_bound.in
|
|
${PACKAGE}DATA_FILES+= data/zero.in
|
|
#${PACKAGE}DATA_FILES+= data/att/README
|
|
${PACKAGE}DATA_FILES+= data/att/basic.dat
|
|
${PACKAGE}DATA_FILES+= data/att/categorization.dat
|
|
${PACKAGE}DATA_FILES+= data/att/forcedassoc.dat
|
|
${PACKAGE}DATA_FILES+= data/att/leftassoc.dat
|
|
${PACKAGE}DATA_FILES+= data/att/nullsubexpr.dat
|
|
${PACKAGE}DATA_FILES+= data/att/repetition.dat
|
|
${PACKAGE}DATA_FILES+= data/att/rightassoc.dat
|
|
|
|
NETBSD_ATF_TESTS_C= exhaust_test
|
|
NETBSD_ATF_TESTS_C+= regex_att_test
|
|
|
|
.for t in ${NETBSD_ATF_TESTS_C}
|
|
CFLAGS.$t+= -I${TESTSRC} ${IMPLEMENTATION}
|
|
.endfor
|
|
|
|
LIBADD.regex_att_test+= util
|