From 6a1427401c76db73081e478c4ff49fcc75420de6 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 6 Mar 2023 21:37:29 -0500 Subject: tests: add a python test for bytecode compilation Some tweaks are added to the test case so that it supports python2 as well. --- test cases/python/2 extmodule/ext/nested/meson.build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test cases/python/2 extmodule/ext/nested/meson.build') diff --git a/test cases/python/2 extmodule/ext/nested/meson.build b/test cases/python/2 extmodule/ext/nested/meson.build index 34c119273..4a7ec7675 100644 --- a/test cases/python/2 extmodule/ext/nested/meson.build +++ b/test cases/python/2 extmodule/ext/nested/meson.build @@ -13,3 +13,20 @@ py.install_sources( pure: false, subdir: 'nested', ) + + +py2.extension_module('tachyon', + '../tachyon_module.c', + c_args: '-DMESON_MODULENAME="nested.tachyon"', + install: true, + subdir: 'nested' +) +py2.install_sources( + configure_file( + input: '../../blaster.py.in', + output: 'blaster.py', + configuration: {'tachyon_module': 'nested.tachyon'} + ), + pure: false, + subdir: 'nested', +) -- cgit v1.2.3