Compare commits

..

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

11 changed files with 56 additions and 1 deletions

6
.gitignore vendored
View File

@ -1 +1,5 @@
SOURCES/mcelog-195.tar.gz
SOURCES/v180.zip
/v180.zip
/mcelog-189.tar.gz
/mcelog-194.tar.gz
/mcelog-195.tar.gz

11
gating.yaml Normal file
View File

@ -0,0 +1,11 @@
--- !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 (mcelog-195.tar.gz) = 45436f5859a3ffd1c0eaf998282910ad317b85d03f15130a66a2d4e32e2653dbd86b2033db7f6b321a4b9692354adb92773c26958eb5d474954e12c9ab4a9cda

3
tests/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
artifacts/
*.patch
*.diff

12
tests/run_tests.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# fail the whole test set if any of the command pipelines fail
set -ex
# when running this in 1minutetip the PATH must be specified to execute
# in the local directory.
echo "Setting path to local directory"
PATH=$PATH:$(pwd)
# simple version test
version.sh

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test

15
tests/version.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
#
# This is a simple version test to satisfy the RHEL8.1 onboard gating
# requirement.
# fail the whole test if any of the command pipelines below fails
set -ex
version=$(mcelog --version 2>&1 | awk ' { print $2 } ')
if [ "$version" == "unknown" ]; then
echo "mcelog version is unknown."
exit 1
fi
# if we get here, it's OK