Skip to content

Instantly share code, notes, and snippets.

@kwk
Created February 16, 2024 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwk/713d367fa5681f97f65da46de58d78cf to your computer and use it in GitHub Desktop.
Save kwk/713d367fa5681f97f65da46de58d78cf to your computer and use it in GitHub Desktop.
Testing with tmt without a copr build first

How to run test

I want to run the following very simple test on Fedora's testing farm. Is this possible and if so how?

summary: Very basic tests
discover:
    how: shell
    tests:
    - name: test hello world
      test: echo "Hello World!" | grep -i "hello"
execute:
    how: tmt

Local testing

In order to run the test output locally I can run this:

$ tmt run -avv provision --how local --verbose --verbose prepare test report

This will result in this output:

grafik

Testing using testing-farm

I'm not very familiar with testing-farm but I stumbled accross the artemis term recently. When I try to run my test on testing farm using artemis it looks like this:

$ tmt run -avv provision --how artemis --verbose prepare test report

And the output freezes at:

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment