mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2025-12-20 05:40:07 +01:00
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.
28 lines
776 B
Meson
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
|