NetworkManager/src/tests/client/meson.build
Íñigo Huguet ef2438414f meson: remove deprecated ExternalProgram.path
Replaced by full_path:
https://mesonbuild.com/Reference-manual_returned_external_program.html#external_programpath

ExternalProgram.full_path was added in meson 0.55 but we support meson
>= 0.51. Because of that, use path or full_path conditionally depending
on the meson version.

This gets rid of the following deprecation warning:
  NOTICE: Future-deprecated features used:
   * 0.48.0: {'module python3'}
   * 0.55.0: {'ExternalProgram.path'}
2024-04-04 08:13:38 +00:00

35 lines
624 B
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
test(
'check-local-tests-client',
find_program(join_paths(source_root, 'src/tests/client/test-client.sh')),
args: [
build_root,
source_root,
python_path,
'--',
'TestNmcli',
],
env: [
'LIBTOOL=',
],
timeout: 120,
)
if enable_nm_cloud_setup
test(
'check-local-tests-cloud-setup',
find_program(join_paths(source_root, 'src/tests/client/test-client.sh')),
args: [
build_root,
source_root,
python_path,
'--',
'TestNmCloudSetup',
],
env: [
'LIBTOOL=',
],
timeout: 120,
)
endif