diff --git a/README.md b/README.md index fc92b81..d2a6e4b 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,27 @@ Run the following command to see the report, setting the value of the above run ``` $ tmt run --id run-NNN report -vvv plans --default ``` + +#### Running a specific test + +You can run a specific test. + +List available tests. + +``` +$ tmt test ls +/Sanity/native-extension-gem-is-installed-without-error/ruby25 +/Sanity/native-extension-gem-is-installed-without-error/ruby26 +/Sanity/native-extension-gem-is-installed-without-error/ruby27 +/Sanity/native-extension-gem-is-installed-without-error/ruby30 +/Sanity/native-extension-gem-is-installed-without-error/ruby31 +/Sanity/native-extension-gem-is-installed-without-error/system +/run-basic-rails-application +/systemtap-static-probes-in-ruby +``` + +Run the following command to run a specific test with `-n` option to specify a regular expression to match the test name for Fedora rawhide: + +``` +$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide plans --default tests -n '^/systemtap-static-probes-in-ruby$' +```