• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2subdir('data/in-house') # in_house_tests
3subdir('data/aots') # aots_tests
4subdir('data/text-rendering-tests') # text_rendering_tests
5
6shaping_run_tests_py = find_program('run-tests.py')
7
8env = environment()
9env.set('HAVE_FREETYPE', '@0@'.format(conf.get('HAVE_FREETYPE', 0)))
10
11foreach file_name : in_house_tests
12  test_name = file_name.split('.')[0]
13
14  test(test_name, shaping_run_tests_py,
15    args: [
16      hb_shape,
17      meson.current_source_dir() / 'data' / 'in-house' / 'tests' / file_name,
18    ],
19    env: env,
20    workdir: meson.current_build_dir() / '..' / '..',
21    suite: ['shaping', 'in-house'],
22  )
23endforeach
24
25foreach file_name : aots_tests
26  test_name = file_name.split('.')[0]
27
28  test(test_name, shaping_run_tests_py,
29    args: [
30      hb_shape,
31      meson.current_source_dir() / 'data' / 'aots' / 'tests' / file_name,
32    ],
33    env: env,
34    workdir: meson.current_build_dir() / '..' / '..',
35    suite: ['shaping', 'aots'],
36  )
37endforeach
38
39foreach file_name : text_rendering_tests
40  test_name = file_name.split('.')[0]
41
42  test(test_name, shaping_run_tests_py,
43    args: [
44      hb_shape,
45      meson.current_source_dir() / 'data' / 'text-rendering-tests' / 'tests' / file_name,
46    ],
47    env: env,
48    workdir: meson.current_build_dir() / '..' / '..',
49    suite: ['shaping', 'text-rendering-tests'],
50  )
51endforeach
52