diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-09 00:18:18 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-10 02:16:54 -0500 |
commit | 94a190baa2b0f861f0be352dd42b05c4162438fc (patch) | |
tree | ec6d7c7d0f3ef15884d0ab9e6caccea322d5bea6 /test cases | |
parent | 84dd78e80d7e9db1febf6a0016730e2ab6f7a352 (diff) | |
download | meson-94a190baa2b0f861f0be352dd42b05c4162438fc.zip meson-94a190baa2b0f861f0be352dd42b05c4162438fc.tar.gz meson-94a190baa2b0f861f0be352dd42b05c4162438fc.tar.bz2 |
cython: add unittest to verify that depfiles work
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/cython/2 generated sources/meson.build | 5 | ||||
-rw-r--r-- | test cases/cython/2 generated sources/simpleinclude.pyx | 1 | ||||
-rw-r--r-- | test cases/cython/2 generated sources/simplestuff.pxi | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/test cases/cython/2 generated sources/meson.build b/test cases/cython/2 generated sources/meson.build index cffddd3..498e319 100644 --- a/test cases/cython/2 generated sources/meson.build +++ b/test cases/cython/2 generated sources/meson.build @@ -90,6 +90,11 @@ includestuff_ext = py3.extension_module( dependencies: stuff_pxi_dep ) +simpleinclude_ext = py3.extension_module( + 'simpleinclude', + 'simpleinclude.pyx', +) + subdir('libdir') test( diff --git a/test cases/cython/2 generated sources/simpleinclude.pyx b/test cases/cython/2 generated sources/simpleinclude.pyx new file mode 100644 index 0000000..c110f75 --- /dev/null +++ b/test cases/cython/2 generated sources/simpleinclude.pyx @@ -0,0 +1 @@ +include "simplestuff.pxi" diff --git a/test cases/cython/2 generated sources/simplestuff.pxi b/test cases/cython/2 generated sources/simplestuff.pxi new file mode 100644 index 0000000..2645216 --- /dev/null +++ b/test cases/cython/2 generated sources/simplestuff.pxi @@ -0,0 +1,2 @@ +def func2(): + print("Hello world") |