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
|
|
|
|
2022-02-15 23:57:23 +01:00
|
|
|
shape_run_tests_py = find_program('run-tests.py')
|
2020-05-29 13:41:32 +02:00
|
|
|
|
2020-07-02 15:04:24 +02:00
|
|
|
env = environment()
|
2020-07-06 09:27:45 +02:00
|
|
|
env.set('HAVE_FREETYPE', '@0@'.format(conf.get('HAVE_FREETYPE', 0)))
|
2020-07-02 15:04:24 +02:00
|
|
|
|
2021-12-01 18:29:34 +01:00
|
|
|
in_house_tests = in_house_tests_base
|
|
|
|
if conf.get('HAVE_CORETEXT', 0) == 1
|
|
|
|
in_house_tests += in_house_tests_coretext
|
|
|
|
endif
|
|
|
|
if conf.get('HAVE_UNISCRIBE', 0) == 1
|
|
|
|
in_house_tests += in_house_tests_uniscribe
|
|
|
|
endif
|
|
|
|
if conf.get('HAVE_DIRECTWRITE', 0) == 1
|
|
|
|
in_house_tests += in_house_tests_directwrite
|
|
|
|
endif
|
|
|
|
|
2020-03-24 16:03:31 +01:00
|
|
|
foreach file_name : in_house_tests
|
2021-09-03 16:20:06 +02:00
|
|
|
test_name = file_name.split('.')[0]
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2022-02-15 23:57:23 +01:00
|
|
|
test(test_name, shape_run_tests_py,
|
2018-05-17 01:28:53 +02:00
|
|
|
args: [
|
2018-05-18 01:25:22 +02:00
|
|
|
hb_shape,
|
2021-11-20 16:09:15 +01: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,
|
2021-11-20 16:09:15 +01:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2022-02-15 23:57:23 +01:00
|
|
|
suite: ['shape', 'in-house'],
|
2018-05-17 01:28:53 +02:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-03-24 16:03:31 +01:00
|
|
|
foreach file_name : aots_tests
|
2021-09-03 16:20:06 +02:00
|
|
|
test_name = file_name.split('.')[0]
|
2018-12-02 01:33:43 +01:00
|
|
|
|
2022-02-15 23:57:23 +01:00
|
|
|
test(test_name, shape_run_tests_py,
|
2018-12-02 01:33:43 +01:00
|
|
|
args: [
|
|
|
|
hb_shape,
|
2021-11-20 16:09:15 +01: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,
|
2021-11-20 16:09:15 +01:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2022-02-15 23:57:23 +01:00
|
|
|
suite: ['shape', 'aots'],
|
2018-12-02 01:33:43 +01:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-03-24 16:03:31 +01:00
|
|
|
foreach file_name : text_rendering_tests
|
2021-09-03 16:20:06 +02:00
|
|
|
test_name = file_name.split('.')[0]
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2022-02-15 23:57:23 +01:00
|
|
|
test(test_name, shape_run_tests_py,
|
2018-05-17 01:28:53 +02:00
|
|
|
args: [
|
2018-05-18 01:25:22 +02:00
|
|
|
hb_shape,
|
2021-11-20 16:09:15 +01: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,
|
2021-11-20 16:09:15 +01:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2022-02-15 23:57:23 +01:00
|
|
|
suite: ['shape', 'text-rendering-tests'],
|
2018-05-17 01:28:53 +02:00
|
|
|
)
|
|
|
|
endforeach
|