Use tests from build

Previously the tests were cloned from the upstream repo, where they also
contain tests for SHA-1. After restricting SHA-1, these tests cannot
succeed. Use updated tests from patches instead.

Resolves: rhbz#2060768

Signed-off-by: Štěpán Horáček <shoracek@redhat.com>
This commit is contained in:
Štěpán Horáček 2022-02-24 18:27:31 +01:00
parent e5eb743f56
commit d56bd7eab9
3 changed files with 8 additions and 9 deletions

View File

@ -39,12 +39,8 @@ sleep 10
export TPM_INTERFACE_TYPE=socsim
# get tss2 tests
TSS2_VERSION=v1.6.0
git clone https://git.code.sf.net/p/ibmtpm20tss/tss
pushd tss
git checkout -b test $TSS2_VERSION
pushd utils
# use the tss2 tests from the sources
pushd ./source/utils
# fix python calls to use rhel name for python3
sed -i -e 's/^PREFIX=\.\//PREFIX=tss/g' reg.sh
# fix paths in rootcerts.txt
@ -54,10 +50,9 @@ sed -i -e "s|/gsa/yktgsa/home/k/g/kgold/tpm2/utils|${c}|g" certificates/rootcert
./reg.sh -a
res="$?"
popd
popd
# clean up
pkill tpm_server
rm -rf ibmtpm ibmtpm$IBMTPM_VERSION.tar.gz tss
rm -rf ibmtpm tss
exit $res

View File

@ -1,5 +1,8 @@
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- classic

View File

@ -28,6 +28,7 @@ BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: openssl-devel
BuildRequires: git
Requires: openssl
%description
@ -48,7 +49,7 @@ Development libraries and headers for IBM's TSS 2.0. You will need this in
order to build TSS 2.0 applications.
%prep
%autosetup -p1 -c %{name}-%{version}
%autosetup -S git -p1 -c %{name}-%{version}
%build
autoreconf -vi