/
githubmirror
/
nvme-cli
Обзор
Документация
Войти
/
githubmirror
/
nvme-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/unit/py/meson.build
26 строк
951 B
Daniel Wagner
tests: only test config and utils when plugins are enabled
11 авг 2026, 13:16
11 авг 2026, 13:16
d7d8013
Код
Авторство
О чём код?
# SPDX-License-Identifier: GPL-2.0-or-later # # Python unit tests that need no NVMe hardware. The C equivalents live in # ../c/; the CLI-driven tests in ../../cli/; the device tests in ../../e2e/. # # python3 is found once, in ../../meson.build. if python3.found() # dump-command-metadata lives in the "utils" plugin and is compiled out # without json-c, so its test only makes sense when both are present. # Tests added here that don't depend on json-c/utils belong outside this # inner guard. if want_json_c and 'utils' in selected_plugins test( 'nvme-cli - command-metadata-schema', python3, args: [ files('test_command_metadata_schema.py'), nvme_exe, meson.project_source_root() / 'plugins' / 'utils' / 'command-metadata-schema.json', ], depends: nvme_exe, timeout: 120, ) endif endif