about summary refs log tree commit diff
path: root/dispatcher/tests/meson.build
blob: 5c6f6b12a76d85c64a57e1b1c88999d3d10c7cf8 (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
# SPDX-License-Identifier: LGPL-2.1+

test_unit = 'test-dispatcher-envp'

deps = [
  libnm_nm_default_dep,
  libnm_utils_base_dep,
]

c_flags = [
  '-DNETWORKMANAGER_COMPILATION_TEST',
  '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
]

exe = executable(
  test_unit,
  [test_unit + '.c', nmdbus_dispatcher_sources],
  include_directories: dispatcher_inc,
  dependencies: deps,
  c_args: c_flags,
  link_with: libnm_dispatcher_core,
)

test(
  'dispatcher/' + test_unit,
  test_script,
  args: test_args + [exe.full_path()],
)