[BACK]Return to Makefile.am CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / bsd / tre / dist / tests

File: [cvs.NetBSD.org] / src / external / bsd / tre / dist / tests / Makefile.am (download)

Revision 1.1.1.2 (vendor branch), Fri Nov 17 16:11:12 2017 UTC (2 years, 8 months ago) by rin
Branch: MAIN, LAURIKARI
CVS Tags: tre-20171117, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, HEAD
Changes since 1.1.1.1: +2 -1 lines

Import tre from https://github.com/laurikari/tre as of 10171117:

- tre_reg*b() functions are added, that take bytes literally.
- minor bug fixes

## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = agrep

check_PROGRAMS = retest randtest test-str-source
EXTRA_PROGRAMS = bench
LDADD = $(LTLIBINTL)

retest_SOURCES = retest.c
if TRE_MULTIBYTE
check_PROGRAMS += wretest
wretest_SOURCES = retest.c
wretest_CPPFLAGS = -DWRETEST $(AM_CPPFLAGS)
endif TRE_MULTIBYTE

randtest_SOURCES = randtest.c

bench_SOURCES = bench.c
bench_LDADD = ../lib/libtre.la $(LDADD) -lm

test_str_source_SOURCES = test-str-source.c
test_str_source_LDADD = ../lib/libtre.la $(LDADD) -lm

if TRE_DEBUG
  retest_LDADD = ../lib/libtre.la $(LDADD)
if TRE_MULTIBYTE
  wretest_LDADD = ../lib/libtre.la $(LDADD)
endif TRE_MULTIBYTE
  randtest_LDADD = ../lib/libtre.la $(LDADD)
else !TRE_DEBUG
  ## Debugging is not turned on.  Make a malloc-debugging version of the
  ## library and use it with `retest' and `randtest'.  Malloc-debugging is
  ## not used for the debugging version since it would just get in the way.
  check_LTLIBRARIES = libxtre.la
  libxtre_la_SOURCES =			\
	../lib/tre-mem.c		\
	../lib/tre-stack.c		\
	../lib/tre-ast.c		\
	../lib/tre-parse.c		\
	../lib/tre-compile.c		\
	../lib/tre-match-parallel.c	\
	../lib/tre-match-backtrack.c	\
	../lib/regcomp.c		\
	../lib/regexec.c		\
	../lib/regerror.c		\
	../lib/xmalloc.c
if TRE_APPROX
  libxtre_la_SOURCES += ../lib/tre-match-approx.c
endif TRE_APPROX
  libxtre_la_CFLAGS = -DMALLOC_DEBUGGING

  retest_CFLAGS = -DMALLOC_DEBUGGING
  retest_LDADD = libxtre.la $(LDADD)
if TRE_MULTIBYTE
  wretest_CFLAGS = -DMALLOC_DEBUGGING
  wretest_LDADD = libxtre.la $(LDADD)
endif TRE_MULTIBYTE
  randtest_CFLAGS = -DMALLOC_DEBUGGING
  randtest_LDADD = libxtre.la $(LDADD)
endif !TRE_DEBUG

AM_CPPFLAGS = -I$(top_srcdir)/lib

EXTRA_DIST = build-tests.sh

TESTS = test-str-source retest
if TRE_MULTIBYTE
TESTS += wretest
endif TRE_MULTIBYTE