summaryrefslogtreecommitdiff
path: root/src/initrd/tests/meson.build
blob: 20cf6af23b95e9ffcc757dedf7d130720eb482e9 (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
test_units = [
  'test-ibft-reader',
  'test-cmdline-reader',
]

cflags = [
  '-DTEST_INITRD_DIR="@0@"'.format(meson.current_source_dir()),
]

foreach test_unit : test_units
  exe = executable(
    test_unit,
    test_unit + '.c',
    dependencies: test_nm_dep,
    c_args: cflags,
    link_with: libnmi_core,
  )
  test(
    'initrd/' + test_unit,
    test_script,
    timeout: default_test_timeout,
    args: test_args + [exe.full_path()],
  )
endforeach