From d1abdce88fa263b6e532901564e44ca510df1065 Mon Sep 17 00:00:00 2001 From: Andrew McNulty Date: Wed, 8 May 2024 14:51:25 +0200 Subject: 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. --- test cases/python/9 extmodule limited api/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test cases/python/9 extmodule limited api/meson.build') diff --git a/test cases/python/9 extmodule limited api/meson.build b/test cases/python/9 extmodule limited api/meson.build index 68afc96..bdf1b7b 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() +) -- cgit v1.1