tests: Add qemu-sanity-check fedora CI job
We use `fmf` and `tmt` test config to run qemu-sanity-check, similar to how its done in the spec file at the moment. Add gating.yml that requires these tests to pass before updates can be pushed Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
ec4dab0a93
commit
ec76e0bb54
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
19
gating.yml
Normal file
19
gating.yml
Normal file
@ -0,0 +1,19 @@
|
||||
# From: https://docs.fedoraproject.org/en-US/ci/gating/
|
||||
|
||||
# For updates-testing
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_contexts: [bodhi_update_push_testing]
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
|
||||
# For rawhide
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_contexts: [bodhi_update_push_stable]
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
8
plans/main.fmf
Normal file
8
plans/main.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
# toplevel plan boilerplate
|
||||
summary: qemu tests
|
||||
description:
|
||||
Test qemu
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
20
tests/main.fmf
Normal file
20
tests/main.fmf
Normal file
@ -0,0 +1,20 @@
|
||||
# This is 'tmt' config format
|
||||
# https://tmt.readthedocs.io/en/stable/spec.html
|
||||
|
||||
summary: Runtime test qemu
|
||||
|
||||
require:
|
||||
- qemu
|
||||
- qemu-sanity-check
|
||||
|
||||
/smoke:
|
||||
# Make sure -help doesn't fail
|
||||
test: |
|
||||
set -eux
|
||||
qemu-system-x86_64 -help
|
||||
qemu-img -help
|
||||
|
||||
/qemu-sanity-check:
|
||||
test: |
|
||||
set -eux
|
||||
qemu-sanity-check -v
|
Loading…
Reference in New Issue
Block a user