meson.build 528 Bytes
Newer Older
1 2 3 4
deps = [
  dbus_dep,
  dbus_glib_dep,
  libnm_glib_dep,
5 6
  libnm_util_dep,
  shared_dep
7 8 9 10 11 12 13 14 15
]

test_units = [
  'test-nm-client',
  'test-remote-settings-client'
]

foreach test_unit: test_units
  exe = executable(
16
    test_unit,
17
    [test_unit + '.c'] + shared_test_utils,
18
    dependencies: deps,
19 20 21 22
    c_args: common_cflags + [
      '-DNETWORKMANAGER_COMPILATION_TEST',
      '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py')),
    ],
23 24
  )

25
  test(test_unit, exe)
26
endforeach