From 6ddeeb114d1b65be108627e4501df001320b5190 Mon Sep 17 00:00:00 2001 From: Lukas Zachar Date: Tue, 16 Jan 2024 20:20:01 +0100 Subject: [PATCH] Add tmt gating plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cherry-picked from python3.11-scipy 67801e27208adb01305579bd046956402e3dbad7 https://gitlab.com/redhat/centos-stream/rpms/python3.11-scipy/-/commit/67801e27208adb01305579bd046956402e3dbad7 Amended to install pooch and assert the results. Co-Authored-By: Miro HronĨok --- .fmf/version | 1 + gating.yaml | 7 +++++++ plan.fmf | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plan.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..a77f895 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy + +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..ece8d2a --- /dev/null +++ b/plan.fmf @@ -0,0 +1,20 @@ +execute: + how: tmt +discover: + how: shell + tests: + - name: bundled tests + require: + - python3.12-pip + - python3.12-pytest + - python3.12-scipy + - python3.12-scipy-tests + # transitive requirements of pooch, we want them from RHEL: + - python3.12-charset-normalizer + - python3.12-idna + - python3.12-requests + - python3.12-urllib3 + duration: 30m + test: | + pip3.12 install pooch==1.8.0 && + python3.12 -c 'import scipy; assert scipy.test()'