Merging upstream version 1.10.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
05578a6ab9
commit
a02d194ad0
946 changed files with 4401 additions and 1290 deletions
59
test/config/meson.build
Normal file
59
test/config/meson.build
Normal file
|
@ -0,0 +1,59 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
#
|
||||
# This file is part of libnvme.
|
||||
# Copyright (c) 2024 SUSE LLC.
|
||||
#
|
||||
# Authors: Daniel Wagner <dwagner@suse.de>
|
||||
|
||||
diff = find_program('diff', required : false)
|
||||
if diff.found()
|
||||
config_dump = executable(
|
||||
'test-config-dump',
|
||||
['config-dump.c'],
|
||||
dependencies: libnvme_dep,
|
||||
include_directories: [incdir],
|
||||
)
|
||||
|
||||
config_data = [
|
||||
'config-pcie',
|
||||
'config-pcie-with-tcp-config',
|
||||
]
|
||||
|
||||
config_diff = find_program('config-diff.sh')
|
||||
|
||||
foreach t_file : config_data
|
||||
test(
|
||||
t_file,
|
||||
config_diff,
|
||||
args : [
|
||||
meson.current_build_dir(),
|
||||
config_dump.full_path(),
|
||||
files('data'/t_file + '.tar.xz'),
|
||||
files('data'/t_file + '.json'),
|
||||
files('data'/t_file + '.out'),
|
||||
],
|
||||
depends : config_dump,
|
||||
)
|
||||
endforeach
|
||||
|
||||
test_hostnqn_order = executable(
|
||||
'test-hostnqn-order',
|
||||
['hostnqn-order.c'],
|
||||
dependencies: libnvme_dep,
|
||||
include_directories: [incdir],
|
||||
)
|
||||
|
||||
test(
|
||||
'hostnqn-order',
|
||||
config_diff,
|
||||
args : [
|
||||
meson.current_build_dir(),
|
||||
test_hostnqn_order.full_path(),
|
||||
files('data/hostnqn-order.tar.xz'),
|
||||
files('data/hostnqn-order.json'),
|
||||
files('data/hostnqn-order.out'),
|
||||
],
|
||||
depends : test_hostnqn_order,
|
||||
)
|
||||
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue