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