summaryrefslogtreecommitdiff
path: root/shared/nm-utils/tests/meson.build
blob: 1ee5efff95aaa2885972e5f7b7686b311fba8e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
test_unit = 'test-shared-general'

c_flags = [
  '-DNETWORKMANAGER_COMPILATION_TEST',
  '-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
]

exe = executable(
  test_unit,
  test_unit + '.c',
  c_args: c_flags,
  dependencies: libnm_utils_base_dep,
  link_with: libnm_systemd_logging_stub,
)

test(
  'shared/nm-utils/' + test_unit,
  test_script,
  args: test_args + [exe.full_path()],
  timeout: default_test_timeout,
)