1
0
Fork 0

Merging upstream version 2.2.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:18:36 +01:00
parent c6eb8bc90e
commit 965e6654c3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
446 changed files with 8369 additions and 4059 deletions

View file

@ -32,6 +32,12 @@ tests = [
runtests = find_program('nose2', required : false)
if meson.version().version_compare('>= 0.56')
nvmecli_path = meson.project_build_root()
else
nvmecli_path = meson.build_root()
endif
if runtests.found()
foreach file : infra + tests
configure_file(
@ -43,12 +49,21 @@ if runtests.found()
foreach t : tests
t_name = t.split('.')[0]
test(t_name, runtests,
args: ['--verbose', '--start-dir', meson.build_root() + '/tests', t_name],
env: ['PATH=' + meson.build_root() + ':/usr/bin:/usr/sbin'],
args: ['--verbose', '--start-dir', meson.current_build_dir(), t_name],
env: ['PATH=' + nvmecli_path + ':/usr/bin:/usr/sbin'],
timeout: 500)
endforeach
endif
test_uint128 = executable(
'test-uint128',
['test-uint128.c', '../util/types.c'],
include_directories: [incdir, '..'],
dependencies: [libnvme_dep],
)
test('uint128', test_uint128)
python_module = import('python')
python = python_module.find_installation('python3')