diff --git a/README.md b/README.md index 77effe8..4ba8132 100644 --- a/README.md +++ b/README.md @@ -64,3 +64,32 @@ $ tmt -c distro=fedora-rawhide run --all \ provision -h virtual -i fedora-rawhide \ tests -n '^/systemtap-static-probes-in-ruby$' ``` + +#### Testing with a rpms/ruby pull-request + +Run a scratch build x86_64 on the branch used for the rpms/ruby pull-request +that you want to test: + +``` +$ fedpkg --release rawhide scratch-build --srpm --arches x86_64 +``` + +Run the following command with the above build's x86_64 task ID (not build ID) +to download the RPM packages. Remove the SRPM file to keep only binary RPM files +in the `/path/to/packages` directory to avoid an error on the later `tmt` +command. + +``` +$ pwd +/path/to/packages +$ koji download-task TASK_ID +$ rm *.src.rpm +``` + +Run the following command to run the tests with the above RPM files. + +``` +$ tmt -c distro=fedora-rawhide run --all \ + prepare --insert --how install -D /path/to/packages \ + provision -h virtual -i fedora-rawhide +```