-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dasharo-security/secure-boot.robot - UEFI Shell less SBO tests #725
base: develop
Are you sure you want to change the base?
Conversation
dasharo-security/secure-boot.robot
Outdated
# {advanced_menu}= Enter Advanced Secure Boot Keys Management And Return Construction ${sb_menu} | ||
|
||
# TBD: | ||
|
||
# Enter Enroll DB Signature Using File In DB Options ${advanced_menu} | ||
# Enter Volume In File Explorer GOOD_KEYS | ||
# Select File In File Explorer DB.cer | ||
# Save Changes And Reset | ||
# Changes to Secure Boot menu take action immediately, so we can just reset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if I should review further after seeing this commented code
296ced2
to
47d96e1
Compare
Test cases SBO003.001, SBO004.001, SBO005.001, SBO007.001, SBO008.001 working without UEFI Shell dependency (100% setup menu based execution). USB stick image labeled BAD_INFLUE is now required, containing new hello_dasharo.efi test program, to enable serial port message capture. Signed-off-by: Mateusz Maciejewski <[email protected]>
47d96e1
to
45b345b
Compare
Squashed & rebased to develop. |
@@ -263,3 +256,14 @@ Set Secure Boot State To Disabled | |||
Disable Secure Boot ${sb_menu} | |||
# Changes to Secure Boot menu take action immediately, so we can just reset | |||
Tianocore Reset System | |||
|
|||
Boot EFI Executable From The Drive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it not a part of lib/secure-boot-lib.robot?
@@ -182,10 +202,11 @@ Enter Volume In File Explorer | |||
[Documentation] Enter the given volume | |||
[Arguments] ${target_volume} | |||
# 1. Read out the whole File Explorer menu | |||
${volumes}= Get Submenu Construction opt_only=${TRUE} | |||
Sleep 1s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the sleep needed? Get Submenu Construction
should read everything util a checkpoint is found
... Mount USB Disk Image ${TEST_DATA_DIR}/secure-boot/sb_test_data.img | ||
... AND |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should not remove it. It used to mount an USB image via PiKVM with the same content as BAD_INFLUE to test Secure Boot. it should be possible to maintain the compatibility with PiKVM.
This reverts commit 64e2dd9.
SBO003.001 & SBO004.001 - WiP.
lib/secure-boot-lib.robot keywords for setup menu Secure Boot testing platform-configs/include/default.robot - output strings expected by SBO tests in menu-based execution