From d541950fba44e7dccba7dd91af8e500039efdd7f Mon Sep 17 00:00:00 2001 From: Yash Mankad Date: Tue, 27 Aug 2024 09:03:22 -0400 Subject: [PATCH] Add missing gating files for c10s Resolves: RHEL-56100 Signed-off-by: Yash Mankad --- gating.yaml | 6 ++++++ pefile-tests.sh | 15 +++++++++++++++ tests/tests.yml | 11 +++++++++++ 3 files changed, 32 insertions(+) create mode 100644 gating.yaml create mode 100644 pefile-tests.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /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/pefile-tests.sh b/pefile-tests.sh new file mode 100644 index 0000000..acb1f2b --- /dev/null +++ b/pefile-tests.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..cd09315 --- /dev/null +++ b/tests/tests.yml @@ -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