[meson] Add draw-fuzzer runner

This commit is contained in:
Ebrahim Byagowi 2020-03-24 20:08:40 +04:30
parent 466dbaa258
commit 600bf21fbc
1 changed files with 14 additions and 8 deletions

View File

@ -1,15 +1,14 @@
tests = [
['hb-shape-fuzzer.cc'],
['hb-subset-fuzzer.cc'],
['hb-set-fuzzer.cc'],
['hb-draw-fuzzer.cc'],
'hb-shape-fuzzer.cc',
'hb-subset-fuzzer.cc',
'hb-set-fuzzer.cc',
'hb-draw-fuzzer.cc',
]
foreach test_data : tests
fname = test_data[0]
test_name = fname.split('.')[0].underscorify()
foreach file_name : tests
test_name = file_name.split('.')[0].underscorify()
exe = executable(test_name, [fname, 'main.cc'],
exe = executable(test_name, [file_name, 'main.cc'],
cpp_args: cpp_args,
include_directories: [incconfig, incsrc],
dependencies: deps,
@ -38,3 +37,10 @@ test('subset_fuzzer', find_program('run-subset-fuzzer-tests.py'),
timeout: 120,
workdir: join_paths(meson.current_build_dir(), '..', '..'),
env: env)
test('draw_fuzzer', find_program('run-draw-fuzzer-tests.py'),
args: [
hb_draw_fuzzer_exe,
],
workdir: join_paths(meson.current_build_dir(), '..', '..'),
env: env)