Debian Codegraph @

tests/Makefile.am

raw
1 DEFS = @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\"
7 AM_CPPFLAGS = -I$(top_srcdir)/include
8 LDADD = ../src/libpsl.la
9 AM_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.
14 PSL_TESTS = test-is-public test-is-public-all test-is-cookie-domain-acceptable
15
16 if ENABLE_BUILTIN
17 PSL_TESTS += test-is-public-builtin test-registrable-domain
18 endif
19
20 check_PROGRAMS = $(PSL_TESTS)
21
22 TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@"
23 TESTS = $(PSL_TESTS)
24
25 # dafsa.psl and dafsa_ascii.psl must be created before any test is executed
26 # check-local target works in parallel to the tests, so the test suite will likely fail
27 BUILT_SOURCES = psl.dafsa psl_ascii.dafsa
28 psl.dafsa: $(PSL_FILE)
29 $(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary "$(PSL_FILE)" psl.dafsa
30 psl_ascii.dafsa: $(PSL_FILE)
31 $(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary --encoding=ascii "$(PSL_FILE)" psl_ascii.dafsa
32
33 clean-local:
34 rm -f psl.dafsa psl_ascii.dafsa
35
36 EXTRA_DIST = meson.build