From a2832337cc9b198acb2f38f1635154d5a57bac0f Mon Sep 17 00:00:00 2001 From: aborah-sudo Date: Thu, 17 Oct 2024 15:18:25 +0530 Subject: [PATCH] Add gating for libeconf --- .fmf/{ver‎sion‎ => version} | 0 gating.yaml | 6 ------ main.fmf | 17 +++++++++++++++++ main‎.fmf‎ | 24 ------------------------ 4 files changed, 17 insertions(+), 30 deletions(-) rename .fmf/{ver‎sion‎ => version} (100%) delete mode 100644 gating.yaml create mode 100644 main.fmf delete mode 100644 main‎.fmf‎ diff --git a/.fmf/ver‎sion‎ b/.fmf/version similarity index 100% rename from .fmf/ver‎sion‎ rename to .fmf/version diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index 4ca9235..0000000 --- a/gating.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- !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..30e09d9 --- /dev/null +++ b/main.fmf @@ -0,0 +1,17 @@ +/plan: + summary: Basic test suite + discover: + how: fmf + execute: + how: tmt +/test: + summary: Run all tests + test: | + git clone https://github.com/openSUSE/libeconf.git + cd libeconf/bindings/python3 + cp econf.py test/econf.py + pytest -v test/ + require: + - git-core + - pytest + duration: 30m diff --git a/main‎.fmf‎ b/main‎.fmf‎ deleted file mode 100644 index 3371722..0000000 --- a/main‎.fmf‎ +++ /dev/null @@ -1,24 +0,0 @@ -/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