Update to qatlib 21.11

Add qatlib-tests package
Add OSCI testing harness

Resolves: rhbz#2012939

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
This commit is contained in:
Vladis Dronov 2021-11-12 16:12:26 +01:00
parent 173eeca73a
commit 201dc97fcf
7 changed files with 75 additions and 6 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/qatlib-21.05.0.tar.gz
/qatlib-21.11.0.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -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 <vdronov@redhat.com> - 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 <vdronov@redhat.com> - 21.05.0-1
- Update to qatlib 21.05 with openssl-3 support (bz 1920444, bz 1953498)
- Add documentation files to a package

View File

@ -1 +1 @@
SHA512 (qatlib-21.05.0.tar.gz) = efcf6d683fb759846478ce75f6689b7a32fc0f5c37808d480a79cac1f45ab6e476f1b68d03e8a8de6056f1b82dd4a025a4a2341e7aaeb6fc745f55ba7ad86b2b
SHA512 (qatlib-21.11.0.tar.gz) = 740fa282ee540ba74e14ed07b4c79d3af239809c2b6216361b23ccc4787ee378a7a7c336c71087d4a1a59da22db7d5cdef7290ceb7f8e879feaf70f766119dfb

13
tests/README Normal file
View File

@ -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.

6
tests/nulltest.sh Executable file
View File

@ -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

10
tests/tests.yml Normal file
View File

@ -0,0 +1,10 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- nulltest:
dir: .
run: nulltest.sh