From 414ca4e7298361617de952d12c917660001ba1ee Mon Sep 17 00:00:00 2001 From: Tomas Halman Date: Tue, 2 Apr 2024 18:15:16 +0200 Subject: [PATCH] Add gating tests --- .fmf/version | 1 + gating.yaml | 6 ++++++ plans/all.fmf | 21 +++++++++++++++++++++ tests/provision.fmf | 5 +++++ tests/scripts/main.fmf | 6 ++++++ tests/scripts/run_tests.sh | 12 ++++++++++++ tests/tests.yml | 12 ++++++++++++ xmlsec1.spec | 7 +++++-- 8 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/all.fmf create mode 100644 tests/provision.fmf create mode 100644 tests/scripts/main.fmf create mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml 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..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/plans/all.fmf b/plans/all.fmf new file mode 100644 index 0000000..16c79de --- /dev/null +++ b/plans/all.fmf @@ -0,0 +1,21 @@ +summary: Run gating tests +discover: + how: fmf + dist-git-source: true + dist-git-type: centos +prepare: + - how: install + package: + - dnf-plugins-core + - how: shell + script: /usr/bin/crb enable + - how: install + package: + - xmlsec1 + - git + - how: shell + script: dnf config-manager --disable epel* + +execute: + how: tmt + diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..9b64bb6 --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + m: 3G + smp: 2 diff --git a/tests/scripts/main.fmf b/tests/scripts/main.fmf new file mode 100644 index 0000000..dc5529c --- /dev/null +++ b/tests/scripts/main.fmf @@ -0,0 +1,6 @@ +summary: Run xmlsec1 gating tests +require: + - git +test: ./run_tests.sh +duration: 30m + diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..a30e61c --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +export GIT_SSL_NO_VERIFY=true +git clone https://github.com/latchset/federation_testing.git + +cd federation_testing +if [ ! -d /tmp/artifacts ]; then + mkdir -p /tmp/artifacts +fi + +./setup.sh +./test_xmlsec.sh diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..50e0840 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - xmlsec1: + dir: scripts + run: ./run_tests.sh + required_packages: + - git + diff --git a/xmlsec1.spec b/xmlsec1.spec index 5d160cb..f6ee061 100644 --- a/xmlsec1.spec +++ b/xmlsec1.spec @@ -1,7 +1,7 @@ Summary: Library providing support for "XML Signature" and "XML Encryption" standards Name: xmlsec1 Version: 1.2.39 -Release: 1%{?dist}%{?extra_release} +Release: 2%{?dist}%{?extra_release} Epoch: 1 License: MIT Source0: https://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz @@ -128,12 +128,15 @@ mv %{buildroot}%{_docdir}/xmlsec1/* __tmp_doc %{_libdir}/pkgconfig/xmlsec1-nss.pc %changelog +* Tue Jul 30 2024 Tomas Halman - 1.2.39-2 +- Add gating tests + * Mon Jul 29 2024 Tomas Halman - 1.2.39-1 - Resolves: RHEL-46771 Rebase to version 1.2.39 Fix openssl engine dependency Stop building gcrypt and gnutls implementations - + * Mon Jun 24 2024 Troy Dawson - 1:1.2.37-8 - Bump release for June 2024 mass rebuild