From fa42fa7ad263abf48fe98a193395bca235e4674f Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Tue, 1 Oct 2024 18:03:33 +0200 Subject: [PATCH] Update README adding how to run a specific test. --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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$' +```