2018-05-16 23:28:53 +00:00
|
|
|
|
2020-06-11 14:34:08 +00:00
|
|
|
subdir('data/in-house') # in_house_tests
|
|
|
|
subdir('data/aots') # aots_tests
|
|
|
|
subdir('data/text-rendering-tests') # text_rendering_tests
|
2018-11-14 22:25:41 +00:00
|
|
|
|
2020-05-29 11:41:32 +00:00
|
|
|
shaping_run_tests_py = find_program('run-tests.py')
|
|
|
|
|
2020-07-02 13:04:24 +00:00
|
|
|
env = environment()
|
2020-07-06 07:27:45 +00:00
|
|
|
env.set('HAVE_FREETYPE', '@0@'.format(conf.get('HAVE_FREETYPE', 0)))
|
2020-07-02 13:04:24 +00:00
|
|
|
|
2020-03-24 15:03:31 +00:00
|
|
|
foreach file_name : in_house_tests
|
|
|
|
test_name = file_name.split('.')[0].underscorify()
|
2018-05-16 23:28:53 +00:00
|
|
|
|
2020-05-29 11:41:32 +00:00
|
|
|
test(test_name, shaping_run_tests_py,
|
2018-05-16 23:28:53 +00:00
|
|
|
args: [
|
2018-05-17 23:25:22 +00:00
|
|
|
hb_shape,
|
2020-08-12 19:43:06 +00:00
|
|
|
join_paths(meson.current_source_dir(), 'data', 'in-house', 'tests', file_name),
|
2018-05-16 23:28:53 +00:00
|
|
|
],
|
2020-07-02 13:04:24 +00:00
|
|
|
env: env,
|
2020-08-12 19:43:06 +00:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
2020-05-30 09:47:56 +00:00
|
|
|
suite: ['shaping', 'in-house'],
|
2018-05-16 23:28:53 +00:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-03-24 15:03:31 +00:00
|
|
|
foreach file_name : aots_tests
|
|
|
|
test_name = file_name.split('.')[0].underscorify()
|
2018-12-02 00:33:43 +00:00
|
|
|
|
2020-05-29 11:41:32 +00:00
|
|
|
test(test_name, shaping_run_tests_py,
|
2018-12-02 00:33:43 +00:00
|
|
|
args: [
|
|
|
|
hb_shape,
|
2020-08-12 19:43:06 +00:00
|
|
|
join_paths(meson.current_source_dir(), 'data', 'aots', 'tests', file_name),
|
2018-12-02 00:33:43 +00:00
|
|
|
],
|
2020-07-02 13:04:24 +00:00
|
|
|
env: env,
|
2020-08-12 19:43:06 +00:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
2020-05-30 09:47:56 +00:00
|
|
|
suite: ['shaping', 'aots'],
|
2018-12-02 00:33:43 +00:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-03-24 15:03:31 +00:00
|
|
|
foreach file_name : text_rendering_tests
|
|
|
|
test_name = file_name.split('.')[0].underscorify()
|
2018-05-16 23:28:53 +00:00
|
|
|
|
2020-05-29 11:41:32 +00:00
|
|
|
test(test_name, shaping_run_tests_py,
|
2018-05-16 23:28:53 +00:00
|
|
|
args: [
|
2018-05-17 23:25:22 +00:00
|
|
|
hb_shape,
|
2020-08-12 19:43:06 +00:00
|
|
|
join_paths(meson.current_source_dir(), 'data', 'text-rendering-tests', 'tests', file_name),
|
2018-05-16 23:28:53 +00:00
|
|
|
],
|
2020-07-02 13:04:24 +00:00
|
|
|
env: env,
|
2020-08-12 19:43:06 +00:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
2020-05-30 09:47:56 +00:00
|
|
|
suite: ['shaping', 'text-rendering-tests'],
|
2018-05-16 23:28:53 +00:00
|
|
|
)
|
|
|
|
endforeach
|