diff options
author | Tom Rini <trini@konsulko.com> | 2021-11-30 08:03:21 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-11-30 08:03:21 -0500 |
commit | ce29c52891d2265f854119c9cc6defcc70b54c07 (patch) | |
tree | a6d0c08733eb50431342d440152754baf19fba2e /test/py/tests/test_efi_selftest.py | |
parent | ade37460a944aed36ae6ee634c4d4a9a22690461 (diff) | |
parent | c0d9bb0b4a747a7ec481b2369391ca8f53e50bc9 (diff) |
Merge tag 'efi-2022-01-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-01-rc4
Documentation:
* describe how to enable Virtio RNG on QEMU ARM
UEFI:
* enable testing the TCG2 protocol
* support TPM event log passed from firmware
Diffstat (limited to 'test/py/tests/test_efi_selftest.py')
-rw-r--r-- | test/py/tests/test_efi_selftest.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py index 0161a6ea24a..a48cd3290c2 100644 --- a/test/py/tests/test_efi_selftest.py +++ b/test/py/tests/test_efi_selftest.py @@ -210,3 +210,23 @@ def test_efi_selftest_text_input_ex(u_boot_console): if m != 0: raise Exception('Failures occurred during the EFI selftest') u_boot_console.restart_uboot() + +@pytest.mark.buildconfigspec('cmd_bootefi_selftest') +@pytest.mark.buildconfigspec('efi_tcg2_protocol') +def test_efi_selftest_tcg2(u_boot_console): + """Test the EFI_TCG2 PROTOCOL + + :param u_boot_console: U-Boot console + + This function executes the 'tcg2' unit test. + """ + u_boot_console.restart_uboot() + u_boot_console.run_command(cmd='setenv efi_selftest list') + output = u_boot_console.run_command('bootefi selftest') + assert '\'tcg2\'' in output + u_boot_console.run_command(cmd='setenv efi_selftest tcg2') + u_boot_console.run_command(cmd='bootefi selftest', wait_for_prompt=False) + m = u_boot_console.p.expect(['Summary: 0 failures', 'Press any key']) + if m != 0: + raise Exception('Failures occurred during the EFI selftest') + u_boot_console.restart_uboot() |