Skip to content

Commit

Permalink
Add basic tests in packit
Browse files Browse the repository at this point in the history
This uses tmt to run basic tests on packit builds.
  • Loading branch information
ekohl committed Mar 19, 2024
1 parent 0425650 commit 38d709d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
5 changes: 5 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
- https://yum.theforeman.org/releases/nightly/el9/x86_64/
- https://yum.puppet.com/puppet7/el/9/x86_64/
module_hotfixes: true
- job: tests
trigger: pull_request
targets:
- rhel-8
- rhel-9

srpm_build_deps:
- wget
Expand Down
8 changes: 8 additions & 0 deletions plans/scenario-foreman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary: Verify foreman scenario
prepare:
- name: foreman-installer
how: install
package: foreman-installer
execute:
- how: tmt
script: foreman-installer --help --scenario foreman --trace
10 changes: 10 additions & 0 deletions plans/scenario-katello.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
summary: Verify katello scenarios
prepare:
- name: foreman-installer-katello
how: install
package: foreman-installer-katello
execute:
- how: tmt
script: foreman-installer --help --scenario katello --trace
- how: tmt
script: foreman-installer --help --scenario foreman-proxy-content --trace

0 comments on commit 38d709d

Please sign in to comment.