diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/driver/runtest.sh b/tests/driver/runtest.sh new file mode 100644 index 0000000..89a8fc7 --- /dev/null +++ b/tests/driver/runtest.sh @@ -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 + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..622a6ec --- /dev/null +++ b/tests/tests.yml @@ -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