meson.build 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. tests = [
  2. 'basics',
  3. 'full-font',
  4. 'cff-full-font',
  5. 'japanese',
  6. 'cff-japanese',
  7. 'cff.notoserifmyanmar',
  8. 'glyf_bug_3131',
  9. 'layout',
  10. 'layout.gpos',
  11. 'layout.gpos2',
  12. 'layout.gpos3',
  13. 'layout.gpos4',
  14. 'layout.gpos5',
  15. 'layout.gpos6',
  16. 'layout.gpos8',
  17. 'layout.gpos8.amiri',
  18. 'layout.gpos9',
  19. 'layout.gsub3',
  20. 'layout.gsub5',
  21. 'layout.gsub5_format2',
  22. 'layout.gsub6',
  23. 'layout.gsub8',
  24. 'layout.gdef',
  25. 'layout.gdef.glyphset',
  26. 'layout.khmer',
  27. 'layout.context',
  28. 'layout.context_format2',
  29. 'layout.gdef-varstore',
  30. 'layout.gdef-attachlist',
  31. 'layout.notonastaliqurdu',
  32. 'layout.tinos',
  33. 'layout.duplicate_features',
  34. 'layout.unsorted_featurelist',
  35. 'layout.drop_feature',
  36. 'cmap',
  37. 'cmap14',
  38. 'sbix',
  39. 'colr',
  40. 'colr_glyphs',
  41. 'math',
  42. 'math_coverage_offset',
  43. # TODO: re-enable once colrv1 subsetting is stabilized.
  44. # 'colrv1.notoemoji',
  45. 'colrv1',
  46. 'colr_with_components',
  47. 'cbdt',
  48. 'variable',
  49. 'glyph_names',
  50. 'post',
  51. '32bit_var_store',
  52. 'pin_all_at_default',
  53. 'instantiate_glyf',
  54. 'full_instance',
  55. 'instance_feature_variations',
  56. ]
  57. repack_tests = [
  58. 'basic',
  59. 'prioritization',
  60. 'table_duplication',
  61. 'isolation',
  62. 'advanced_prioritization',
  63. 'space_splitting',
  64. ]
  65. run_test = find_program('run-tests.py')
  66. foreach t : tests
  67. fname = '@0@.tests'.format(t)
  68. test(t, run_test,
  69. args: [
  70. hb_subset,
  71. meson.current_source_dir() / 'data' / 'tests' / fname,
  72. ],
  73. # as the tests are ran concurrently let's raise acceptable time here
  74. # ideally better to break and let meson handles them in parallel
  75. timeout: 500,
  76. workdir: meson.current_build_dir() / '..' / '..',
  77. suite: 'subset',
  78. )
  79. endforeach
  80. run_repack_test = find_program('run-repack-tests.py')
  81. foreach t : repack_tests
  82. fname = '@0@.tests'.format(t)
  83. test(t, run_repack_test,
  84. args: [
  85. hb_subset,
  86. meson.current_source_dir() / 'data' / 'repack_tests' / fname,
  87. ],
  88. workdir: meson.current_build_dir() / '..' / '..',
  89. suite: ['subset', 'repack'],
  90. )
  91. endforeach