From 201dc97fcf2a476f6bf32d7fd138dd3c3d227768 Mon Sep 17 00:00:00 2001 From: Vladis Dronov Date: Fri, 12 Nov 2021 16:12:26 +0100 Subject: [PATCH] Update to qatlib 21.11 Add qatlib-tests package Add OSCI testing harness Resolves: rhbz#2012939 Signed-off-by: Vladis Dronov --- .gitignore | 2 +- gating.yaml | 6 ++++++ qatlib.spec | 42 ++++++++++++++++++++++++++++++++++++++---- sources | 2 +- tests/README | 13 +++++++++++++ tests/nulltest.sh | 6 ++++++ tests/tests.yml | 10 ++++++++++ 7 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 gating.yaml create mode 100644 tests/README create mode 100755 tests/nulltest.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 2ed6ffb..b4ba520 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/qatlib-21.05.0.tar.gz +/qatlib-21.11.0.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/qatlib.spec b/qatlib.spec index feed8c4..70fa7d5 100644 --- a/qatlib.spec +++ b/qatlib.spec @@ -1,9 +1,9 @@ # SPDX-License-Identifier: MIT -%global libqat_soversion 0 +%global libqat_soversion 2 %global libusdm_soversion 0 Name: qatlib -Version: 21.05.0 +Version: 21.11.0 Release: 1%{?dist} Summary: Intel QuickAssist user space library # The entire source code is released under BSD. @@ -39,6 +39,13 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package contains headers and libraries required to build applications that use the Intel QuickAssist APIs. +%package tests +Summary: Sample applications that use qatlib +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tests +This package contains sample applications that use the Intel QuickAssists APIs. + %prep %autosetup @@ -52,8 +59,7 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %install %make_install -rm %{buildroot}/%{_libdir}/libqat-%{version}.so -rm %{buildroot}/%{_libdir}/libusdm-%{version}.so +make DESTDIR=%{buildroot} samples-install rm %{buildroot}/%{_libdir}/libqat.la rm %{buildroot}/%{_libdir}/libusdm.la @@ -86,7 +92,35 @@ exit 0 %{_libdir}/libusdm.so %{_includedir}/qat +%files tests +%attr(0754,-,qat) %{_bindir}/cpa_sample_code +%attr(0754,-,qat) %{_bindir}/dc_dp_sample +%attr(0754,-,qat) %{_bindir}/dc_stateless_sample +%attr(0754,-,qat) %{_bindir}/dc_stateless_multi_op_sample +%attr(0754,-,qat) %{_bindir}/algchaining_sample +%attr(0754,-,qat) %{_bindir}/ccm_sample +%attr(0754,-,qat) %{_bindir}/cipher_sample +%attr(0754,-,qat) %{_bindir}/gcm_sample +%attr(0754,-,qat) %{_bindir}/hash_file_sample +%attr(0754,-,qat) %{_bindir}/hash_sample +%attr(0754,-,qat) %{_bindir}/ipsec_sample +%attr(0754,-,qat) %{_bindir}/ssl_sample +%attr(0754,-,qat) %{_bindir}/sym_dp_sample +%attr(0754,-,qat) %{_bindir}/dh_sample +%attr(0754,-,qat) %{_bindir}/eddsa_sample +%attr(0754,-,qat) %{_bindir}/prime_sample +%attr(0754,-,qat) %{_bindir}/hkdf_sample +%attr(0754,-,qat) %{_bindir}/ec_montedwds_sample +%{_datadir}/qat/calgary +%{_datadir}/qat/calgary32 +%{_datadir}/qat/canterbury + %changelog +* Thu Nov 11 2021 Vladis Dronov - 21.11.0-1 +- Update to qatlib 21.11 (bz 2012939) +- Add qatlib-tests package +- Add OSCI testing harness + * Mon Aug 16 2021 Vladis Dronov - 21.05.0-1 - Update to qatlib 21.05 with openssl-3 support (bz 1920444, bz 1953498) - Add documentation files to a package diff --git a/sources b/sources index abb15a2..ae0d9aa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (qatlib-21.05.0.tar.gz) = efcf6d683fb759846478ce75f6689b7a32fc0f5c37808d480a79cac1f45ab6e476f1b68d03e8a8de6056f1b82dd4a025a4a2341e7aaeb6fc745f55ba7ad86b2b +SHA512 (qatlib-21.11.0.tar.gz) = 740fa282ee540ba74e14ed07b4c79d3af239809c2b6216361b23ccc4787ee378a7a7c336c71087d4a1a59da22db7d5cdef7290ceb7f8e879feaf70f766119dfb diff --git a/tests/README b/tests/README new file mode 100644 index 0000000..29ee5c3 --- /dev/null +++ b/tests/README @@ -0,0 +1,13 @@ +these tests should be configured as BaseOS CI tests (not as OSCI tests), as +they require an x86_64 machine with QAT_4XXX (or later) hardware, so should +be run in Beaker. +see: https://docs.engineering.redhat.com/display/RTT/Onboarding+gating+tests +and: https://docs.engineering.redhat.com/pages/viewpage.action?pageId=53110084 +and: https://docs.engineering.redhat.com/display/RTT/Creating+and+Updating+beaker+test + +see https://bugzilla.redhat.com/show_bug.cgi?id=1725444#c31 for the details. + +QATlib includes some sample codes that can be used to do a sanity check. +However they require a platform with QAT_4XXX. The sample codes reside now +in qatlib-tests package in CRB. You can use cpa_sample_code for a general +sanity test. diff --git a/tests/nulltest.sh b/tests/nulltest.sh new file mode 100755 index 0000000..5bd192a --- /dev/null +++ b/tests/nulltest.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# we cannot the this since there is no machine with QAT_4XXX hardware in Beaker as of now +# Intel promised us to provide OtherQA for qatlib, qatengine and QAT kernel patchsets +echo QATLIB 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