adding CI tests & gating.yaml configuration
This commit is contained in:
parent
325a3471cc
commit
5b22d49d0e
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}
|
32
tests/scripts/make_check.sh
Normal file
32
tests/scripts/make_check.sh
Normal 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
24
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user