2018-05-16 23:28:53 +00:00
|
|
|
tests = [
|
|
|
|
['hb-shape-fuzzer.cc'],
|
|
|
|
['hb-subset-fuzzer.cc'],
|
|
|
|
['hb-subset-get-codepoints-fuzzer.cc'],
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach test_data : tests
|
|
|
|
fname = test_data[0]
|
|
|
|
test_name = fname.split('.')[0].underscorify()
|
|
|
|
|
|
|
|
exe = executable(test_name, [fname, 'main.cc'],
|
|
|
|
cpp_args: cpp_args,
|
|
|
|
include_directories: [incbase, incsrc],
|
|
|
|
dependencies: deps,
|
|
|
|
link_with: [libharfbuzz, libharfbuzz_subset],
|
|
|
|
)
|
2018-05-17 21:52:36 +00:00
|
|
|
set_variable('@0@_exe'.format(test_name.underscorify()), exe)
|
2018-05-16 23:28:53 +00:00
|
|
|
endforeach
|
|
|
|
|
2018-05-17 21:52:36 +00:00
|
|
|
env = environment()
|
|
|
|
env.set('srcdir', meson.current_source_dir())
|
|
|
|
|
2018-05-16 23:28:53 +00:00
|
|
|
test('shape_fuzzer', python3,
|
|
|
|
args: [
|
|
|
|
files('run-shape-fuzzer-tests.py')[0],
|
2018-05-17 21:52:36 +00:00
|
|
|
hb_shape_fuzzer_exe,
|
2018-05-16 23:28:53 +00:00
|
|
|
],
|
2018-05-17 21:52:36 +00:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
|
|
|
env: env)
|
2018-05-16 23:28:53 +00:00
|
|
|
|
|
|
|
test('subset_fuzzer', python3,
|
|
|
|
args: [
|
|
|
|
files('run-subset-fuzzer-tests.py')[0],
|
2018-05-17 21:52:36 +00:00
|
|
|
hb_subset_fuzzer_exe,
|
|
|
|
hb_subset_get_codepoints_fuzzer_exe,
|
2018-05-16 23:28:53 +00:00
|
|
|
],
|
2018-05-17 21:52:36 +00:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
|
|
|
env: env)
|