mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-22 11:18:10 +02:00
These tests cannot (easily) be under "shared/nm-libnm-core-aux/tests" because libnm/libnm-core requires code under shared while "nm-libnm-core-aux" requires libnm/libnm-core. With autotools that is not problem, but with meson we include sub directories in a particular order and there is no way to foward declare stuff (AFAIK). To avoid the circular dependency, add the tests to "clients/common/tests", which is always built last.
42 lines
884 B
Meson
42 lines
884 B
Meson
|
|
exe = executable(
|
|
'clients-test-general',
|
|
'test-general.c',
|
|
dependencies: [
|
|
libnm_dep,
|
|
libnmc_dep,
|
|
libnmc_base_dep,
|
|
libnm_core_dep,
|
|
],
|
|
c_args: clients_cflags + [
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
],
|
|
)
|
|
|
|
test(
|
|
'clients/common/tests/test-general',
|
|
test_script,
|
|
args: test_args + [exe.full_path()],
|
|
)
|
|
|
|
###############################################################################
|
|
|
|
exe = executable(
|
|
'test-libnm-core-aux',
|
|
[ 'test-libnm-core-aux.c', ],
|
|
c_args: [
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
|
],
|
|
dependencies: [
|
|
libnm_dep,
|
|
shared_nm_libnm_core_aux_dep,
|
|
shared_nm_libnm_core_intern_dep,
|
|
],
|
|
)
|
|
|
|
test(
|
|
'clients/common/tests/test-libnm-core-aux',
|
|
test_script,
|
|
args: test_args + [exe.full_path()]
|
|
)
|