• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1DEFS = @DEFS@ \
2       -DSRCDIR=\"$(srcdir)\" \
3       -DPSL_FILE=\"$(PSL_FILE)\" \
4       -DPSL_TESTFILE=\"$(PSL_TESTFILE)\" \
5       -DPSL_DAFSA=\"psl.dafsa\" \
6       -DPSL_ASCII_DAFSA=\"psl_ascii.dafsa\"
7AM_CPPFLAGS = -I$(top_srcdir)/include
8LDADD = ../src/libpsl.la
9AM_LDFLAGS = -no-install
10
11# ./configure'd with '--disable-builtin'
12# Do not call test-is-public-builtin here: it does not make sense.
13# Do not call test-registrable-domain here: it would fail due to missing punycode entries in PSL file.
14PSL_TESTS = test-is-public test-is-public-all test-is-cookie-domain-acceptable
15
16if BUILTIN_GENERATOR_LIBICU
17  PSL_TESTS += test-is-public-builtin test-registrable-domain
18endif
19
20if BUILTIN_GENERATOR_LIBIDN2
21  PSL_TESTS += test-is-public-builtin test-registrable-domain
22endif
23
24if BUILTIN_GENERATOR_LIBIDN
25  PSL_TESTS += test-is-public-builtin test-registrable-domain
26endif
27
28check_PROGRAMS = $(PSL_TESTS)
29
30TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@"
31TESTS = $(PSL_TESTS)
32
33# dafsa.psl and dafsa_ascii.psl must be created before any test is executed
34# check-local target works in parallel to the tests, so the test suite will likely fail
35BUILT_SOURCES = psl.dafsa psl_ascii.dafsa
36psl.dafsa: $(PSL_FILE)
37	$(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary "$(PSL_FILE)" psl.dafsa
38psl_ascii.dafsa: $(PSL_FILE)
39	$(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary --encoding=ascii "$(PSL_FILE)" psl_ascii.dafsa
40
41clean-local:
42	rm -f psl.dafsa psl_ascii.dafsa
43
44EXTRA_DIST = meson.build
45