HarfBuzz text shaping engine
http://harfbuzz.github.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
tests = [ |
|
'hb-shape-fuzzer.cc', |
|
'hb-subset-fuzzer.cc', |
|
'hb-set-fuzzer.cc', |
|
'hb-draw-fuzzer.cc', |
|
] |
|
|
|
foreach file_name : tests |
|
test_name = file_name.split('.')[0].underscorify() |
|
|
|
exe = executable(test_name, [file_name, 'main.cc'], |
|
cpp_args: cpp_args, |
|
include_directories: [incconfig, incsrc], |
|
dependencies: deps, |
|
link_with: [libharfbuzz, libharfbuzz_subset], |
|
install: false, |
|
) |
|
set_variable('@0@_exe'.format(test_name.underscorify()), exe) |
|
endforeach |
|
|
|
env = environment() |
|
env.set('srcdir', meson.current_source_dir()) |
|
|
|
test('shape_fuzzer', find_program('run-shape-fuzzer-tests.py'), |
|
args: [ |
|
hb_shape_fuzzer_exe, |
|
], |
|
depends: [hb_shape_fuzzer_exe, libharfbuzz, libharfbuzz_subset], |
|
workdir: join_paths(meson.current_build_dir(), '..', '..'), |
|
env: env) |
|
|
|
test('subset_fuzzer', find_program('run-subset-fuzzer-tests.py'), |
|
args: [ |
|
hb_subset_fuzzer_exe, |
|
], |
|
# as the tests are ran concurrently let's raise acceptable time here |
|
# ideally better to break and let meson handles them in parallel |
|
timeout: 120, |
|
is_parallel: false |
|
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)
|
|
|