2020-03-11 16:59:47 +01:00
|
|
|
tests = [
|
2020-03-11 18:00:41 +01:00
|
|
|
'basics',
|
2020-03-11 16:59:47 +01:00
|
|
|
'full-font',
|
|
|
|
'cff-full-font',
|
|
|
|
'japanese',
|
2020-03-11 18:00:41 +01:00
|
|
|
'cff-japanese',
|
2021-07-14 22:46:36 +02:00
|
|
|
'cff.notoserifmyanmar',
|
2021-08-10 20:41:55 +02:00
|
|
|
'glyf_bug_3131',
|
2020-04-20 22:43:13 +02:00
|
|
|
'layout',
|
|
|
|
'layout.gpos',
|
|
|
|
'layout.gpos2',
|
|
|
|
'layout.gpos3',
|
|
|
|
'layout.gpos4',
|
2020-10-10 01:46:46 +02:00
|
|
|
'layout.gpos5',
|
2020-04-20 22:43:13 +02:00
|
|
|
'layout.gpos6',
|
2020-06-04 07:48:35 +02:00
|
|
|
'layout.gpos8',
|
2020-09-28 22:24:25 +02:00
|
|
|
'layout.gpos8.amiri',
|
2020-10-06 22:02:12 +02:00
|
|
|
'layout.gpos9',
|
2020-04-20 22:43:13 +02:00
|
|
|
'layout.gsub3',
|
2021-01-12 19:17:14 +01:00
|
|
|
'layout.gsub5',
|
2021-10-30 02:11:53 +02:00
|
|
|
'layout.gsub5_format2',
|
2020-04-20 22:43:13 +02:00
|
|
|
'layout.gsub6',
|
2021-03-19 01:41:25 +01:00
|
|
|
'layout.gsub8',
|
2020-04-20 22:43:13 +02:00
|
|
|
'layout.gdef',
|
2021-11-02 23:02:36 +01:00
|
|
|
'layout.gdef.glyphset',
|
2021-04-01 23:32:38 +02:00
|
|
|
'layout.khmer',
|
2020-06-04 07:48:35 +02:00
|
|
|
'layout.context',
|
2021-11-19 01:53:36 +01:00
|
|
|
'layout.context_format2',
|
2020-06-04 07:48:35 +02:00
|
|
|
'layout.gdef-varstore',
|
|
|
|
'layout.gdef-attachlist',
|
2020-11-04 20:11:16 +01:00
|
|
|
'layout.notonastaliqurdu',
|
2021-09-02 20:54:37 +02:00
|
|
|
'layout.tinos',
|
2021-09-13 05:16:30 +02:00
|
|
|
'layout.duplicate_features',
|
2021-10-31 22:38:20 +01:00
|
|
|
'layout.unsorted_featurelist',
|
2021-11-18 01:42:08 +01:00
|
|
|
'layout.drop_feature',
|
2020-04-23 00:58:41 +02:00
|
|
|
'cmap',
|
2020-03-11 16:59:47 +01:00
|
|
|
'cmap14',
|
|
|
|
'sbix',
|
|
|
|
'colr',
|
2021-12-06 04:27:57 +01:00
|
|
|
'colr_glyphs',
|
2021-09-20 23:42:51 +02:00
|
|
|
'math',
|
2021-12-03 04:50:16 +01:00
|
|
|
'math_coverage_offset',
|
2022-11-03 20:49:49 +01:00
|
|
|
# TODO: re-enable once colrv1 subsetting is stabilized.
|
|
|
|
# 'colrv1.notoemoji',
|
2021-10-03 05:32:30 +02:00
|
|
|
'colrv1',
|
2021-05-05 01:48:41 +02:00
|
|
|
'colr_with_components',
|
2020-03-11 16:59:47 +01:00
|
|
|
'cbdt',
|
2021-03-25 20:17:18 +01:00
|
|
|
'variable',
|
2021-08-19 05:46:06 +02:00
|
|
|
'glyph_names',
|
2021-11-08 18:36:31 +01:00
|
|
|
'post',
|
2022-06-01 20:02:03 +02:00
|
|
|
'32bit_var_store',
|
2022-12-12 21:24:24 +01:00
|
|
|
'pin_all_at_default',
|
|
|
|
'instantiate_glyf',
|
|
|
|
'full_instance',
|
|
|
|
'instance_feature_variations',
|
2020-03-11 16:59:47 +01:00
|
|
|
]
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-11-10 20:56:09 +01:00
|
|
|
repack_tests = [
|
|
|
|
'basic',
|
|
|
|
'prioritization',
|
|
|
|
'table_duplication',
|
2021-09-09 19:40:08 +02:00
|
|
|
'isolation',
|
2021-10-05 21:53:21 +02:00
|
|
|
'advanced_prioritization',
|
|
|
|
'space_splitting',
|
2020-11-10 20:56:09 +01:00
|
|
|
]
|
|
|
|
|
2018-12-01 22:15:33 +01:00
|
|
|
run_test = find_program('run-tests.py')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2018-12-01 22:15:33 +01:00
|
|
|
foreach t : tests
|
|
|
|
fname = '@0@.tests'.format(t)
|
|
|
|
|
|
|
|
test(t, run_test,
|
|
|
|
args: [
|
|
|
|
hb_subset,
|
2021-11-20 16:09:15 +01:00
|
|
|
meson.current_source_dir() / 'data' / 'tests' / fname,
|
2018-12-01 22:15:33 +01:00
|
|
|
],
|
2020-03-24 16:09:42 +01:00
|
|
|
# as the tests are ran concurrently let's raise acceptable time here
|
|
|
|
# ideally better to break and let meson handles them in parallel
|
2020-05-21 11:53:36 +02:00
|
|
|
timeout: 500,
|
2021-11-20 16:09:15 +01:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2021-08-04 04:12:31 +02:00
|
|
|
suite: 'subset',
|
2018-12-01 22:15:33 +01:00
|
|
|
)
|
|
|
|
endforeach
|
2020-11-10 20:56:09 +01:00
|
|
|
|
|
|
|
run_repack_test = find_program('run-repack-tests.py')
|
|
|
|
|
|
|
|
foreach t : repack_tests
|
|
|
|
fname = '@0@.tests'.format(t)
|
|
|
|
|
|
|
|
test(t, run_repack_test,
|
|
|
|
args: [
|
|
|
|
hb_subset,
|
2021-11-20 16:09:15 +01:00
|
|
|
meson.current_source_dir() / 'data' / 'repack_tests' / fname,
|
2020-11-10 20:56:09 +01:00
|
|
|
],
|
2021-11-20 16:09:15 +01:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2020-11-10 20:56:09 +01:00
|
|
|
suite: ['subset', 'repack'],
|
|
|
|
)
|
|
|
|
endforeach
|