Compare commits
No commits in common. "c8s" and "c8" have entirely different histories.
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1 @@
|
||||
/tpm2-abrmd-2.0.0.tar.gz
|
||||
/tpm2-abrmd-2.1.1.tar.gz
|
||||
/tpm2-abrmd-2.3.3.tar.gz
|
||||
SOURCES/tpm2-abrmd-2.3.3.tar.gz
|
||||
|
1
.tpm2-abrmd.metadata
Normal file
1
.tpm2-abrmd.metadata
Normal file
@ -0,0 +1 @@
|
||||
fb6e3565ea65813e30dee0b50b9c20b36973182f SOURCES/tpm2-abrmd-2.3.3.tar.gz
|
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
1
sources
1
sources
@ -1 +0,0 @@
|
||||
SHA512 (tpm2-abrmd-2.3.3.tar.gz) = 2191c7e466271cb85fcb20fcd91c78df80f53030fb055d0b4670db33708939b60a9124955356f27662975abdcb9c8d144df884003986ffdbd801ca4e47edc21a
|
@ -1,85 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get tpm simulator code
|
||||
IBMTPM_VERSION=1332
|
||||
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
|
||||
popd
|
||||
popd
|
||||
|
||||
# get tpm2-tools tests
|
||||
TPM2_TOOLS_VERSION=4.1.1
|
||||
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
|
||||
pushd tests
|
||||
sed -i -e 's/python/python3/g' *.sh
|
||||
# some tests aren't executable currently. Needs to be fixed upstream.
|
||||
chmod +x *.sh
|
||||
popd
|
||||
popd
|
||||
popd
|
||||
|
||||
TPM2_ABRMD=tpm2-abrmd
|
||||
TPM2_SIM=tpm_server
|
||||
TPM2_TOOLS_TEST_FIXTURES=`pwd`/tpm2-tools/test/integration/fixtures
|
||||
PATH=`pwd`/ibmtpm/src/:.:$PATH
|
||||
export TPM2_ABRMD TPM2_SIM TPM2_TOOLS_TEST_FIXTURES PATH
|
||||
|
||||
pushd tpm2-tools/test/integration
|
||||
for t in `ls tests/*.sh`
|
||||
do
|
||||
f=`basename $t`
|
||||
test=${f%%.*}
|
||||
/usr/share/automake-1.16/test-driver --test-name $test --log-file $test.log --trs-file $test.trs $t
|
||||
done
|
||||
all=`grep ":test-result:" *.trs | wc -l`;
|
||||
pass=`grep ":test-result: PASS" *.trs | wc -l`;
|
||||
fail=`grep ":test-result: FAIL" *.trs | wc -l`;
|
||||
skip=`grep ":test-result: SKIP" *.trs | wc -l`;
|
||||
xfail=`grep ":test-result: XFAIL" *.trs | wc -l`;
|
||||
xpass=`grep ":test-result: XPASS" *.trs | wc -l`;
|
||||
error=`grep ":test-result: ERROR" *.trs | wc -l`;
|
||||
if [[ $(($fail + $xpass + $error)) -eq 0 ]]; then
|
||||
success=0
|
||||
else
|
||||
success=1
|
||||
fi;
|
||||
popd
|
||||
|
||||
echo PASSED: $pass
|
||||
echo FAILED: $fail
|
||||
echo SKIPPED: $skip
|
||||
echo XFAIL: $xfail
|
||||
echo XPASS: $xpass
|
||||
echo ERROR: $error
|
||||
|
||||
# clean up
|
||||
rm -rf ibmtpm ibmtpm$IBMTPM_VERSION.tar.gz tpm2-tools
|
||||
|
||||
exit $success
|
@ -1,27 +0,0 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- gcc
|
||||
- make
|
||||
- automake
|
||||
- wget
|
||||
- openssl-devel
|
||||
- sed
|
||||
- tpm2-tss
|
||||
- tpm2-tss-devel
|
||||
- tpm2-tools
|
||||
- tpm2-abrmd
|
||||
- tpm2-abrmd-selinux
|
||||
- python36
|
||||
- git
|
||||
- vim-common
|
||||
- perl-Digest-SHA
|
||||
- dbus
|
||||
tests:
|
||||
- intel-tpm2:
|
||||
dir: .
|
||||
run: dbus-run-session ./runtest.sh
|
||||
timeout: 60m
|
Loading…
Reference in New Issue
Block a user