From 81a793346ef399191064a8e3071a7aedbb8d0f0a Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 8 Dec 2018 10:11:17 -0500 Subject: [PATCH] Meson: Fix fuzz test names --- fuzz/meson.build | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fuzz/meson.build b/fuzz/meson.build index e4948b7..798ebdd 100644 --- a/fuzz/meson.build +++ b/fuzz/meson.build @@ -3,8 +3,17 @@ fuzzer_cargs = [ '-DTEST_RUN', ] -foreach test_name : ['fuzzer', 'load_fuzzer', 'load_dafsa_fuzzer'] - source_file = 'libpsl_@0@.c'.format(test_name) +foreach test_case : ['fuzzer', 'load_fuzzer', 'load_dafsa_fuzzer'] + if enable_runtime == 'libidn2' + test_name = 'libpsl_idn2_' + test_case + elif enable_runtime == 'libicu' + test_name = 'libpsl_icu_' + test_case + elif enable_runtime == 'libidn' + test_name = 'libpsl_idn_' + test_case + else + test_name = 'libpsl_' + test_case + endif + source_file = 'libpsl_@0@.c'.format(test_case) exe = executable(test_name, source_file, 'main.c', link_with : libpsl, c_args : fuzzer_cargs,