mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 07:30:10 +01:00
It's not yet used, but it will be. We will need nm_sd_utils_unbase64mem() to strictly validate WireGuard settings, which contain keys in base64 encoding. Note that we also need a stub implementation for logging. This will do nothing for all logging from "libnm-systemd-shared.a". This makes sense because "libnm.so" as a library should not log directly. Also, "libnm.so" will only use a small portion of "libnm-systemd-shared.a" which doesn't log anything. Thus this code is unused and dropped by the linker with "--gc-sections".
44 lines
1.1 KiB
Meson
44 lines
1.1 KiB
Meson
test_units = [
|
|
['test-general', [libnm_utils, libnm_core], 30],
|
|
['test-nm-client', [], 90],
|
|
['test-remote-settings-client', [], 90],
|
|
['test-secret-agent', [], 90],
|
|
]
|
|
|
|
cflags = [
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
|
|
]
|
|
|
|
foreach test_unit: test_units
|
|
exe = executable(
|
|
'libnm-' + test_unit[0],
|
|
[
|
|
test_unit[0] + '.c',
|
|
shared_nm_test_utils_impl_c,
|
|
],
|
|
dependencies: [
|
|
libnm_dep,
|
|
nm_core_dep,
|
|
libnm_systemd_shared_no_logging_dep,
|
|
],
|
|
c_args: cflags,
|
|
link_with: test_unit[1],
|
|
)
|
|
|
|
test(
|
|
'libnm/' + test_unit[0],
|
|
test_script,
|
|
timeout: test_unit[2],
|
|
args: test_args + [exe.full_path()],
|
|
)
|
|
endforeach
|
|
|
|
# just test, that we can build "nm-vpn-plugin-utils.c"
|
|
libnm_vpn_plugin_utils_test = static_library(
|
|
'nm-vpn-plugin-utils-test',
|
|
sources: shared_nm_utils_nm_vpn_plugin_utils_c + [libnm_enum[1]],
|
|
include_directories: libnm_inc,
|
|
dependencies: nm_core_dep,
|
|
c_args: cflags,
|
|
)
|