diff --git a/tldr/clear b/tldr/clear index 299c32ca..3c7bea3f 100644 --- a/tldr/clear +++ b/tldr/clear @@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git > Clears the screen of the terminal. > More information: . -- Clear the screen (equivalent to pressing Control-L in Bash shell): +- Clear the screen: `clear` -- Clear the screen but keep the terminal's scrollback buffer: +- Clear the screen but keep the terminal's scrollback buffer (equivalent to pressing Ctrl + L in Bash): `clear -x` diff --git a/tldr/linux/tmt b/tldr/linux/tmt new file mode 100644 index 00000000..237c9017 --- /dev/null +++ b/tldr/linux/tmt @@ -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: . + +- 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` diff --git a/tldr/linux/tmt-run b/tldr/linux/tmt-run new file mode 100644 index 00000000..ca7f618f --- /dev/null +++ b/tldr/linux/tmt-run @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# tmt run + +> Execute tmt test steps. By default, all steps are run. +> More information: . + +- Run all test steps for each plan: + +`tmt run` + +- Run only the discover step to show what tests would be run: + +`tmt run discover -v` + +- Run all steps and adjust the provision step options: + +`tmt run --all provision --how {{container}} --image {{fedora:rawhide}}` + +- Run only selected plans and tests: + +`tmt run plan --name {{/plan/name}} test --name {{/test/name}}` + +- Show results from the last run in a web browser: + +`tmt run --last report --how {{html}} --open` + +- Run tests with the provided context: + +`tmt run --context {{key=value}} -c {{distro=fedora}}` + +- Run tests interactively (debug test code in the middle of a test): + +`tmt run --all execute --how {{tmt}} --interactive` + +- Use dry mode to see what actions would happen and use the highest verbosity: + +`tmt run --dry -vvv` diff --git a/tldr/linux/tmt-try b/tldr/linux/tmt-try new file mode 100644 index 00000000..097e5362 --- /dev/null +++ b/tldr/linux/tmt-try @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# tmt try + +> Quickly experiment with tests and environments. +> More information: . + +- Quickly experiment with the default provision method (no tests in the CWD): + +`tmt try` + +- Run a test in the current working directory: + +`cd {{path/to/test}} && tmt try` + +- Use a specific operating system: + +`tmt try {{fedora-41}}` + +- Select both custom image and provision method: + +`tmt try {{fedora@container}}` + +- Select tests with custom filter: + +`tmt try --test {{feature}}` + +- Provision guest and wait for instructions: + +`tmt try --ask` + +- Directly log into the guest without asking: + +`tmt try --login` + +- Display help: + +`tmt try --help`