Debian Codegraph @

tests/meson.build

raw
1 test_sources = [
2 'hypothesis_fspaths.py',
3 '__init__.py',
4 'test_api.py',
5 'test_cmod.py',
6 'test_context.py',
7 'test_device.py',
8 'test_enums.py',
9 'test_error.py',
10 'test_font.py',
11 'test_glyph.py',
12 'test_hypothesis.py',
13 'test_matrix.py',
14 'test_path.py',
15 'test_pattern.py',
16 'test_rectangle.py',
17 'test_region.py',
18 'test_surface_numpy.py',
19 'test_surface.py',
20 'test_surface_pygame.py',
21 'test_textcluster.py',
22 'test_textextents.py',
23 'test_typing.py',
24 ]
25
26 mod_sources = [
27 join_paths('cmodule', 'cmodule.c'),
28 join_paths('cmodule', 'cmodulelib.c'),
29 ]
30
31 python.extension_module('cmod', mod_sources,
32 dependencies : [cairo_dep],
33 install: false,
34 include_directories: include_directories('../cairo'),
35 c_args: pyext_c_args + main_c_args + ['-DPY_SSIZE_T_CLEAN'],
36 )
37
38 foreach python_file : test_sources
39 fs.copyfile(python_file, python_file)
40 endforeach
41
42 test(
43 'tests', python,
44 workdir: meson.project_build_root(),
45 args: ['-m', 'pytest'],
46 )