Add gating tests for RHEL 9
https://bugzilla.redhat.com/show_bug.cgi?id=1990052
This commit is contained in:
parent
210e48dbb1
commit
3dbfbb456a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
*~
|
||||
/virt-p2v-*.tar.gz
|
||||
/virt-p2v-*.tar.gz.sig
|
||||
|
6
gating.yaml
Executable file
6
gating.yaml
Executable file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
19
tests/basic-test.sh
Executable file
19
tests/basic-test.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash -
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# This is a difficult package to test in gating because building the
|
||||
# virt-p2v ISO requires virt-builder, and even if we run it, it
|
||||
# doesn't prove anything useful. Doing a full P2V conversion is even
|
||||
# more difficult (and requires virt-v2v which we are unlikely to
|
||||
# have). So just check that the virt-p2v binary looks sane.
|
||||
tmpdir="$( mktemp -d )"
|
||||
cd "$tmpdir"
|
||||
xzcat /usr/lib64/virt-p2v/virt-p2v.xz > virt-p2v
|
||||
chmod +x virt-p2v
|
||||
./virt-p2v --version
|
||||
./virt-p2v --help
|
||||
./virt-p2v --long-options
|
||||
./virt-p2v --short-options
|
||||
cd
|
||||
rm -r "$tmpdir"
|
12
tests/tests.yml
Executable file
12
tests/tests.yml
Executable file
@ -0,0 +1,12 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- coreutils
|
||||
- virt-p2v
|
||||
tests:
|
||||
- simple:
|
||||
dir: .
|
||||
run: ./basic-test.sh
|
Loading…
Reference in New Issue
Block a user