Files
iio-sensor-proxy/tests/meson.build
Bastien Nocera 418f00ac40 build: Fix run_command() usage in newer meson
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
2022-03-25 11:48:59 +01:00

19 lines
510 B
Meson

envs = environment()
envs.set ('top_builddir', meson.build_root())
envs.set ('top_srcdir', meson.source_root())
python3 = find_program('python3')
unittest_inspector = find_program('unittest_inspector.py')
r = run_command(unittest_inspector, files('integration-test.py'), check: true)
unit_tests = r.stdout().strip().split('\n')
foreach ut: unit_tests
ut_args = files('integration-test.py')
ut_args += ut
test(ut,
python3,
args: ut_args,
env: envs,
)
endforeach