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',
|
2020-04-20 22:43:13 +02:00
|
|
|
'layout',
|
|
|
|
'layout.gpos',
|
|
|
|
'layout.gpos2',
|
|
|
|
'layout.gpos3',
|
|
|
|
'layout.gpos4',
|
|
|
|
'layout.gpos6',
|
|
|
|
'layout.gsub3',
|
|
|
|
'layout.gsub6',
|
|
|
|
'layout.gdef',
|
2020-04-23 00:58:41 +02:00
|
|
|
'cmap',
|
2020-03-11 16:59:47 +01:00
|
|
|
'cmap14',
|
|
|
|
'sbix',
|
|
|
|
'colr',
|
|
|
|
'cbdt',
|
|
|
|
]
|
2018-05-17 01:28:53 +02: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)
|
|
|
|
|
2020-04-20 22:43:13 +02:00
|
|
|
# layout test are enabled only under experimental API flag for now
|
2020-05-21 17:03:18 +02:00
|
|
|
if t.contains('layout') and not get_option('experimental_api')
|
2020-04-20 22:43:13 +02:00
|
|
|
continue
|
|
|
|
endif
|
|
|
|
|
2018-12-01 22:15:33 +01:00
|
|
|
test(t, run_test,
|
|
|
|
args: [
|
|
|
|
hb_subset,
|
2020-05-21 14:31:04 +02: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,
|
2020-05-21 14:31:04 +02:00
|
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
2020-05-30 11:47:56 +02:00
|
|
|
suite: ['subset'],
|
2018-12-01 22:15:33 +01:00
|
|
|
)
|
|
|
|
endforeach
|