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