about summary refs log tree commit diff
path: root/src/nm-initrd-generator/tests/meson.build
blob: 897a2148676c095832b865c6dfa6224cfc41ab23 (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
43
44
45
46
47
# SPDX-License-Identifier: LGPL-2.1-or-later

test_units = [
  'test-dt-reader',
  'test-ibft-reader',
  'test-cmdline-reader',
]

if enable_nbft
  test_units += [ 'test-nbft-reader' ]
endif

foreach test_unit : test_units
  exe = executable(
    test_unit,
    test_unit + '.c',
    include_directories: [
      src_inc,
      top_inc,
    ],
    dependencies: [
      libnm_core_public_dep,
    ],
    c_args: test_c_flags,
    link_with: [
      libnmi_core,
      libnm_core_aux_intern,
      libnm_core_impl,
      libnm_crypto,
      libnm_platform,
      libnm_base,
      libnm_systemd_shared,
      libnm_udev_aux,
      libnm_log_core,
      libnm_glib_aux,
      libnm_std_aux,
      libc_siphash,
    ],
  )

  test(
    'nm-initrd-generator/tests/' + test_unit,
    test_script,
    timeout: default_test_timeout,
    args: test_args + [exe.full_path()],
  )
endforeach