Debian Codegraph @

test/sysfs/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 #
3 # This file is part of libnvme.
4 # Copyright (c) 2024 SUSE LLC.
5 #
6 # Authors: Daniel Wagner <[email protected]>
7
8 diff = find_program('diff', required : false)
9 if diff.found()
10 tree_dump = executable(
11 'test-tree-dump',
12 ['tree-dump.c'],
13 dependencies: libnvme_dep,
14 include_directories: [incdir],
15 )
16
17 tree_data = [
18 'tree-pcie',
19 'tree-apple-nvme',
20 ]
21
22 tree_diff = find_program('tree-diff.sh')
23
24 foreach t_file : tree_data
25 test(
26 t_file,
27 tree_diff,
28 args : [
29 meson.current_build_dir(),
30 tree_dump.full_path(),
31 files('data'/t_file + '.tar.xz'),
32 files('data'/t_file + '.out'),
33 ],
34 depends : tree_dump,
35 )
36 endforeach
37 endif