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