Adding gating.yaml for libverto
Signed-off-by: Sudhir Menon <sumenon@redhat.com>
This commit is contained in:
parent
25da1559d2
commit
ab3d35e4de
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
27
tests/driver/runtest.sh
Normal file
27
tests/driver/runtest.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/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
|
||||
|
35
tests/tests.yml
Normal file
35
tests/tests.yml
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
- 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/'
|
||||
|
||||
- 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
|
||||
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user