tpm2-tools: Use build source for tests
Resolves: rhbz#2090748 Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
This commit is contained in:
parent
1ec5ef1702
commit
eccdf14ada
@ -17,7 +17,7 @@ pushd ibmtpm
|
|||||||
tar xf ../ibmtpm$IBMTPM_VERSION.tar.gz
|
tar xf ../ibmtpm$IBMTPM_VERSION.tar.gz
|
||||||
pushd src
|
pushd src
|
||||||
# fixup for openssl 3
|
# fixup for openssl 3
|
||||||
sed -i -e "s|OPENSSL_VERSION_NUMBER >= 0x10200000L|OPENSSL_VERSION_NUMBER > 0x30000000L|" TpmToOsslMath.h
|
sed -i -e "s|OPENSSL_VERSION_NUMBER >= 0x10200000L|OPENSSL_VERSION_NUMBER > 0x30000010L|" TpmToOsslMath.h
|
||||||
sed -i -e "s|CCFLAGS = -Wall|CCFLAGS = -Wall -Wno-error=deprecated-declarations|" makefile
|
sed -i -e "s|CCFLAGS = -Wall|CCFLAGS = -Wall -Wno-error=deprecated-declarations|" makefile
|
||||||
make
|
make
|
||||||
|
|
||||||
@ -33,12 +33,8 @@ fi
|
|||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# get tpm2-tools tests
|
# Update python command in tpm2-tools tests
|
||||||
TPM2_TOOLS_VERSION=5.0
|
pushd source/test/integration
|
||||||
git clone https://github.com/01org/tpm2-tools.git
|
|
||||||
pushd tpm2-tools
|
|
||||||
git checkout -b test $TPM2_TOOLS_VERSION
|
|
||||||
pushd test/integration
|
|
||||||
sed -i -e 's/python/python3/g' helpers.sh
|
sed -i -e 's/python/python3/g' helpers.sh
|
||||||
pushd tests
|
pushd tests
|
||||||
sed -i -e 's/python/python3/g' *.sh
|
sed -i -e 's/python/python3/g' *.sh
|
||||||
@ -46,15 +42,14 @@ sed -i -e 's/python/python3/g' *.sh
|
|||||||
chmod +x *.sh
|
chmod +x *.sh
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
popd
|
|
||||||
|
|
||||||
TPM2_ABRMD=tpm2-abrmd
|
TPM2_ABRMD=tpm2-abrmd
|
||||||
TPM2_SIM=tpm_server
|
TPM2_SIM=tpm_server
|
||||||
TPM2_TOOLS_TEST_FIXTURES=`pwd`/tpm2-tools/test/integration/fixtures
|
TPM2_TOOLS_TEST_FIXTURES=`pwd`/source/test/integration/fixtures
|
||||||
PATH=`pwd`/ibmtpm/src/:.:$PATH
|
PATH=`pwd`/ibmtpm/src/:.:$PATH
|
||||||
export TPM2_ABRMD TPM2_SIM TPM2_TOOLS_TEST_FIXTURES PATH
|
export TPM2_ABRMD TPM2_SIM TPM2_TOOLS_TEST_FIXTURES PATH
|
||||||
|
|
||||||
pushd tpm2-tools/test/integration
|
pushd source/test/integration
|
||||||
for t in `ls tests/*.sh`
|
for t in `ls tests/*.sh`
|
||||||
do
|
do
|
||||||
f=`basename $t`
|
f=`basename $t`
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
|
- role: standard-test-source
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
- role: standard-test-basic
|
- role: standard-test-basic
|
||||||
tags:
|
tags:
|
||||||
- classic
|
- classic
|
||||||
@ -17,7 +20,6 @@
|
|||||||
- tpm2-abrmd
|
- tpm2-abrmd
|
||||||
- tpm2-abrmd-selinux
|
- tpm2-abrmd-selinux
|
||||||
- python3
|
- python3
|
||||||
- git
|
|
||||||
- vim-common
|
- vim-common
|
||||||
- perl-Digest-SHA
|
- perl-Digest-SHA
|
||||||
- dbus-daemon
|
- dbus-daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user