build/meson: cleanup "libnm/tests/meson.build"

This commit is contained in:
Thomas Haller 2021-01-27 21:15:32 +01:00
parent beb29ffb3c
commit be9ed624a9
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1,28 +1,24 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
test_units = [
['test-libnm', 30],
['test-nm-client', 90],
['test-libnm', 30],
['test-nm-client', 90],
['test-remote-settings-client', 90],
['test-secret-agent', 90],
]
deps = [
libnm_core_dep,
libnm_nm_default_dep,
]
c_flags = [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
['test-secret-agent', 90],
]
foreach test_unit: test_units
exe = executable(
test_unit[0],
[test_unit[0] + '.c', nm_test_utils_impl_source, libnm_enum_sources[1]],
dependencies: deps,
c_args: c_flags,
dependencies: [
libnm_core_dep,
libnm_nm_default_dep,
],
c_args: [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
],
link_with: libnm_static,
)
@ -40,5 +36,8 @@ libnm_vpn_plugin_utils_test = static_library(
sources: nm_vpn_plugin_utils_source + [libnm_enum_sources[1]],
include_directories: libnm_inc,
dependencies: libnm_nm_default_dep,
c_args: c_flags,
c_args: [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
],
)