Add gating definition for RHEL 9

Related: rhbz#1947473

Signed-off-by: Kaleemullah Siddiqui <ksiddiqu@redhat.com>
This commit is contained in:
Kaleemullah Siddiqui 2021-06-09 18:57:46 +05:30
parent 1f6edd63ca
commit fe39691ca4
3 changed files with 71 additions and 0 deletions

6
gating.yaml Normal file
View 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}

26
tests/driver/runtest.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/sh -ex
# Weird location, but okay.
cd ../source
# Generate Makefiles, directory layout, ...
autoreconf -fiv
./configure --with-glib --with-libevent --disable-dependency-tracking
make -sj
# Avoid running `make check` here
cd tests
ls *.c | while read f; do
f="$(echo $f | awk -F. '{print $1}')"
make $f
done
cd ..
# Overwrite the build.
cd src/.libs
cp /usr/lib64/libverto-glib.so.1.0.0 .
cp /usr/lib64/libverto-libevent.so.1.0.0 .
cd ../..
# Go time.
exec make check

39
tests/tests.yml Normal file
View File

@ -0,0 +1,39 @@
---
- hosts: localhost
tags: classic
tasks:
- name: Brew a warm one
shell: dnf config-manager --add-repo 'http://download.eng.bos.redhat.com/brewroot/repos/rhel-9.0.0-build/latest/x86_64/'
args:
warn: false
- hosts: localhost
tags: classic
tasks:
- name: Copy spec file to remote machine
copy:
src: "{{ playbook_dir }}/../libverto.spec"
dest: /tmp/libverto.spec
- name: Install build deps
shell: dnf -y --nogpgcheck build-dep /tmp/libverto.spec
args:
warn: false
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- libverto
- libverto-devel
- libverto-glib-devel
- libverto-libevent-devel
- make
- rpm-build
tests:
- driver