diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..82cee24 --- /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/scripts/make_check.sh b/tests/scripts/make_check.sh new file mode 100644 index 0000000..e710587 --- /dev/null +++ b/tests/scripts/make_check.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..9b5c3af --- /dev/null +++ b/tests/tests.yml @@ -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