Fix FTBS by running p11 tests individually
The tests in src/lib/test ran through p11test driver. When CPPUNIT runs them, the order is not guaranteed and tests fail differently each run. When individual test suites being run as `p11test TestName`, they all succeed. Switch test runs to explicit order. Resolves: rhbz#2261703 Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
ffd36f8779
commit
da2f404e56
20
softhsm.spec
20
softhsm.spec
@ -4,7 +4,7 @@
|
|||||||
Summary: Software version of a PKCS#11 Hardware Security Module
|
Summary: Software version of a PKCS#11 Hardware Security Module
|
||||||
Name: softhsm
|
Name: softhsm
|
||||||
Version: 2.6.1
|
Version: 2.6.1
|
||||||
Release: %{?prever:0.}7%{?prever:.%{prever}}%{?dist}.1
|
Release: %{?prever:0.}8%{?prever:.%{prever}}%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: http://www.opendnssec.org/
|
Url: http://www.opendnssec.org/
|
||||||
Source: http://dist.opendnssec.org/source/%{?prever:testing/}%{name}-%{version}.tar.gz
|
Source: http://dist.opendnssec.org/source/%{?prever:testing/}%{name}-%{version}.tar.gz
|
||||||
@ -70,7 +70,19 @@ autoreconf -fiv
|
|||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
for d in crypto data_mgr handle_mgr object_store session_mgr slot_mgr ; do
|
||||||
|
make check -C src/lib/$d
|
||||||
|
done
|
||||||
|
|
||||||
|
pushd src/lib/test
|
||||||
|
make p11test
|
||||||
|
for t in TokenTests AsymWrapUnwrapTests DigestTests ForkTests \
|
||||||
|
InitTests InfoTests SessionTests UserTests RandomTests \
|
||||||
|
SignVerifyTests AsymEncryptDecryptTests DeriveTests \
|
||||||
|
ObjectTests SymmetricAlgorithmTests ; do
|
||||||
|
./p11test $t
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -121,6 +133,10 @@ if [ -f /var/softhsm/slot0.db ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 08 2024 Alexander Bokovoy <abokovoy@redhat.com> - 2.6.1-8
|
||||||
|
- Run p11test tests individually
|
||||||
|
- Resolves: rhbz#2261703
|
||||||
|
|
||||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-7.1
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-7.1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user