2017-11-25 11:39:06 +01:00
|
|
|
deps = [
|
|
|
|
|
dbus_dep,
|
|
|
|
|
dbus_glib_dep,
|
|
|
|
|
libnm_glib_dep,
|
2018-01-07 15:39:42 +01:00
|
|
|
libnm_util_dep,
|
|
|
|
|
shared_dep
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
test_units = [
|
2018-04-11 14:30:28 +02:00
|
|
|
'test-nm-client',
|
|
|
|
|
'test-remote-settings-client'
|
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,
|
2018-01-07 15:39:42 +01:00
|
|
|
[test_unit + '.c'] + shared_test_utils,
|
2017-11-25 11:39:06 +01:00
|
|
|
dependencies: deps,
|
2018-01-02 13:37:06 +01:00
|
|
|
c_args: common_cflags + [
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
|
|
|
'-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py')),
|
|
|
|
|
],
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2018-04-11 14:47:07 +02:00
|
|
|
'libnm-glib/' + test_unit,
|
2018-04-11 10:49:33 +02:00
|
|
|
test_script,
|
|
|
|
|
args: test_args + [exe.full_path()]
|
|
|
|
|
)
|
2017-11-25 11:39:06 +01:00
|
|
|
endforeach
|