1
0
mirror of https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git synced 2026-10-24 00:48:53 +03:00
Files
libgpiod/bindings/python/tests/meson.build
Vincent Fazio 9d8940f38f bindings: python: tests: add multi-threaded tests
Add new multi-threaded test cases to ensure the bindings operate as
expected and do not lead to crashes or data corruption.

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Link: https://patch.msgid.link/20260527215922.18678-2-vfazio@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-05-28 10:59:12 +02:00

38 lines
871 B
Meson

# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: 2026 Qualcomm Technologies, Inc. and/or its subsidiaries
subdir('gpiosim')
subdir('system')
fs = import('fs')
foreach f : [
'__init__.py',
'__main__.py',
'helpers.py',
'tests_chip.py',
'tests_chip_info.py',
'tests_edge_event.py',
'tests_info_event.py',
'tests_line.py',
'tests_line_info.py',
'tests_line_request.py',
'tests_line_settings.py',
'tests_module.py',
'tests_threading.py',
]
fs.copyfile(f)
endforeach
test_env = environment()
test_env.set('PYTHONPATH', meson.global_build_root() / 'bindings' / 'python')
test_env.append('LD_LIBRARY_PATH', meson.global_build_root() / 'lib')
test_env.append('LD_LIBRARY_PATH', meson.global_build_root() / 'tests' / 'gpiosim')
test('python-tests',
py,
args: ['-B', '-m', 'tests'],
env: test_env,
is_parallel: false,
)