2018-05-17 01:28:53 +02:00
|
|
|
|
2020-06-11 16:34:08 +02:00
|
|
|
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
|
|
|
|
2020-05-29 13:41:32 +02:00
|
|
|
shaping_run_tests_py = find_program('run-tests.py')
|
|
|
|
|
2020-07-02 15:04:24 +02:00
|
|
|
env = environment()
|
2020-07-04 12:32:19 +02:00
|
|
|
env.set('NO_FT_FUNCS', conf.get('HAVE_FREETYPE', 0) == 1 ? '0' : '1')
|
2020-07-02 15:04:24 +02:00
|
|
|
|
2020-03-24 16:03:31 +01:00
|
|
|
foreach file_name : in_house_tests
|
|
|
|
test_name = file_name.split('.')[0].underscorify()
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-05-29 13:41:32 +02:00
|
|
|
test(test_name, shaping_run_tests_py,
|
2018-05-17 01:28:53 +02:00
|
|
|
args: [
|
2018-05-18 01:25:22 +02:00
|
|
|
hb_shape,
|
2020-05-21 14:31:04 +02:00
|
|
|
meson.current_source_dir() / 'data' / 'in-house' / 'tests' / file_name,
|
2018-05-17 01:28:53 +02:00
|
|
|
],
|
2020-07-02 15:04:24 +02:00
|
|
|
env: env,
|
2020-05-21 14:31:04 +02:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2020-05-30 11:47:56 +02:00
|
|
|
suite: ['shaping', 'in-house'],
|
2018-05-17 01:28:53 +02:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-03-24 16:03:31 +01:00
|
|
|
foreach file_name : aots_tests
|
|
|
|
test_name = file_name.split('.')[0].underscorify()
|
2018-12-02 01:33:43 +01:00
|
|
|
|
2020-05-29 13:41:32 +02:00
|
|
|
test(test_name, shaping_run_tests_py,
|
2018-12-02 01:33:43 +01:00
|
|
|
args: [
|
|
|
|
hb_shape,
|
2020-05-21 14:31:04 +02:00
|
|
|
meson.current_source_dir() / 'data' / 'aots' / 'tests' / file_name,
|
2018-12-02 01:33:43 +01:00
|
|
|
],
|
2020-07-02 15:04:24 +02:00
|
|
|
env: env,
|
2020-05-21 14:31:04 +02:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2020-05-30 11:47:56 +02:00
|
|
|
suite: ['shaping', 'aots'],
|
2018-12-02 01:33:43 +01:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-03-24 16:03:31 +01:00
|
|
|
foreach file_name : text_rendering_tests
|
|
|
|
test_name = file_name.split('.')[0].underscorify()
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-05-29 13:41:32 +02:00
|
|
|
test(test_name, shaping_run_tests_py,
|
2018-05-17 01:28:53 +02:00
|
|
|
args: [
|
2018-05-18 01:25:22 +02:00
|
|
|
hb_shape,
|
2020-05-21 14:31:04 +02:00
|
|
|
meson.current_source_dir() / 'data' / 'text-rendering-tests' / 'tests' / file_name,
|
2018-05-17 01:28:53 +02:00
|
|
|
],
|
2020-07-02 15:04:24 +02:00
|
|
|
env: env,
|
2020-05-21 14:31:04 +02:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2020-05-30 11:47:56 +02:00
|
|
|
suite: ['shaping', 'text-rendering-tests'],
|
2018-05-17 01:28:53 +02:00
|
|
|
)
|
|
|
|
endforeach
|