summaryrefslogtreecommitdiff
path: root/test cases/python/9 extmodule limited api/meson.build
diff options
context:
space:
mode:
authorAndrew McNulty <amcn102@gmail.com>2024-05-08 14:51:25 +0200
committerAndrew McNulty <amcn102@gmail.com>2024-06-11 19:47:31 +0200
commitd1abdce88fa263b6e532901564e44ca510df1065 (patch)
tree30e7de1076b4fd147c0b2d8bec666ed0f5aebdba /test cases/python/9 extmodule limited api/meson.build
parent141100e482e440dd08ea8b5b042927cac968f112 (diff)
downloadmeson-d1abdce88fa263b6e532901564e44ca510df1065.tar.gz
Python: add load test to limited API test
Based on the example in GH issue #13167, the limited API test has been extended with a test to load the compiled module to ensure it can be loaded correctly.
Diffstat (limited to 'test cases/python/9 extmodule limited api/meson.build')
-rw-r--r--test cases/python/9 extmodule limited api/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/python/9 extmodule limited api/meson.build b/test cases/python/9 extmodule limited api/meson.build
index 68afc9699..bdf1b7b90 100644
--- a/test cases/python/9 extmodule limited api/meson.build
+++ b/test cases/python/9 extmodule limited api/meson.build
@@ -14,3 +14,10 @@ ext_mod = py.extension_module('not_limited',
'not_limited.c',
install: true,
)
+
+test('load-test',
+ py,
+ args: [files('test_limited.py')],
+ env: { 'PYTHONPATH': meson.current_build_dir() },
+ workdir: meson.current_source_dir()
+)