Add missing gating files for c10s

Resolves: RHEL-56100

Signed-off-by: Yash Mankad <ymankad@redhat.com>
This commit is contained in:
Yash Mankad 2024-08-27 09:03:22 -04:00
parent 992c32c23c
commit d541950fba
3 changed files with 32 additions and 0 deletions

6
gating.yaml Normal file
View 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}

15
pefile-tests.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# config
COMMIT="64524fa8a041"
REMOTE="https://github.com/erocarrera/pefile-tests"
# clone repo and run tests
TESTDIR="$(mktemp --directory ${TMPDIR-/var/tmp}/test-XXXXXXXX)"
trap 'cd /; rm -rf "$TESTDIR"' EXIT
cd "$TESTDIR"
set -ex
git clone $REMOTE repo
cd repo
git checkout "$COMMIT"
pytest tests/pefile_test.py

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- git-core
- pytest
tests:
- pefile-tests:
run: /usr/share/python-pefile/pefile-tests.sh