From c52029c16227fe912e7bd8b2653a40655684c96f Mon Sep 17 00:00:00 2001 From: aborah-sudo Date: Thu, 17 Oct 2024 11:19:04 +0530 Subject: [PATCH] Adding gating tests for libeconf. Resolves: RHELMISC-7550 --- .fmf/ver‎sion‎ | 1 + gating.yaml | 6 ++++++ main‎.fmf‎ | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .fmf/ver‎sion‎ create mode 100644 gating.yaml create mode 100644 main‎.fmf‎ diff --git a/.fmf/ver‎sion‎ b/.fmf/ver‎sion‎ new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/ver‎sion‎ @@ -0,0 +1 @@ +1 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/main‎.fmf‎ b/main‎.fmf‎ new file mode 100644 index 0000000..3371722 --- /dev/null +++ b/main‎.fmf‎ @@ -0,0 +1,24 @@ +/plan: + summary: Basic test suite + discover: + how: fmf + execute: + how: tmt + prepare: + - name: install required packages + how: install + package: [git, pytest] + - name: clone repo + how: shell + script: git clone https://github.com/openSUSE/libeconf.git /root/libeconf + - name: Copy file with owner and permissions + ansible.builtin.copy: + src: /root/libeconf/bindings/python3/econf.py + dest: /root/libeconf/bindings/python3/test/econf.py + - name: Change Directory + shell: + chdir: /root/libeconf/bindings/python3 +/test: + /upstream_basic: + test: pytest -v test/ + duration: 30m