1psl_dafsa = custom_target('psl.dafsa', 2 input : psl_file, 3 output : 'psl.dafsa', 4 command : [python, psl_make_dafsa, '--output-format=binary', '@INPUT@', '@OUTPUT@']) 5 6psl_ascii_dafsa = custom_target('psl_ascii.dafsa', 7 input : psl_file, 8 output : 'psl_ascii.dafsa', 9 command : [python, psl_make_dafsa, '--output-format=binary', '--encoding=ascii', '@INPUT@', '@OUTPUT@']) 10 11tests_cargs = [ 12 '-DHAVE_CONFIG_H', 13 '-DSRCDIR="@0@"'.format(meson.current_source_dir()), 14 '-DPSL_FILE="@0@"'.format(psl_file), 15 '-DPSL_TESTFILE="@0@"'.format(psl_test_file), 16 '-DPSL_DAFSA="@0@"'.format(psl_dafsa.full_path()), 17 '-DPSL_ASCII_DAFSA="@0@"'.format(psl_ascii_dafsa.full_path()), 18] 19 20tests = [ 21 'test-is-public', 22 'test-is-public-all', 23 'test-is-cookie-domain-acceptable', 24] 25 26if enable_builtin != 'no' 27 tests += ['test-is-public-builtin', 'test-registrable-domain'] 28endif 29 30foreach test_name : tests 31 source = test_name + '.c' 32 exe = executable(test_name, source, 33 c_args : tests_cargs, 34 link_with : libpsl, 35 include_directories : [configinc, includedir]) 36 test(test_name, exe, depends : [psl_dafsa, psl_ascii_dafsa]) 37endforeach 38