From b2c05da946efff6cbc7c1a4bd7ec7814a9d3c024 Mon Sep 17 00:00:00 2001 From: Vladis Dronov Date: Wed, 27 Mar 2024 20:39:47 +0100 Subject: [PATCH] Add self-tests and an OSCI harness Resolves: RHEL-20173 Signed-off-by: Vladis Dronov --- .gitignore | 2 +- README.md | 3 -- gating.yaml | 6 +++ tests/nulltest.sh | 6 +++ tests/tests.yml | 10 +++++ xxhash.spec | 105 +++------------------------------------------- 6 files changed, 29 insertions(+), 103 deletions(-) delete mode 100644 README.md create mode 100644 gating.yaml create mode 100755 tests/nulltest.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index f6a3a77..f3c9f28 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/*.tar.gz +/xxhash-*.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 1154822..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# xxhash - -The xxhash package \ No newline at end of file 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/tests/nulltest.sh b/tests/nulltest.sh new file mode 100755 index 0000000..ed360ce --- /dev/null +++ b/tests/nulltest.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# xxhash runs tests at build stage. if tests fail a build fails. no need to duplicate. + +echo XXHASH nulltest is PASS +exit 0 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..0e807fa --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,10 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - nulltest: + dir: . + run: nulltest.sh diff --git a/xxhash.spec b/xxhash.spec index e6dab91..f4f650d 100644 --- a/xxhash.spec +++ b/xxhash.spec @@ -1,6 +1,6 @@ Name: xxhash Version: 0.8.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Extremely fast hash algorithm # The source for the library (xxhash.c and xxhash.h) is BSD-2-Clause @@ -101,104 +101,11 @@ make test-xxhsum-c %doc doxygen/html %changelog +* Wed Jun 26 2024 Vladis Dronov - 0.8.2-4 +- Add self-tests and an OSCI harness (RHEL-20173) + * Mon Jun 24 2024 Troy Dawson - 0.8.2-3 - Bump release for June 2024 mass rebuild -* Sat Jan 27 2024 Fedora Release Engineering - 0.8.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Mattias Ellert - 0.8.2-1 -- Update to version 0.8.2 -- Drop patch xxhash-epel7-ppc64le.patch -- Use SPDX license identifiers - -* Sat Jul 22 2023 Fedora Release Engineering - 0.8.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Mon Jun 19 2023 Florian Weimer - 0.8.1-5 -- Enable building with -march=x86-64-v3 (#2215831) - -* Sat Jan 21 2023 Fedora Release Engineering - 0.8.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sat Jul 23 2022 Fedora Release Engineering - 0.8.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Sat Jan 22 2022 Fedora Release Engineering - 0.8.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Mon Nov 29 2021 Mattias Ellert - 0.8.1-1 -- Update to version 0.8.1 -- Drop patch xxhash-pkgconfig-version.patch (accepted upstream) -- Fix compilation on RHEL 7 ppc64le (gcc 4.8) -- The x86 dispatch code now enables sse2 and avx2 separately, it can now use - sse2 on EPEL 7 without trying to use avx2 which is not supported by gcc 4.8 -- Add documentation package - doxygen mark-up was added - -* Fri Jul 23 2021 Fedora Release Engineering - 0.8.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Thu Jun 10 2021 Benjamin A. Beasley - 0.8.0-3 -- Add virtual Provide for xxhash-static in xxhash-devel - -* Thu Jan 28 2021 Fedora Release Engineering - 0.8.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Jul 28 2020 Mattias Ellert - 0.8.0-1 -- Update to version 0.8.0 -- Drop patches xxhash-compiler-warning-32-bit.patch (accepted upstream) - and xxhash-pkgconfig.patch (issue fixed upstream) -- Fix empty version in .pc file - -* Fri Jul 24 2020 Mattias Ellert - 0.7.4-2 -- Fix libdir in pkg-config file - -* Sat Jun 27 2020 Mattias Ellert - 0.7.4-1 -- Update to version 0.7.4 -- Enable runtime detection of sse2/avx2/avx512 on intel architectures -- Fix compiler warning for 32 bit architectures - -* Fri Mar 06 2020 Mattias Ellert - 0.7.3-1 -- Update to version 0.7.3 -- Drop patch xxhash-gcc10-altivec.patch (accepted upstream) - -* Fri Feb 07 2020 Mattias Ellert - 0.7.2-3 -- Fix ppc64le build with gcc 10 - -* Fri Jan 31 2020 Fedora Release Engineering - 0.7.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Oct 09 2019 Mattias Ellert - 0.7.2-1 -- Update to version 0.7.2 - -* Sat Aug 17 2019 Mattias Ellert - 0.7.1-1 -- Update to version 0.7.1 - -* Sat Jul 27 2019 Fedora Release Engineering - 0.7.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Mon Mar 18 2019 Mattias Ellert - 0.7.0-1 -- Update to version 0.7.0 - -* Sun Feb 03 2019 Fedora Release Engineering - 0.6.5-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Jul 14 2018 Fedora Release Engineering - 0.6.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Apr 19 2018 Mattias Ellert - 0.6.5-1 -- Update to version 0.6.5 - -* Fri Feb 09 2018 Fedora Release Engineering - 0.6.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jan 03 2018 Mattias Ellert - 0.6.4-1 -- Update to version 0.6.4 -- Drop previously backported patches - -* Thu Oct 19 2017 Mattias Ellert - 0.6.3-2 -- Correct License tag (command line tool is GPLv2+) -- Adjust Source tag to get a more descriptive tarfile name - -* Wed Oct 18 2017 Mattias Ellert - 0.6.3-1 -- Initial packaging +* Fri Jan 26 2024 Vladis Dronov - 0.8.2-2 +- Initial import from Fedora 40