← 返回命令列表

Linux command

tmt 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

tmt

Initialize

tmt init

Create

tmt test create -t [beakerlib] --link [verifies:issue#1234]

Example

tmt [test|plan|story] ls [pattern]

Example

tmt -c [arch=aarch64] test show

Validate

tmt lint

Example

tmt tests ls -f [tag:foo] -f [tier:0]

说明

tmt (Test Management Tool) is a framework for creating, organizing, and executing tests. It uses metadata in YAML format to define tests, plans, and stories, enabling reproducible test execution across different environments.

参数

-c, --context _KEY=VALUE_
Set context for operations
-f, --filter _EXPRESSION_
Filter items
-t, --template _NAME_
Use template for creation

FAQ

What is the tmt command used for?

tmt (Test Management Tool) is a framework for creating, organizing, and executing tests. It uses metadata in YAML format to define tests, plans, and stories, enabling reproducible test execution across different environments.

How do I run a basic tmt example?

Run `tmt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --context _KEY=VALUE_ do in tmt?

Set context for operations