- Initial build

Resolves: rhbz#1960248
This commit is contained in:
Oyvind Albrigtsen 2021-06-22 14:37:09 +02:00
parent 78b8d88c91
commit 40ca627d76
5 changed files with 45 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/*.src.rpm
/.build-*.log
/*/
!/tests/
/tests/*.retry

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}

View File

@ -25,7 +25,7 @@
Name: sap-cluster-connector
Summary: SAP cluster connector script
Version: 3.0.1
Release: 6%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
Release: 7%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
License: GPLv2+
URL: https://github.com/fdanapfel/sap_cluster_connector
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
@ -66,6 +66,11 @@ cp redhat/man/*.8.gz %{buildroot}/%{_mandir}/man8
%{_datadir}/sap_cluster_connector
%changelog
* Tue Jun 22 2021 Oyvind Albrigtsen <oalbrigt@redhat.com> - 3.0.1-7
- Initial build
Resolves: rhbz#1960248
* Mon May 10 2021 Oyvind Albrigtsen <oalbrigt@redhat.com> - 3.0.1-6
- sap-cluster-connector: allow dashes/underscores in nodenames

18
tests/run_tests.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
err=0
for bin in "sap_cluster_connector help"; do
output="$($bin 2>&1)"
if [ $? -ne 0 ]; then
echo -e "ERROR: $bin failed:\n$output"
err=$((err+1))
else
echo "INFO: $bin works..."
fi
done
if [ $err -ge 1 ]; then
echo -e "\nERROR: $err tests FAILED..."
exit 1
fi

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
- container
required_packages:
- sap-cluster-connector
tests:
- subpackage_tests:
dir: .
run: ./run_tests.sh