2020-01-14 10:42:24 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
|
|
2017-11-25 11:39:06 +01:00
|
|
|
subdir('config')
|
|
|
|
|
|
|
|
|
|
test_units = [
|
2019-05-19 14:15:31 +02:00
|
|
|
'test-core',
|
|
|
|
|
'test-core-with-expect',
|
2020-09-19 12:33:08 +02:00
|
|
|
'test-dcb',
|
2017-11-25 11:39:06 +01:00
|
|
|
'test-ip4-config',
|
|
|
|
|
'test-ip6-config',
|
2020-09-19 12:33:08 +02:00
|
|
|
'test-l3cfg',
|
2018-10-18 12:50:20 +02:00
|
|
|
'test-utils',
|
2020-09-19 12:33:08 +02:00
|
|
|
'test-wired-defname',
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach test_unit: test_units
|
|
|
|
|
exe = executable(
|
2017-12-14 17:03:34 +01:00
|
|
|
test_unit,
|
2017-11-25 11:39:06 +01:00
|
|
|
test_unit + '.c',
|
2019-09-10 12:54:46 +02:00
|
|
|
dependencies: libnetwork_manager_test_dep,
|
|
|
|
|
c_args: test_c_flags,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2019-05-19 14:15:31 +02:00
|
|
|
test_unit,
|
2018-04-11 10:49:33 +02:00
|
|
|
test_script,
|
2018-10-18 12:50:20 +02:00
|
|
|
args: test_args + [exe.full_path()],
|
2019-02-22 08:38:54 +01:00
|
|
|
timeout: default_test_timeout,
|
2018-04-11 10:49:33 +02:00
|
|
|
)
|
2017-11-25 11:39:06 +01:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
test_unit = 'test-systemd'
|
|
|
|
|
|
2019-09-10 12:54:46 +02:00
|
|
|
c_flags = [
|
2018-01-02 13:37:06 +01:00
|
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD',
|
|
|
|
|
]
|
2017-11-25 11:39:06 +01:00
|
|
|
|
2019-09-10 12:54:46 +02:00
|
|
|
links = [
|
|
|
|
|
libnm_systemd_core,
|
|
|
|
|
libnm_systemd_shared,
|
|
|
|
|
]
|
|
|
|
|
|
2017-11-25 11:39:06 +01:00
|
|
|
exe = executable(
|
2017-12-14 17:03:34 +01:00
|
|
|
test_unit,
|
2019-05-19 14:15:31 +02:00
|
|
|
test_unit + '.c',
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: daemon_nm_default_dep,
|
2019-09-10 12:54:46 +02:00
|
|
|
c_args: c_flags,
|
|
|
|
|
link_with: links,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2019-05-19 14:15:31 +02:00
|
|
|
test_unit,
|
2018-04-11 10:49:33 +02:00
|
|
|
test_script,
|
2018-10-18 12:50:20 +02:00
|
|
|
args: test_args + [exe.full_path()],
|
2018-04-11 10:49:33 +02:00
|
|
|
)
|