[tests] Add tests for platform shapers

Fixes https://github.com/harfbuzz/harfbuzz/issues/3115
This commit is contained in:
Khaled Hosny 2021-12-01 19:29:34 +02:00
parent 7608b19167
commit 6c81cd9543
5 changed files with 27 additions and 1 deletions

View File

@ -1,4 +1,4 @@
in_house_tests = [
in_house_tests_base = [
'aat-morx.tests',
'aat-trak.tests',
'arabic-fallback-shaping.tests',
@ -67,3 +67,15 @@ in_house_tests = [
'vertical.tests',
'zero-width-marks.tests',
]
in_house_tests_coretext = [
'coretext.tests',
]
in_house_tests_uniscribe = [
'uniscribe.tests',
]
in_house_tests_directwrite = [
'directwrite.tests',
]

View File

@ -0,0 +1 @@
../fonts/872d2955d326bd6676a06f66b8238ebbaabc212f.ttf;--shaper=coretext;U+0628,U+0628,U+0628;[uni0628.fina=2+883|uni0628.medi_High=1+244|uni0628.init_High=0+233]

View File

@ -0,0 +1 @@
../fonts/872d2955d326bd6676a06f66b8238ebbaabc212f.ttf;--shaper=directwrite;U+0628,U+0628,U+0628;[uni0628.fina=2+883|uni0628.medi_High=1+244|uni0628.init_High=0+233]

View File

@ -0,0 +1 @@
../fonts/872d2955d326bd6676a06f66b8238ebbaabc212f.ttf;--shaper=uniscribe;U+0628,U+0628,U+0628;[uni0628.fina=2+883|uni0628.medi_High=1+244|uni0628.init_High=0+233]

View File

@ -8,6 +8,17 @@ shaping_run_tests_py = find_program('run-tests.py')
env = environment()
env.set('HAVE_FREETYPE', '@0@'.format(conf.get('HAVE_FREETYPE', 0)))
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
foreach file_name : in_house_tests
test_name = file_name.split('.')[0]