adding CI tests & gating.yaml configuration

This commit is contained in:
Pooja Yadav 2024-05-14 12:01:10 +05:30
parent 325a3471cc
commit 5b22d49d0e
3 changed files with 62 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}

View File

@ -0,0 +1,32 @@
#!/bin/bash
############################################################################
#Developed for hyphen
#This script is used to check sanity for hyphen package
#Usage : ./make_check.sh
#
############################################################################
file_count=13
pkg="hyphen"
check_return_value () {
if [ $1 != 0 ] ; then
exit $1
fi
}
check_files_count(){
no_of_files=`rpm -qlv $pkg | wc -l`
if [ $no_of_files == $file_count ]
then
echo "PASS"
else
echo "FAIL"
fi
}
cd ../source
autoreconf -i
automake --foreign -Wall
./configure && make && make check
check_files_count

24
tests/tests.yml Normal file
View File

@ -0,0 +1,24 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-source
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
tests:
- make-check:
dir: scripts
run: bash ./make_check.sh
required_packages:
- autoconf
- automake
- libtool
- m4
- gcc
- sed
- make