Files
Mateusz Maciejewski 98d18f6967 V560tne 1.0.0 rc6 (#1105)
* V560TNE configuration extensions & test fixes

platform-config: hw configuration & benchmark data
tpm2-commands & lib/tpm2: fix for supported SHA variables settings
cpu-temperature: 006 ID fix

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>

* v560tne_1.0.0-rc6: test ID fixes, mostly MNE (ME Neuter)

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>

* test_cases.json: New line added at the end of file.

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>

* test_cases.json: Fix SMW001 ids

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>

* m2-wifi: Fix SMW001.001 ID

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>

* pre-commit fixes

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>

---------

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Co-authored-by: Filip Gołaś <filip.golas@3mdeb.com>
2025-09-26 16:53:40 +02:00

40 lines
1.6 KiB
Plaintext

*** Settings ***
Library OperatingSystem
Library String
*** Keywords ***
Flush TPM Contexts
Execute Linux Tpm2 Tools Command tpm2_flushcontext -t
Execute Linux Tpm2 Tools Command tpm2_flushcontext -l
Execute Linux Tpm2 Tools Command tpm2_flushcontext -s
Check Which TPM2 Banks Are Enabled
[Documentation] Checks which Bank is enabled, returns tuple (bool, bool)
${out}= Execute Linux Command tpm2_getcap pcrs
${sha1}= Run Keyword And Return Status
... Should Contain
... ${out}
... sha1: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ]
${sha256}= Run Keyword And Return Status
... Should Contain
... ${out}
... sha256: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ]
RETURN ${sha1} ${sha256}
Check If SHA1 And SHA256 Banks Are Enabled
${sha1} ${sha256}= Check Which TPM2 Banks Are Enabled
Should Be True ${sha1}
Should Be True ${sha256}
Check TPM2 Banks State After FW Changes
[Documentation] Verifies the state of TPM Banks. Fails test if they are different than input.
[Arguments] ${sha1_desired} ${sha256_desired}
Save Changes And Reset
Read From Terminal Until Press F12 to change the boot measurements to use PCR bank(s) of the TPM
Press Key N Times 1 ${F12}
Prepare TPM Test On Linux
${sha1} ${sha256}= Check Which TPM2 Banks Are Enabled
Should Be Equal ${sha1} ${sha1_desired}
Should Be Equal ${sha256} ${sha256_desired}