power-profiles-daemon/tests/meson.build
Marco Trevisan (Treviño) 53115abf35 build: Bump meson requirement to 0.58
It's still quite old, but provides some features we may want to use in
future, so let's use a newer version since we're about to release a new
major version of p-p-d too.
2024-02-13 20:44:29 +00:00

28 lines
776 B
Meson

envs = environment()
envs.set ('top_builddir', meson.project_build_root())
envs.set ('top_srcdir', meson.project_source_root())
unittest_inspector = find_program('unittest_inspector.py')
integration_tests = files('integration_test.py')
r = run_command(python3, unittest_inspector, integration_tests, check: true)
unit_tests = r.stdout().strip().split('\n')
foreach ut: unit_tests
test(ut,
python3,
args: [
integration_tests,
ut,
],
env: envs,
)
endforeach
if get_option('pylint')
integration_pylint_flags = ['-d', 'W0511', '-d', 'C0302'] + pylint_flags
test('pylint-integration-tests',
pylint,
args: integration_pylint_flags + integration_tests,
env: nomalloc,
)
endif