build/meson: cleanup "libnm-core/tests/meson.build"
This commit is contained in:
@@ -1,30 +1,12 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
# test-cert.p12 created with:
|
|
||||||
#
|
|
||||||
# openssl pkcs12 -export \
|
|
||||||
# -in test_key_and_cert.pem \
|
|
||||||
# -inkey test_key_and_cert.pem \
|
|
||||||
# -certfile test_ca_cert.pem \
|
|
||||||
# -name "test-pkcs12" \
|
|
||||||
# -out test-cert.p12
|
|
||||||
|
|
||||||
enum_types = 'nm-core-tests-enum-types'
|
|
||||||
|
|
||||||
enum_sources = gnome.mkenums_simple(
|
enum_sources = gnome.mkenums_simple(
|
||||||
enum_types,
|
'nm-core-tests-enum-types',
|
||||||
sources: 'test-general-enums.h',
|
sources: 'test-general-enums.h',
|
||||||
identifier_prefix: nm_id_prefix,
|
identifier_prefix: nm_id_prefix,
|
||||||
body_prefix: '#include "nm-default.h"',
|
body_prefix: '#include "nm-default.h"',
|
||||||
)
|
)
|
||||||
|
|
||||||
c_flags = [
|
|
||||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
||||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
|
|
||||||
]
|
|
||||||
|
|
||||||
test_cert_dir = join_paths(meson.current_source_dir(), 'certs')
|
|
||||||
|
|
||||||
test_units = [
|
test_units = [
|
||||||
'test-compare',
|
'test-compare',
|
||||||
'test-crypto',
|
'test-crypto',
|
||||||
@@ -45,7 +27,10 @@ foreach test_unit: test_units
|
|||||||
libnm_core_nm_default_dep,
|
libnm_core_nm_default_dep,
|
||||||
libnm_base_dep,
|
libnm_base_dep,
|
||||||
],
|
],
|
||||||
c_args: c_flags,
|
c_args: [
|
||||||
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||||
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
|
||||||
|
],
|
||||||
link_with: libnm_systemd_logging_stub,
|
link_with: libnm_systemd_logging_stub,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user