mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 04:58:00 +00:00
7c99b81b10
* Lookup here needed summary id from device object * Portal linkage issue * CertificatesUsed not working properly with RIM * Maybe need to link to base rim * Rim test 1 needed hw file * Working on CI * Connecting new tpm2_common * Edited the way scripts called in docker exec * TPM for reset each test * Defining efi paths in CI env file * Forgot to close while loops * Connecting default test files * Variable was wrong [no ci] * Added ACA tests using uploaded artifacts * Trying to chmod rim_setup.sh * rim_setup chmod issues * Added aca tests 9 and 10 to workflow * Added cases 9 and 10 for aca policy tests * Exit test scripts with error if one test fails * Attempt to solve uploaded rim linkup * Try only setting tagId if not null * updateSupportRimInfo was not setting associated rim on base * Attempt alternate lookup of rim by device name * Trouble with event log archived * Used wrong variable * Fix spotbugs * Try again * Change SupplyChainValidation.message size to MAX_MESSAGE_LENGTH
33 lines
950 B
Bash
Executable File
33 lines
950 B
Bash
Executable File
#!/bin/bash
|
|
#########################################################################################
|
|
# Script to setup the TPM Provisioner.NET for System Tests
|
|
#########################################################################################
|
|
|
|
# Setting configurations
|
|
. /hirs/.ci/docker/.env
|
|
source /hirs/.ci/setup/container/tpm2_common.sh
|
|
|
|
set -a
|
|
|
|
set -e
|
|
echo "*** Setting up TPM emulator for the TPM2 Provisioner *** "
|
|
|
|
# Wait for ACA to boot
|
|
waitForAca
|
|
|
|
## Un-package Provisioner.NET RPM
|
|
yes | dnf install HIRS_Provisioner.NET/hirs/bin/Release/net6.0/linux-x64/HIRS_Provisioner.NET.2.2.0.linux-x64.rpm -y > /dev/null
|
|
|
|
# Initiate startup for IBMTSS Tools
|
|
startFreshTpmServer -f
|
|
startupTpm
|
|
installEkCert
|
|
|
|
setCiHirsAppsettingsFile
|
|
|
|
# Triggering a single provision for test
|
|
echo "==========="
|
|
echo "*** INITIAL TEST: Single Provision with Default Policy:"
|
|
echo "==========="
|
|
/usr/share/hirs/tpm_aca_provision --tcp --ip 127.0.0.1:2321 --sim
|