re-import sources as agreed with the maintainer
This commit is contained in:
parent
800f13dc4f
commit
eb8e356652
6
.gitignore
vendored
6
.gitignore
vendored
@ -1 +1,7 @@
|
|||||||
|
/ibmtss713withman.tar
|
||||||
|
/ibmtss1027.tar.gz
|
||||||
|
/makeman.sh
|
||||||
|
/ibmtss1234.tar.gz
|
||||||
|
*.src.rpm
|
||||||
|
/ibmtss1331.tar.gz
|
||||||
/ibmtss1.6.0.tar.gz
|
/ibmtss1.6.0.tar.gz
|
||||||
|
60
tests/runtest.sh
Executable file
60
tests/runtest.sh
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# get tpm simulator code
|
||||||
|
IBMTPM_VERSION=1637
|
||||||
|
wget --no-check-certificate https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm$IBMTPM_VERSION.tar.gz
|
||||||
|
|
||||||
|
res="$?"
|
||||||
|
|
||||||
|
if [[ "$res" -ne 0 ]]; then
|
||||||
|
echo "wget failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# unpackage and build the source
|
||||||
|
mkdir ibmtpm
|
||||||
|
pushd ibmtpm
|
||||||
|
tar xf ../ibmtpm$IBMTPM_VERSION.tar.gz
|
||||||
|
pushd src
|
||||||
|
make
|
||||||
|
|
||||||
|
res="$?"
|
||||||
|
|
||||||
|
if [[ "$res" -ne 0 ]]; then
|
||||||
|
echo "make of ibmtpm failed"
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
rm -rf ibmtpm ibmtpm$IBMTPM_VERSION.tar.gz
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
(./tpm_server)&
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
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
|
||||||
|
# fix python calls to use rhel name for python3
|
||||||
|
sed -i -e 's/^PREFIX=\.\//PREFIX=tss/g' reg.sh
|
||||||
|
# fix paths in rootcerts.txt
|
||||||
|
c=`pwd`
|
||||||
|
sed -i -e "s|/gsa/yktgsa/home/k/g/kgold/tpm2/utils|${c}|g" certificates/rootcerts.txt
|
||||||
|
# run the tests
|
||||||
|
./reg.sh -a
|
||||||
|
res="$?"
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
# clean up
|
||||||
|
pkill tpm_server
|
||||||
|
rm -rf ibmtpm ibmtpm$IBMTPM_VERSION.tar.gz tss
|
||||||
|
|
||||||
|
exit $res
|
18
tests/tests.yml
Normal file
18
tests/tests.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- gcc
|
||||||
|
- make
|
||||||
|
- wget
|
||||||
|
- openssl-devel
|
||||||
|
- sed
|
||||||
|
- tss2
|
||||||
|
- git
|
||||||
|
tests:
|
||||||
|
- ibm-tss2:
|
||||||
|
dir: .
|
||||||
|
run: ./runtest.sh
|
||||||
|
timeout: 30m
|
Loading…
Reference in New Issue
Block a user