Add gating tests

https://bugzilla.redhat.com/show_bug.cgi?id=1950611

Thanks: Xiaodai Wang
This commit is contained in:
Richard W.M. Jones 2021-06-11 14:52:39 +01:00
parent 41e9bece4c
commit 00d876a814
4 changed files with 31 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
*~
# RPM target directories
/x86_64

7
gating.yaml Executable file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: libvirt-ci.v2v.brew-build.gating.x86_64.tier1.functional}

10
tests/basic-test.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash -
set -e
set -x
# This only makes sure that virt-v2v isn't totally broken.
# virt-v2v is extensively tested on real guests by the QE
# team using a mix of automated and manual testing.
virt-builder fedora-30
virt-v2v -i disk fedora-30.img -o null

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- virt-v2v
- guestfs-tools
tests:
- simple:
dir: .
run: ./basic-test.sh