xref: /freebsd/lib/libc/tests/regex/Makefile.inc (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5BINDIR?=	${TESTSDIR}
6WARNS?=		3
7
8# SKIP_LEFTASSOC -> these testcases fail on FreeBSD.
9IMPLEMENTATION?=      -DREGEX_SPENCER -DSKIP_LEFTASSOC
10
11CFLAGS.h_regex+=-I${TESTSRC} -I${SRCTOP}/lib/libc/regex
12PROGS+=		h_regex
13SRCS.h_regex=	main.c split.c debug.c
14
15NETBSD_ATF_TESTS_SH=	regex_test
16
17${PACKAGE}FILES+=		README
18
19FILESGROUPS+=	${PACKAGE}DATA_FILES
20${PACKAGE}DATA_FILESPACKAGE=${PACKAGE}
21
22${PACKAGE}DATA_FILESDIR=	${TESTSDIR}/data
23${PACKAGE}DATA_FILES+=		data/anchor.in
24${PACKAGE}DATA_FILES+=		data/backref.in
25${PACKAGE}DATA_FILES+=		data/basic.in
26${PACKAGE}DATA_FILES+=		data/bracket.in
27${PACKAGE}DATA_FILES+=		data/c_comments.in
28${PACKAGE}DATA_FILES+=		data/complex.in
29${PACKAGE}DATA_FILES+=		data/error.in
30${PACKAGE}DATA_FILES+=		data/meta.in
31${PACKAGE}DATA_FILES+=		data/nospec.in
32${PACKAGE}DATA_FILES+=		data/paren.in
33${PACKAGE}DATA_FILES+=		data/regress.in
34${PACKAGE}DATA_FILES+=		data/repet_bounded.in
35${PACKAGE}DATA_FILES+=		data/repet_multi.in
36${PACKAGE}DATA_FILES+=		data/repet_ordinary.in
37${PACKAGE}DATA_FILES+=		data/startend.in
38${PACKAGE}DATA_FILES+=		data/subexp.in
39${PACKAGE}DATA_FILES+=		data/subtle.in
40${PACKAGE}DATA_FILES+=		data/word_bound.in
41${PACKAGE}DATA_FILES+=		data/zero.in
42#${PACKAGE}DATA_FILES+=		data/att/README
43${PACKAGE}DATA_FILES+=		data/att/basic.dat
44${PACKAGE}DATA_FILES+=		data/att/categorization.dat
45${PACKAGE}DATA_FILES+=		data/att/forcedassoc.dat
46${PACKAGE}DATA_FILES+=		data/att/leftassoc.dat
47${PACKAGE}DATA_FILES+=		data/att/nullsubexpr.dat
48${PACKAGE}DATA_FILES+=		data/att/repetition.dat
49${PACKAGE}DATA_FILES+=		data/att/rightassoc.dat
50
51NETBSD_ATF_TESTS_C=	exhaust_test
52NETBSD_ATF_TESTS_C+=	regex_att_test
53
54.for t in ${NETBSD_ATF_TESTS_C}
55CFLAGS.$t+=	-I${TESTSRC} ${IMPLEMENTATION}
56.endfor
57
58LIBADD.regex_att_test+=	util
59