1fuzzer_cargs = [ 2 '-DSRCDIR="@0@"'.format(meson.current_source_dir()), 3 '-DTEST_RUN', 4] 5 6foreach test_case : ['fuzzer', 'load_fuzzer', 'load_dafsa_fuzzer'] 7 if enable_runtime == 'libidn2' 8 test_name = 'libpsl_idn2_' + test_case 9 elif enable_runtime == 'libicu' 10 test_name = 'libpsl_icu_' + test_case 11 elif enable_runtime == 'libidn' 12 test_name = 'libpsl_idn_' + test_case 13 else 14 test_name = 'libpsl_' + test_case 15 endif 16 source_file = 'libpsl_@0@.c'.format(test_case) 17 exe = executable(test_name, source_file, 'main.c', 18 link_with : libpsl, 19 c_args : fuzzer_cargs, 20 include_directories : [configinc, includedir], 21 dependencies : libicu_dep, 22 ) 23 test(test_name, exe) 24endforeach 25