Add a simple unittests.py as a base for python unittests. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
17 lines
365 B
Meson
17 lines
365 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
if not pycamera_enabled
|
|
subdir_done()
|
|
endif
|
|
|
|
pymod = import('python')
|
|
py3 = pymod.find_installation('python3')
|
|
|
|
pypathdir = meson.project_build_root() / 'src' / 'py'
|
|
|
|
test('pyunittests',
|
|
py3,
|
|
args : files('unittests.py'),
|
|
env : ['PYTHONPATH=' + pypathdir],
|
|
suite : 'pybindings',
|
|
is_parallel : false)
|