Enable gating on RHEL9

Resolves: rhbz#1972624

Signed-off-by: Jianwen Ji <jiji@redhat.com>
This commit is contained in:
Jianwen Ji 2021-06-16 18:40:13 +08:00
parent e1a225dda0
commit 8dc34f32da
2 changed files with 40 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}

34
tests/tests.yml Normal file
View File

@ -0,0 +1,34 @@
# Tests for conntrack-tools
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-source
- role: standard-test-basic
required_packages:
- gcc
- make
- libnfnetlink-devel
- libnetfilter_conntrack-devel
- libnetfilter_cttimeout-devel
- libnetfilter_cthelper-devel
- libnetfilter_queue-devel
- libmnl-devel
- libtirpc-devel
- systemd-devel
- bison
- flex
tests:
- build-test:
dir: ./source
run: ./configure && sed -i "s/DEFAULT_INCLUDES = -I./DEFAULT_INCLUDES = -I. -I\/usr\/include\/tirpc/" src/helpers/Makefile && make
- conntrack-test:
dir: ./source/tests/conntrack
run: chmod +x run-test.sh && ./run-test.sh 2>/dev/null | tee conntrack_test.log | grep -q '^OK':' [0-9]* BAD':' 0$'
save_files:
- conntrack_test.log
- nfct-test:
dir: ./source/tests/nfct
run: chmod +x run-test.sh && ./run-test.sh 2>/dev/null | tee nfct_test.log | grep -q '^OK':' [0-9]* BAD':' 0$'
save_files:
- nfct_test.log