mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 10:10:07 +01:00
A new variable has been created for the C compiler flags to avoid polluting the target creation call so the flags are encapsulated.
21 lines
491 B
Meson
21 lines
491 B
Meson
test_unit = 'test-shared-general'
|
|
|
|
c_flags = [
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
|
]
|
|
|
|
exe = executable(
|
|
test_unit,
|
|
test_unit + '.c',
|
|
c_args: c_flags,
|
|
dependencies: libnm_utils_base_dep,
|
|
link_with: libnm_systemd_logging_stub,
|
|
)
|
|
|
|
test(
|
|
'shared/nm-utils/' + test_unit,
|
|
test_script,
|
|
args: test_args + [exe.full_path()],
|
|
timeout: default_test_timeout,
|
|
)
|