summaryrefslogtreecommitdiff
path: root/libnm-glib/tests/meson.build
blob: 029b3c20c515d53cf75e26fb59eb473cf50bec39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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