libpsl/tests/Makefile.am

34 lines
1.1 KiB
Makefile
Raw Normal View History

DEFS = @DEFS@ -DSRCDIR=\"$(srcdir)\" -DPSL_FILE=\"$(PSL_FILE)\" -DPSL_TESTFILE=\"$(PSL_TESTFILE)\"
2014-03-24 20:41:46 +01:00
AM_CPPFLAGS = -I$(top_srcdir)/include
LDADD = ../src/libpsl.la
2014-03-20 17:17:24 +01:00
2014-04-17 13:09:29 +02:00
# ./configure'd with '--disable-builtin'
# Do not call test-is-public-builtin here: it does not make sense.
# Do not call test-registrable-domain here: it would fail due to missing punycode entries in PSL file.
PSL_TESTS = test-is-public test-is-public-all test-is-cookie-domain-acceptable
2014-06-27 17:13:30 +02:00
if BUILTIN_GENERATOR_LIBICU
PSL_TESTS += test-is-public-builtin test-registrable-domain
endif
if BUILTIN_GENERATOR_LIBIDN2
PSL_TESTS += test-is-public-builtin test-registrable-domain
2014-04-17 13:09:29 +02:00
endif
if BUILTIN_GENERATOR_LIBIDN
PSL_TESTS += test-is-public-builtin test-registrable-domain
endif
2014-03-20 17:17:24 +01:00
check_PROGRAMS = $(PSL_TESTS)
TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@"
TESTS = $(PSL_TESTS)
2016-09-26 15:15:34 +02:00
# dafsa.psl must be created before any test is executed
# check-local target works in parallel to the tests, so the test suite will likely fail
BUILT_SOURCES = dafsa.psl
dafsa.psl:
$(top_srcdir)/src/psl-make-dafsa --input-format=psl --output-format=binary "$(PSL_FILE)" psl.dafsa
clean-local:
rm -f psl.dafsa