summaryrefslogtreecommitdiff
path: root/libnm/tests/meson.build
blob: d2e5fe7ef6a71f6ba0540f30fe077225eb56a4da (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
31
32
33
34
35
36
37
38
39
40
41
42
# SPDX-License-Identifier: LGPL-2.1-or-later

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

foreach test_unit: test_units
  exe = executable(
    test_unit,
    [
      test_unit + '.c',
      nm_test_utils_impl_source,
      libnm_enum_sources[1],
    ],
    dependencies: [
      libnm_core_impl_dep_link,
      libnm_nm_default_dep,
    ],
    link_with: [
      libnm_static,
      libnm_base,
    ],
  )

  test(
    test_unit,
    test_script,
    timeout: 90,
    args: test_args + [exe.full_path()],
  )
endforeach

# just test, that we can build "nm-vpn-plugin-utils.c"
libnm_vpn_plugin_utils_test = static_library(
  'nm-vpn-plugin-utils-test',
  sources: nm_vpn_plugin_utils_source + [libnm_enum_sources[1]],
  include_directories: libnm_inc,
  dependencies: libnm_nm_default_dep,
)