spec/acceptance/suites/default/05_install_tpms_spec.rb
def start_tpm_1_2_sim(hirs_host)
    os = fact_on(hirs_host,'operatingsystemmajrelease')
    on hirs_host, 'yum install -y trousers gcc tpm-tools'
    if os.eql?('7')
      on hirs_host, 'systemctl start tpm12-simulator'
      on hirs_host, 'systemctl start tpm12-tpmbios'
      on hirs_host, 'systemctl restart tpm12-simulator'
      on hirs_host, 'systemctl restart tpm12-tpmbios'
      on hirs_host, 'systemctl start tpm12-tpminit'
      on hirs_host, 'systemctl start tpm12-tcsd'
    else os.eql?('6')
      on hirs_host, 'service tpm12-simulator start '
      on hirs_host, 'service tpm12-tpmbios start '
      on hirs_host, 'service tpm12-simulator restart '
      on hirs_host, 'service tpm12-tpmbios start '
      on hirs_host, 'service tpm12-tpminit start '
      on hirs_host, 'service tpm12-tcsd start '
    end
  end
# starts tpm 1.2 simulator services 
# Per the README file included with the source code, procedures for starting the tpm are:
#   Start the TPM in another shell after setting its environment variables
#     (TPM_PATH,TPM_PORT)
#     > cd utils
#     > ./tpmbios
#   Kill the TPM in the other shell and restart it
starts tpm 1.2 simulator services
Per the README file included with the source code, procedures for starting the tpm are:
Start the TPM in another shell after setting its environment variables
(TPM_PATH,TPM_PORT)
> cd utils
> ./tpmbios
Kill the TPM in the other shell and restart it
starts tpm 1 . 2 simulator services Per the README file included with the source code procedures for starting the tpm are : Start the TPM in another shell after setting its environment variables ( TPM_PATH TPM_PORT ) > cd utils > . / tpmbios Kill the TPM in the other shell and restart it
def start_tpm_1_2_sim(hirs_host)
    os = fact_on(hirs_host,'operatingsystemmajrelease')
    on hirs_host, 'yum install -y trousers gcc tpm-tools'
    if os.eql?('7')
      on hirs_host, 'systemctl start tpm12-simulator'
      on hirs_host, 'systemctl start tpm12-tpmbios'
      on hirs_host, 'systemctl restart tpm12-simulator'
      on hirs_host, 'systemctl restart tpm12-tpmbios'
      on hirs_host, 'systemctl start tpm12-tpminit'
      on hirs_host, 'systemctl start tpm12-tcsd'
    else os.eql?('6')
      on hirs_host, 'service tpm12-simulator start '
      on hirs_host, 'service tpm12-tpmbios start '
      on hirs_host, 'service tpm12-simulator restart '
      on hirs_host, 'service tpm12-tpmbios start '
      on hirs_host, 'service tpm12-tpminit start '
      on hirs_host, 'service tpm12-tcsd start '
    end
  end
def start_tpm_1_2_sim ( hirs_host ) os = fact_on ( hirs_host , 'operatingsystemmajrelease' ) on hirs_host , 'yum install -y trousers gcc tpm-tools' if os . eql? ( '7' ) on hirs_host , 'systemctl start tpm12-simulator' on hirs_host , 'systemctl start tpm12-tpmbios' on hirs_host , 'systemctl restart tpm12-simulator' on hirs_host , 'systemctl restart tpm12-tpmbios' on hirs_host , 'systemctl start tpm12-tpminit' on hirs_host , 'systemctl start tpm12-tcsd' else os . eql? ( '6' ) on hirs_host , 'service tpm12-simulator start ' on hirs_host , 'service tpm12-tpmbios start ' on hirs_host , 'service tpm12-simulator restart ' on hirs_host , 'service tpm12-tpmbios start ' on hirs_host , 'service tpm12-tpminit start ' on hirs_host , 'service tpm12-tcsd start ' end end
starts tpm 1.2 simulator services
Per the README file included with the source code, procedures for starting the tpm are:
Start the TPM in another shell after setting its environment variables
(TPM_PATH,TPM_PORT)
> cd utils
> ./tpmbios
Kill the TPM in the other shell and restart it
starts tpm 1 . 2 simulator services Per the README file included with the source code procedures for starting the tpm are : Start the TPM in another shell after setting its environment variables ( TPM_PATH TPM_PORT ) > cd utils > . / tpmbios Kill the TPM in the other shell and restart it
hirs_host