initial gating tests for rhel10

JIRA: https://issues.redhat.com/browse/RHELMISC-3943

Signed-off-by: Jianwen Ji <jiji@redhat.com>
This commit is contained in:
Jianwen Ji 2024-04-26 10:59:50 +08:00
parent aa97e4a702
commit 4a49ab0333
2 changed files with 33 additions and 0 deletions

6
gating.yaml Normal file
View 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/tests.yml Normal file
View File

@ -0,0 +1,27 @@
# Tests for conntrack-tools
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-source
- role: standard-test-basic
required_packages:
- gcc
- conntrack-tools
tests:
- pre-conntrack-test:
dir: ./source/tests/conntrack
run: sed -i '/define CT_PROG/c \#define CT_PROG "/usr/sbin/conntrack"' test-conntrack.c
- conntrack-test:
dir: ./source/tests/conntrack
run: chmod +x run-test.sh && ./run-test.sh | tee conntrack_test.log | grep -q '^OK':' [0-9]* BAD':' 0$'
save_files:
- conntrack_test.log
- pre-nfct-test:
dir: ./source/tests/nfct
run: rm -f timeout/*dccp
- nfct-test:
dir: ./source/tests/nfct
run: chmod +x run-test.sh && ./run-test.sh | tee nfct_test.log | grep -q '^OK':' [0-9]* BAD':' 0$'
save_files:
- nfct_test.log