From 852e562e7f7d9695e06f289884bd110b63bc80cf Mon Sep 17 00:00:00 2001 From: Lukas Zachar Date: Wed, 4 May 2022 12:31:15 +0200 Subject: [PATCH] Run upstream test as gating Related: rhbz#2051483 Depends-On: https://gitlab.com/redhat/centos-stream/ci-cd/zuul/jobs-config/-/merge_requests/42 --- .fmf/version | 1 + gating.yaml | 6 ++++++ plans/main.fmf | 13 +++++++++++++ tests/upstream.fmf | 9 +++++++++ 4 files changed, 29 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/main.fmf create mode 100644 tests/upstream.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..23129e9 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,13 @@ +discover: + how: fmf + dist-git-source: true + +execute: + how: tmt + +prepare: + how: shell + script: | + dnf install -y "dnf-command(config-manager)" ; + dnf config-manager --set-enabled crb + diff --git a/tests/upstream.fmf b/tests/upstream.fmf new file mode 100644 index 0000000..77adc95 --- /dev/null +++ b/tests/upstream.fmf @@ -0,0 +1,9 @@ +test: | + rm -rf test/python_stdlib/{3.10,3.11,3.6,3.7,3.8} ; + pytest -v test.py +path: marshalparser-0.3.0/ +require: +- python3-pytest +- pyproject-rpm-macros +- python3-devel +duration: 15m