From 17bfbb99e5897ac759aca42d3ee375ebb33bd087 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 31 Jul 2018 19:22:24 +0300 Subject: Condense test dirs. --- test cases/unit/37 python extmodule/meson.build | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test cases/unit/37 python extmodule/meson.build (limited to 'test cases/unit/37 python extmodule/meson.build') diff --git a/test cases/unit/37 python extmodule/meson.build b/test cases/unit/37 python extmodule/meson.build new file mode 100644 index 000000000..479865482 --- /dev/null +++ b/test cases/unit/37 python extmodule/meson.build @@ -0,0 +1,23 @@ +project('Python extension module', 'c', + default_options : ['buildtype=release']) + +py_mod = import('python') + +py = py_mod.find_installation(get_option('python'), required : false) + +if py.found() + py_dep = py.dependency() + + if py_dep.found() + subdir('ext') + + test('extmod', + py, + args : files('blaster.py'), + env : ['PYTHONPATH=' + pypathdir]) + else + error('MESON_SKIP_TEST: Python libraries not found, skipping test.') + endif +else + error('MESON_SKIP_TEST: Python not found, skipping test.') +endif -- cgit v1.2.3