mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 17:40:38 +01:00
There are some tests located in different directories which are using the same name. To avoid any confussion a prefix was used to name the test and the target. This patch uses the prefix just for the target, to avoid any collision that may happen, and uses the `test-` pattern as the name. https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00051.html
37 lines
693 B
Meson
37 lines
693 B
Meson
subdir('config')
|
|
|
|
test_units = [
|
|
'test-general',
|
|
'test-general-with-expect',
|
|
'test-ip4-config',
|
|
'test-ip6-config',
|
|
'test-dcb',
|
|
'test-resolvconf-capture',
|
|
'test-wired-defname',
|
|
'test-utils'
|
|
]
|
|
|
|
foreach test_unit: test_units
|
|
exe = executable(
|
|
test_unit,
|
|
test_unit + '.c',
|
|
dependencies: test_core_dep
|
|
)
|
|
|
|
test(test_unit, exe)
|
|
endforeach
|
|
|
|
test_unit = 'test-systemd'
|
|
|
|
cflags = '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD'
|
|
|
|
exe = executable(
|
|
test_unit,
|
|
[test_unit + '.c', libnm_core_enums_h] + shared_siphash,
|
|
include_directories: core_incs,
|
|
dependencies: glib_dep,
|
|
c_args: cflags,
|
|
link_with: libsystemd_nm
|
|
)
|
|
|
|
test(test_unit, exe)
|