Compare commits

..

No commits in common. "c8" and "c8s" have entirely different histories.
c8 ... c8s

10 changed files with 55 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/malaga-7.12.tgz malaga-7.12.tgz

View File

@ -1 +0,0 @@
19d74697575229231c18c83bb7a16b7ee6c31a51 SOURCES/malaga-7.12.tgz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (malaga-7.12.tgz) = 662262115d7cd139d41c7f0fbb53ca3b5cf8b7a933e8ca427050dd40139ceb068f8c330561310fbe0ba7cb0f1e99464cd2a20465b5da649a0b1892f53cf7f2d3

36
tests/scripts/run.sh Executable file
View File

@ -0,0 +1,36 @@
#!/bin/bash
FAIL_COUNT=0
check_pkg() {
local pkg=$1
if rpm -q $pkg
then
echo "PASS"
else
echo "FAIL"
FAIL_COUNT=$((${FAIL_COUNT} + 1))
fi
}
check_binary(){
COMMAND="$1 $2"
echo $COMMAND
${COMMAND}
RETVAL=$?
if [ ${RETVAL} != 0 ] ; then
echo "FAIL"
FAIL_COUNT=$((${FAIL_COUNT} + 1))
else
echo "PASS"
fi
}
check_pkg "malaga"
check_pkg "libmalaga"
for i in malaga mallex malmake malrul malshow malsym
do
check_binary ${i} -v
check_binary ${i} -h
done
echo "FAIL_COUNT=${FAIL_COUNT}"
exit ${FAIL_COUNT}

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- malaga
tests:
- simple:
dir: scripts
run: bash run.sh