harfbuzz/test/shape/meson.build

52 lines
1.4 KiB
Meson
Raw Normal View History

subdir('data/in-house') # in_house_tests
subdir('data/aots') # aots_tests
subdir('data/text-rendering-tests') # text_rendering_tests
2018-11-14 23:25:41 +01:00
shaping_run_tests_py = find_program('run-tests.py')
env = environment()
env.set('HAVE_FREETYPE', '@0@'.format(conf.get('HAVE_FREETYPE', 0)))
foreach file_name : in_house_tests
test_name = file_name.split('.')[0].underscorify()
test(test_name, shaping_run_tests_py,
args: [
hb_shape,
2020-08-12 21:43:06 +02:00
join_paths(meson.current_source_dir(), 'data', 'in-house', 'tests', file_name),
],
env: env,
2020-08-12 21:43:06 +02:00
workdir: join_paths(meson.current_build_dir(), '..', '..'),
suite: ['shaping', 'in-house'],
)
endforeach
foreach file_name : aots_tests
test_name = file_name.split('.')[0].underscorify()
2018-12-02 01:33:43 +01:00
test(test_name, shaping_run_tests_py,
2018-12-02 01:33:43 +01:00
args: [
hb_shape,
2020-08-12 21:43:06 +02:00
join_paths(meson.current_source_dir(), 'data', 'aots', 'tests', file_name),
2018-12-02 01:33:43 +01:00
],
env: env,
2020-08-12 21:43:06 +02:00
workdir: join_paths(meson.current_build_dir(), '..', '..'),
suite: ['shaping', 'aots'],
2018-12-02 01:33:43 +01:00
)
endforeach
foreach file_name : text_rendering_tests
test_name = file_name.split('.')[0].underscorify()
test(test_name, shaping_run_tests_py,
args: [
hb_shape,
2020-08-12 21:43:06 +02:00
join_paths(meson.current_source_dir(), 'data', 'text-rendering-tests', 'tests', file_name),
],
env: env,
2020-08-12 21:43:06 +02:00
workdir: join_paths(meson.current_build_dir(), '..', '..'),
suite: ['shaping', 'text-rendering-tests'],
)
endforeach