From 15ea729e2b49358a8d68fee4cb6d29678231fad3 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Fri, 6 Jun 2025 22:01:43 +0800 Subject: [PATCH] test: Add README.md in tmt folder for integration test local running Signed-off-by: Xiaofeng Wang --- tmt/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tmt/README.md diff --git a/tmt/README.md b/tmt/README.md new file mode 100644 index 000000000..15ace2433 --- /dev/null +++ b/tmt/README.md @@ -0,0 +1,11 @@ +# Run integration test locally + +In the bootc CI, integration tests are executed via Packit on the Testing Farm. In addition, the integration tests can also be run locally on a developer's machine, which is especially valuable for debugging purposes. + +To run integration tests locally, you need to [install tmt](https://tmt.readthedocs.io/en/stable/guide.html#the-first-steps) and `provision-virtual` plugin in this case. Be ready with `dnf install -y tmt+provision-virtual`. Then, use `tmt run -vvvvv plans -n integration` command to run the all integration tests. + +To run integration tests on different distros, just change `image: fedora-rawhide` in https://github.com/bootc-dev/bootc/blob/9d15eedea0d54a4dbc15d267dbdb055817336254/tmt/plans/integration.fmf#L6. + +The available images value can be found from https://tmt.readthedocs.io/en/stable/plugins/provision.html#images. + +Enjoy integration test local running!