From 8ae89d1fcbbf9b0e89353ea14e22ab1b9916cfca Mon Sep 17 00:00:00 2001 From: Tomas Halman Date: Fri, 31 May 2024 15:41:53 +0200 Subject: [PATCH] Add gating tests Related: RHEL-36185 --- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/scripts/run_tests.sh | 12 ++++++++++++ tests/tests.yml | 12 ++++++++++++ xmlsec1.spec | 6 +++++- 5 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 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/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..8763ff5 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - mod_auth_mellon: + dir: scripts + run: ./run_tests.sh + required_packages: + - git + diff --git a/xmlsec1.spec b/xmlsec1.spec index 95e9030..ddacd16 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.25 -Release: 7%{?dist}%{?extra_release} +Release: 8%{?dist}%{?extra_release} License: MIT Source0: http://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz URL: http://www.aleksey.com/xmlsec/ @@ -180,6 +180,10 @@ mv %{buildroot}%{_docdir}/xmlsec1/* __tmp_doc %{_libdir}/pkgconfig/xmlsec1-nss.pc %changelog +* Fri May 31 2024 Tomas Halman - 1.2.25-8 +- Add gating tests + Related: RHEL-36185 + * Mon May 20 2024 Tomas Halman - 1.2.25-7 - Fix adopt function the same way as in upstream Related: RHEL-36185