Files
harfbuzz/test/subset/meson.build
T
Qunxin Liu d5fc4a73c0 [instance] add tests for featureVariations
Also updated the script that is used to generate tests.With fonttools,
we now do instancing first and then subsetting.

With different order of subsetting and instancing operations on the same
VF file, fonttools seems to generate 2 different font files with different
glyph set.
1. do subsetting and then instancing: this seems result in a larger glyph
   set in the font file. Lookups are collected from both retained features
   and all possible alternate featurevariations, this leads to a larger
   glyph set after glyph closurei. And instancer doesn't redo glyph
   closure, it does lookups pruning only.

2. do instancing and then subsetting: lookups are collected from
   features that are replaced already and possible alternate feature
   variations
2022-09-29 12:14:43 -06:00

102 lines
2.1 KiB
Meson

tests = [
'basics',
'full-font',
'cff-full-font',
'japanese',
'cff-japanese',
'cff.notoserifmyanmar',
'glyf_bug_3131',
'layout',
'layout.gpos',
'layout.gpos2',
'layout.gpos3',
'layout.gpos4',
'layout.gpos5',
'layout.gpos6',
'layout.gpos8',
'layout.gpos8.amiri',
'layout.gpos9',
'layout.gsub3',
'layout.gsub5',
'layout.gsub5_format2',
'layout.gsub6',
'layout.gsub8',
'layout.gdef',
'layout.gdef.glyphset',
'layout.khmer',
'layout.context',
'layout.context_format2',
'layout.gdef-varstore',
'layout.gdef-attachlist',
'layout.notonastaliqurdu',
'layout.tinos',
'layout.duplicate_features',
'layout.unsorted_featurelist',
'layout.drop_feature',
'layout.default_features',
'cmap',
'cmap14',
'sbix',
'colr',
'colr_glyphs',
'math',
'math_coverage_offset',
# TODO: re-enable once colrv1 subsetting is stabilized.
# 'colrv1.notoemoji',
'colrv1',
'colr_with_components',
'cbdt',
'variable',
'glyph_names',
'post',
'32bit_var_store',
# instacing tests, enable when --instance is not experimental
# 'pin_all_at_default',
# 'instantiate_glyf',
# 'full_instance',
# 'instance_feature_variations',
]
repack_tests = [
'basic',
'prioritization',
'table_duplication',
'isolation',
'advanced_prioritization',
'space_splitting',
]
run_test = find_program('run-tests.py')
foreach t : tests
fname = '@0@.tests'.format(t)
test(t, run_test,
args: [
hb_subset,
meson.current_source_dir() / 'data' / 'tests' / fname,
],
# as the tests are ran concurrently let's raise acceptable time here
# ideally better to break and let meson handles them in parallel
timeout: 500,
workdir: meson.current_build_dir() / '..' / '..',
suite: 'subset',
)
endforeach
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,
meson.current_source_dir() / 'data' / 'repack_tests' / fname,
],
workdir: meson.current_build_dir() / '..' / '..',
suite: ['subset', 'repack'],
)
endforeach