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',
|
2017-11-25 11:39:06 +01:00
|
|
|
'test-ip4-config',
|
|
|
|
|
'test-ip6-config',
|
|
|
|
|
'test-dcb',
|
|
|
|
|
'test-wired-defname',
|
2018-10-18 12:50:20 +02:00
|
|
|
'test-utils',
|
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',
|
2018-10-18 12:50:20 +02:00
|
|
|
dependencies: test_nm_dep,
|
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'
|
|
|
|
|
|
2018-01-02 13:37:06 +01:00
|
|
|
cflags = [
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD',
|
|
|
|
|
]
|
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',
|
2018-01-07 15:39:42 +01:00
|
|
|
include_directories: src_inc,
|
2019-04-15 16:46:54 +02:00
|
|
|
dependencies: libnm_core_dep,
|
2017-11-25 11:39:06 +01:00
|
|
|
c_args: cflags,
|
2018-12-28 18:11:16 +01:00
|
|
|
link_with: [
|
|
|
|
|
libnm_systemd_core,
|
|
|
|
|
libnm_systemd_shared,
|
|
|
|
|
],
|
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
|
|
|
)
|