Files
NetworkManager/libnm-glib/tests/meson.build
Beniamino Galvani 0136915211 build: meson: add prefix to test names
There are multiple tests with the same in different directories; add a
unique prefix to test names so that it is clear from the output which
one is running.
2018-04-12 09:21:10 +02:00

31 lines
605 B
Meson

deps = [
dbus_dep,
dbus_glib_dep,
libnm_glib_dep,
libnm_util_dep,
shared_dep
]
test_units = [
'test-nm-client',
'test-remote-settings-client'
]
foreach test_unit: test_units
exe = executable(
test_unit,
[test_unit + '.c'] + shared_test_utils,
dependencies: deps,
c_args: common_cflags + [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py')),
],
)
test(
'libnm-glib/' + test_unit,
test_script,
args: test_args + [exe.full_path()]
)
endforeach