Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-26 00:18:33 +00:00
parent 9c3f085aee
commit f717d6776b
4 changed files with 126 additions and 2 deletions

42
tldr/linux/tmt Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# tmt
> Test Management Tool for creating, running, and debugging tests.
> Some subcommands such as `run`, `try`, etc. have their own usage documentation.
> More information: <https://tmt.readthedocs.io>.
- List available tests, plans, and stories:
`tmt`
- Initialize tmt files/project structure:
`tmt init`
- Create a new test with a template and a link:
`tmt test create --template {{beakerlib}} --link {{verifies:issue#1234}}`
- List available tests, plans, or stories:
`tmt {{test|plan|story}} ls {{pattern}}`
- Show detailed test metadata in the given context:
`tmt --context {{arch=aarch64}} test show`
- Validate tmt files against the specification:
`tmt lint`
- Use filter:
`tmt tests ls --filter {{tag:foo}} --filter {{tier:0}}`
- Display help:
`tmt --help`