2020-12-23 22:21:36 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2020-01-14 10:42:24 +01:00
|
|
|
|
2019-09-11 12:12:26 +02:00
|
|
|
common_c_flags = clients_c_flags + ['-DNETWORKMANAGER_COMPILATION_TEST']
|
|
|
|
|
|
2019-05-19 13:54:17 +02:00
|
|
|
test_name = 'test-clients-common'
|
|
|
|
|
|
2019-09-11 12:12:26 +02:00
|
|
|
deps = [
|
|
|
|
|
libnmc_base_dep,
|
|
|
|
|
libnmc_dep,
|
|
|
|
|
]
|
|
|
|
|
|
2017-11-25 11:39:06 +01:00
|
|
|
exe = executable(
|
2019-05-19 13:54:17 +02:00
|
|
|
test_name,
|
|
|
|
|
test_name + '.c',
|
2019-09-11 12:12:26 +02:00
|
|
|
dependencies: deps,
|
|
|
|
|
c_args: common_c_flags,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2019-09-11 12:12:26 +02:00
|
|
|
'clients/common/tests/' + test_name,
|
2018-04-11 10:49:33 +02:00
|
|
|
test_script,
|
2018-10-18 12:50:20 +02:00
|
|
|
args: test_args + [exe.full_path()],
|
2018-04-11 10:49:33 +02:00
|
|
|
)
|
2019-04-21 10:11:16 +02:00
|
|
|
|
2019-09-11 12:12:26 +02:00
|
|
|
test_name = 'test-libnm-core-aux'
|
2019-04-21 10:11:16 +02:00
|
|
|
|
2019-09-09 11:40:11 +02:00
|
|
|
deps = [
|
|
|
|
|
libnm_dep,
|
|
|
|
|
libnm_libnm_core_aux_dep,
|
|
|
|
|
libnm_nm_default_dep,
|
|
|
|
|
]
|
|
|
|
|
|
2019-04-21 10:11:16 +02:00
|
|
|
exe = executable(
|
2019-09-11 12:12:26 +02:00
|
|
|
test_name,
|
|
|
|
|
test_name + '.c',
|
|
|
|
|
dependencies: deps,
|
|
|
|
|
c_args: common_c_flags,
|
|
|
|
|
link_with: libnm_systemd_logging_stub,
|
2019-04-21 10:11:16 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
test(
|
2019-09-11 12:12:26 +02:00
|
|
|
'clients/common/tests/' + test_name,
|
|
|
|
|
test_script,
|
|
|
|
|
args: test_args + [exe.full_path()]
|
2019-04-21 10:11:16 +02:00
|
|
|
)
|