Add three more ECPT tests to verify the EBBR 2.[234] conformance profiles entries with the "efidebug ecpt" command.
Signed-off-by: Vincent Stehlé <[email protected]> Cc: Heinrich Schuchardt <[email protected]> Cc: Ilias Apalodimas <[email protected]> Cc: Tom Rini <[email protected]> --- test/py/tests/test_efi_ecpt.py | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/test/py/tests/test_efi_ecpt.py b/test/py/tests/test_efi_ecpt.py index 632a6b90bad..5f6dc2b74dc 100644 --- a/test/py/tests/test_efi_ecpt.py +++ b/test/py/tests/test_efi_ecpt.py @@ -40,3 +40,51 @@ def test_efi_ecpt_ebbr_2_1(ubman) -> None: response = ubman.run_command('efidebug ecpt') assert ('cce33c35-74ac-4087-bce7-8b29b02eeb27 ' 'EFI EBBR 2.1 Conformance Profile') in response + + [email protected]('cmd_efidebug') [email protected]('efi_ecpt') [email protected]('efi_ebbr_2_2_conformance') +def test_efi_ecpt_ebbr_2_2(ubman) -> None: + """ Unit test for the ECPT, with EBBR 2.2 profile + This test uses the efidebug ecpt command to dump the ECPT and check that + the EBBR 2.2 conformance profile is there. + + Args: + ubman -- U-Boot console + """ + response = ubman.run_command('efidebug ecpt') + assert ('9073eed4-e50d-11ee-b8b0-8b68da62fc80 ' + 'EFI EBBR 2.2 Conformance Profile') in response + + [email protected]('cmd_efidebug') [email protected]('efi_ecpt') [email protected]('efi_ebbr_2_3_conformance') +def test_efi_ecpt_ebbr_2_3(ubman) -> None: + """ Unit test for the ECPT, with EBBR 2.3 profile + This test uses the efidebug ecpt command to dump the ECPT and check that + the EBBR 2.3 conformance profile is there. + + Args: + ubman -- U-Boot console + """ + response = ubman.run_command('efidebug ecpt') + assert ('7721fc77-a724-11ef-8eaa-f7c9b194ba75 ' + 'EFI EBBR 2.3 Conformance Profile') in response + + [email protected]('cmd_efidebug') [email protected]('efi_ecpt') [email protected]('efi_ebbr_2_4_conformance') +def test_efi_ecpt_ebbr_2_4(ubman) -> None: + """ Unit test for the ECPT, with EBBR 2.4 profile + This test uses the efidebug ecpt command to dump the ECPT and check that + the EBBR 2.4 conformance profile is there. + + Args: + ubman -- U-Boot console + """ + response = ubman.run_command('efidebug ecpt') + assert ('f2bb0422-da8e-11f0-a67b-1be220854098 ' + 'EFI EBBR 2.4 Conformance Profile') in response -- 2.53.0
