NetworkManager/libnm-core/tests/meson.build
Thomas Haller c971ee2267
libnm: merge libnm-keyfile into libnm-core
Before there was a licensing conflict between the keyfile code
(libnm-keyfile) and libnm. The latter would require LGPL-2.1+ while
keyfile code was GPL-2.0+.

Consequently we were linking libnm-keyfile into the daemon, but not in
libnm.so.

This conflict has been resolved and keyfile API is part of libnm.so.
There is no more need to build a separate (intermediary) library. Merge
them.

This also makes sense because keyfile code needs access to private code
from libnm-core. It is closely tied to libnm-core, so that building them
separate makes no sense (anymore).
2021-02-09 12:38:19 +01:00

41 lines
874 B
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
enum_sources = gnome.mkenums_simple(
'nm-core-tests-enum-types',
sources: 'test-general-enums.h',
identifier_prefix: nm_id_prefix,
body_prefix: '#include "libnm-core/nm-default-libnm-core.h"',
)
test_units = [
'test-compare',
'test-crypto',
'test-general',
'test-keyfile',
'test-secrets',
'test-setting',
'test-settings-defaults',
]
foreach test_unit: test_units
exe = executable(
'libnm-core-' + test_unit,
[test_unit + '.c'] + enum_sources,
dependencies: [
libnm_core_dep,
libnm_core_nm_default_dep,
libnm_base_dep,
],
c_args: [
'-DG_LOG_DOMAIN="test"',
],
link_with: libnm_systemd_logging_stub,
)
test(
'libnm-core/' + test_unit,
test_script,
args: test_args + [exe.full_path()],
timeout: default_test_timeout,
)
endforeach