summaryrefslogtreecommitdiff
path: root/src/libnm-glib-aux/tests/meson.build
blob: 38dfff0c6c9db374c3b444ccc2daf19047c79b74 (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
# SPDX-License-Identifier: LGPL-2.1-or-later

exe = executable(
  'test-shared-general',
  'test-shared-general.c',
  dependencies: libnm_glib_aux_dep_link,
  link_with: libnm_log_null,
)

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

if jansson_dep.found()
  exe = executable(
    'test-json-aux',
    'test-json-aux.c',
    dependencies: [
      libnm_glib_aux_dep_link,
      jansson_dep,
      dl_dep,
    ],
    link_with: libnm_log_null,
  )

  test(
    'shared/nm-glib-aux/test-json-aux',
    test_script,
    args: test_args + [exe.full_path()],
    timeout: default_test_timeout,
  )
endif