NetworkManager/libnm-glib/tests/meson.build

33 lines
614 B
Meson
Raw Normal View History

incs = [
top_inc,
shared_inc
]
deps = [
dbus_dep,
dbus_glib_dep,
glib_dep,
libnm_glib_dep,
libnm_util_dep
]
test_units = [
'test-nm-client',
'test-remote-settings-client'
]
foreach test_unit: test_units
exe = executable(
test_unit,
[test_unit + '.c', libnm_utils_enum[1]] + shared_test_utils,
include_directories: incs,
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(test_unit, exe)
endforeach