2020-12-23 22:21:36 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2020-01-14 10:42:24 +01:00
|
|
|
|
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',
|
2021-01-27 21:15:32 +01:00
|
|
|
dependencies: libNetworkManagerTest_dep,
|
2019-09-10 12:54:46 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
exe = executable(
|
2021-01-07 11:13:55 +01:00
|
|
|
'test-systemd',
|
|
|
|
|
'test-systemd.c',
|
2020-12-30 17:32:10 +01:00
|
|
|
include_directories: [
|
|
|
|
|
top_inc,
|
|
|
|
|
src_inc,
|
|
|
|
|
],
|
|
|
|
|
dependencies: [
|
2021-05-27 16:40:23 +02:00
|
|
|
libnm_systemd_shared_dep_inc,
|
|
|
|
|
libnm_systemd_core_dep_inc,
|
|
|
|
|
glib_dep,
|
2021-02-24 13:13:01 +01:00
|
|
|
],
|
|
|
|
|
link_with: [
|
|
|
|
|
libnm_systemd_shared,
|
2021-05-27 16:40:23 +02:00
|
|
|
libnm_systemd_core,
|
2021-07-08 08:24:09 +02:00
|
|
|
libnm_glib_aux,
|
2021-05-27 16:40:23 +02:00
|
|
|
libnm_log_null,
|
2021-07-08 08:24:09 +02:00
|
|
|
libnm_std_aux,
|
2021-02-24 13:13:01 +01:00
|
|
|
libc_siphash,
|
2020-12-30 17:32:10 +01:00
|
|
|
],
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2021-01-07 11:13:55 +01:00
|
|
|
'test-systemd',
|
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
|
|
|
)
|