Skip to content

Commit 77e2b9a

Browse files
committed
unify Enter Setup Menu kwd for uefi and seabios
Signed-off-by: Piotr Król <[email protected]>
1 parent 237bb18 commit 77e2b9a

14 files changed

+66
-74
lines changed

dasharo-compatibility/cpu-cores-count.robot

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ CCC002.001 Check core count with HT enabled
5555
CCC003.001 Check core count (HT Enabled, P: All, E: 0) (Ubuntu)
5656
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
5757
Power On
58-
Enter Setup Menu Tianocore
58+
Enter Setup Menu
5959
Reset To Defaults Tianocore
6060
Save Changes And Reset
6161
Set UEFI Option ActiveECores 0
@@ -72,7 +72,7 @@ CCC003.001 Check core count (HT Enabled, P: All, E: 0) (Ubuntu)
7272
CCC004.001 Check core count (HT Enabled, P: All, E: All) (Ubuntu)
7373
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
7474
Power On
75-
Enter Setup Menu Tianocore
75+
Enter Setup Menu
7676
Reset To Defaults Tianocore
7777
Save Changes And Reset
7878
Set UEFI Option ActiveECores All active
@@ -89,7 +89,7 @@ CCC004.001 Check core count (HT Enabled, P: All, E: All) (Ubuntu)
8989
CCC005.001 Check core count (HT Disabled, P: All, E: 0) (Ubuntu)
9090
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
9191
Power On
92-
Enter Setup Menu Tianocore
92+
Enter Setup Menu
9393
Reset To Defaults Tianocore
9494
Save Changes And Reset
9595
Set UEFI Option HyperThreading ${FALSE}
@@ -106,7 +106,7 @@ CCC005.001 Check core count (HT Disabled, P: All, E: 0) (Ubuntu)
106106
CCC006.001 Check core count (HT Disabled, P: All, E: 0) (Ubuntu)
107107
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
108108
Power On
109-
Enter Setup Menu Tianocore
109+
Enter Setup Menu
110110
Reset To Defaults Tianocore
111111
Save Changes And Reset
112112
Set UEFI Option ActiveECores 0
@@ -123,7 +123,7 @@ CCC006.001 Check core count (HT Disabled, P: All, E: 0) (Ubuntu)
123123
CCC007.001 Check core count (HT Enabled, P: 1, E: A) (Ubuntu)
124124
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
125125
Power On
126-
Enter Setup Menu Tianocore
126+
Enter Setup Menu
127127
Reset To Defaults Tianocore
128128
Save Changes And Reset
129129
Set UEFI Option ActivePCores 1
@@ -140,7 +140,7 @@ CCC007.001 Check core count (HT Enabled, P: 1, E: A) (Ubuntu)
140140
CCC008.001 Check core count (HT Disabled, P: 1, E: A) (Ubuntu)
141141
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
142142
Power On
143-
Enter Setup Menu Tianocore
143+
Enter Setup Menu
144144
Reset To Defaults Tianocore
145145
Save Changes And Reset
146146
Set UEFI Option HyperThreading ${FALSE}
@@ -157,7 +157,7 @@ CCC008.001 Check core count (HT Disabled, P: 1, E: A) (Ubuntu)
157157
CCC009.001 Check core count (HT Enabled, P: 1, E: 1) (Ubuntu)
158158
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
159159
Power On
160-
Enter Setup Menu Tianocore
160+
Enter Setup Menu
161161
Reset To Defaults Tianocore
162162
Save Changes And Reset
163163
Set UEFI Option HyperThreading ${TRUE}
@@ -176,7 +176,7 @@ CCC009.001 Check core count (HT Enabled, P: 1, E: 1) (Ubuntu)
176176
CCC010.001 Check core count (HT Disabled, P: 1, E: 1) (Ubuntu)
177177
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
178178
Power On
179-
Enter Setup Menu Tianocore
179+
Enter Setup Menu
180180
Reset To Defaults Tianocore
181181
Save Changes And Reset
182182
Set UEFI Option HyperThreading ${FALSE}
@@ -194,7 +194,7 @@ CCC010.001 Check core count (HT Disabled, P: 1, E: 1) (Ubuntu)
194194
CCC011.001 Check core count (HT Enabled, P: A, E: 1) (Ubuntu)
195195
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
196196
Power On
197-
Enter Setup Menu Tianocore
197+
Enter Setup Menu
198198
Reset To Defaults Tianocore
199199
Save Changes And Reset
200200
Set UEFI Option HyperThreading ${TRUE}
@@ -212,7 +212,7 @@ CCC011.001 Check core count (HT Enabled, P: A, E: 1) (Ubuntu)
212212
CCC012.001 Check core count (HT Disabled, P: A, E: 1) (Ubuntu)
213213
Depends On ${INTEL_HYBRID_ARCH_SUPPORT}
214214
Power On
215-
Enter Setup Menu Tianocore
215+
Enter Setup Menu
216216
Reset To Defaults Tianocore
217217
Save Changes And Reset
218218
Set UEFI Option HyperThreading ${FALSE}

dasharo-compatibility/custom-boot-menu-key.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ CBK002.001 Custom setup menu key
3939
Skip If not ${CUSTOM_SETUP_MENU_KEY_SUPPORT} CBK002.001 not supported
4040
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT} CBK002.001 not supported
4141
Power On
42-
Enter Setup Menu Tianocore
42+
Enter Setup Menu
4343
Read From Terminal Until ${SETUP_MENU_STRING}

dasharo-compatibility/dasharo-tools-suite.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DTS003.001 DTS option reboot DUT works correctly
6161
Write Into Terminal R
6262
# Switch back to serial on PiKVM devices
6363
Restore Initial DUT Connection Method
64-
Enter Setup Menu Tianocore
64+
Enter Setup Menu
6565

6666
DTS004.001 DTS accessing shell works correctly
6767
[Documentation] This test aims to verify that shell can be accessed in
@@ -128,5 +128,5 @@ DTS008.001 DTS option power-off DUT works correctly
128128
Boot Dasharo Tools Suite iPXE
129129
Write Into Terminal P
130130
Set DUT Response Timeout 30s
131-
${status}= Run Keyword And Return Status Enter Setup Menu Tianocore
131+
${status}= Run Keyword And Return Status Enter Setup Menu
132132
Should Not Be True ${status}

dasharo-compatibility/memory-profile.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ MPS001.001 Switching to XMP profile
4040
Telnet.Set Timeout 5 min
4141
# Boot and remember current memory speed
4242
Power On
43-
Enter Setup Menu Tianocore
43+
Enter Setup Menu
4444
${out}= Read From Terminal Until <Enter>=Select Entry
4545
${old_speed}= Get Lines Matching Regexp ${out} .*RAM @ \\d+ MHz.*
4646
Should Not Be Empty ${old_speed}
@@ -54,7 +54,7 @@ MPS001.001 Switching to XMP profile
5454
Set Option State ${memory_menu} Memory SPD Profile XMP#1 (predefined
5555
Save Changes And Reset
5656
# Verify that frequency has changed
57-
Enter Setup Menu Tianocore
57+
Enter Setup Menu
5858
${out}= Read From Terminal Until <Enter>=Select Entry
5959
${new_speed}= Get Lines Matching Regexp ${out} .*RAM @ \\d+ MHz.*
6060
Should Not Be Empty ${new_speed}
@@ -66,7 +66,7 @@ MPS002.001 Switching back to JEDEC profile
6666
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT} MPS002.001 not supported
6767
# Boot and remember current memory speed
6868
Power On
69-
Enter Setup Menu Tianocore
69+
Enter Setup Menu
7070
${out}= Read From Terminal Until <Enter>=Select Entry
7171
${old_speed}= Get Lines Matching Regexp ${out} .*RAM @ \\d+ MHz.*
7272
Should Not Be Empty ${old_speed}
@@ -80,7 +80,7 @@ MPS002.001 Switching back to JEDEC profile
8080
Set Option State ${memory_menu} Memory SPD Profile JEDEC (safe
8181
Save Changes And Reset
8282
# Verify that frequency has changed
83-
Enter Setup Menu Tianocore
83+
Enter Setup Menu
8484
${out}= Read From Terminal Until <Enter>=Select Entry
8585
${new_speed}= Get Lines Matching Regexp ${out} .*RAM @ \\d+ MHz.*
8686
Should Not Be Empty ${new_speed}

dasharo-compatibility/power-after-fail.robot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PSF002.001 Powered Off State Restoration Test
4848
${pwr_menu}= Enter Dasharo Submenu ${dasharo_menu} Power Management Options
4949
Set Option State ${pwr_menu} Power state after Powered Off
5050
Save Changes And Reset
51-
Enter Setup Menu Tianocore
51+
Enter Setup Menu
5252
Simulate Power Failure
5353
${output}= Run Keyword And Return Status
5454
... Enter Setup Menu Tianocore And Return Construction
@@ -64,9 +64,9 @@ PSF003.001 Powered On State Restoration Test
6464
${pwr_menu}= Enter Dasharo Submenu ${dasharo_menu} Power Management Options
6565
Set Option State ${pwr_menu} Power state after Powered On
6666
Save Changes And Reset
67-
Enter Setup Menu Tianocore
67+
Enter Setup Menu
6868
Simulate Power Failure
69-
Enter Setup Menu Tianocore
69+
Enter Setup Menu
7070

7171
PSF004.001 Previous Power State Restoration Test - Powered Off
7272
[Documentation] This test ensures that the feature is able to correctly
@@ -79,12 +79,12 @@ PSF004.001 Previous Power State Restoration Test - Powered Off
7979
${pwr_menu}= Enter Dasharo Submenu ${dasharo_menu} Power Management Options
8080
Set Option State ${pwr_menu} Power state after The state at the moment of power failure
8181
Save Changes And Reset
82-
Enter Setup Menu Tianocore
82+
Enter Setup Menu
8383
# Power button press to power off the machine
8484
Rte Power On
8585
Simulate Power Failure
8686
${output}= Run Keyword And Return Status
87-
... Enter Setup Menu Tianocore
87+
... Enter Setup Menu
8888
Should Not Be True ${output}
8989

9090
PSF004.002 Previous Power State Restoration Test - Powered On
@@ -98,6 +98,6 @@ PSF004.002 Previous Power State Restoration Test - Powered On
9898
${pwr_menu}= Enter Dasharo Submenu ${dasharo_menu} Power Management Options
9999
Set Option State ${pwr_menu} Power state after The state at the moment of power failure
100100
Save Changes And Reset
101-
Enter Setup Menu Tianocore
101+
Enter Setup Menu
102102
Simulate Power Failure
103-
Enter Setup Menu Tianocore
103+
Enter Setup Menu

dasharo-compatibility/setup-menu-information.robot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SET001.001 CPU clock speed displayed in setup menu
3232
... correctly indicated in setup menu.
3333
3434
Power On
35-
Enter Setup Menu Tianocore
35+
Enter Setup Menu
3636
${out}= Read From Terminal Until <Enter>=Select Entry
3737
${cpu_line}= Get Lines Matching Regexp ${out} .*GHz
3838
Should Not Be Empty ${cpu_line} CPU clock speed not found
@@ -45,7 +45,7 @@ SET002.001 RAM speed displayed in setup menu
4545
... indicated in setup menu.
4646
4747
Power On
48-
Enter Setup Menu Tianocore
48+
Enter Setup Menu
4949
${out}= Read From Terminal Until <Enter>=Select Entry
5050
${ram_line}= Get Lines Matching Regexp ${out} .*RAM @ \\d+ MHz.*
5151
Should Not Be Empty ${ram_line} RAM speed not found
@@ -58,7 +58,7 @@ SET003.001 RAM size displayed in setup menu
5858
... indicated in setup menu.
5959
6060
Power On
61-
Enter Setup Menu Tianocore
61+
Enter Setup Menu
6262
${out}= Read From Terminal Until <Enter>=Select Entry
6363
${ram_line}= Get Lines Matching Regexp ${out} .*MB RAM.*
6464
Should Not Be Empty ${ram_line} RAM size not found
@@ -72,7 +72,7 @@ SET004.001 Expected CPU clock speed displayed in setup menu
7272
Depends On Variable \${PLATFORM_CPU_SPEED}
7373

7474
Power On
75-
Enter Setup Menu Tianocore
75+
Enter Setup Menu
7676
${out}= Read From Terminal Until <Enter>=Select Entry
7777
${cpu_line}= Get Lines Matching Regexp ${out} .*GHz
7878
Should Not Be Empty ${cpu_line} CPU clock speed not found
@@ -86,7 +86,7 @@ SET005.001 Expected RAM speed displayed in setup menu
8686
Depends On Variable \${PLATFORM_RAM_SPEED}
8787

8888
Power On
89-
Enter Setup Menu Tianocore
89+
Enter Setup Menu
9090
${out}= Read From Terminal Until <Enter>=Select Entry
9191
${ram_line}= Get Lines Matching Regexp ${out} .*RAM @ \\d+ MHz.*
9292
Should Not Be Empty ${ram_line} RAM speed not found
@@ -100,7 +100,7 @@ SET006.001 Expected RAM size displayed in setup menu
100100
Depends On Variable \${PLATFORM_RAM_SIZE}
101101

102102
Power On
103-
Enter Setup Menu Tianocore
103+
Enter Setup Menu
104104
${out}= Read From Terminal Until <Enter>=Select Entry
105105
${ram_line}= Get Lines Matching Regexp ${out} .*MB RAM.*
106106
Should Not Be Empty ${ram_line} RAM size not found

dasharo-security/uefi-password.robot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ PSW002.001 Password setting mechanism correctness checking
5959
Power On
6060
Set Password 5 Times
6161
Power On
62-
Enter Setup Menu Tianocore
62+
Enter Setup Menu
6363
${output}= Read From Terminal Until password
6464
Should Contain ${output} Please input admin password
6565

@@ -69,7 +69,7 @@ PSW003.001 Attempt to log in with a correct password
6969
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT} PSW003.001 not supported
7070
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} PSW003.001 not supported
7171
Power On
72-
Enter Setup Menu Tianocore
72+
Enter Setup Menu
7373
Read From Terminal Until password
7474
Type In The Password ${DEFAULT_PASSWORD}
7575
# "ontinue" is a string that appears both in correct password screen
@@ -84,7 +84,7 @@ PSW004.001 Attempt to log in with an incorrect password
8484
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT} PSW004.001 not supported
8585
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} PSW004.001 not supported
8686
Power On
87-
Enter Setup Menu Tianocore
87+
Enter Setup Menu
8888
Read From Terminal Until password
8989
Type In The Password ${WRONG_PASSWORD}
9090
# "ontinue" is a string that appears both in correct password screen
@@ -99,7 +99,7 @@ PSW005.001 Attempt to log in with an incorrect password 3 times
9999
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT} PSW005.001 not supported
100100
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} PSW005.001 not supported
101101
Power On
102-
Enter Setup Menu Tianocore
102+
Enter Setup Menu
103103
Read From Terminal Until password
104104
FOR ${counter} IN RANGE 0 2
105105
Type In The Password ${WRONG_PASSWORD}
@@ -118,7 +118,7 @@ PSW006.001 Attempt to turn off setup password functionality
118118
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT} PSW006.001 not supported
119119
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} PSW006.001 not supported
120120
Power On
121-
Enter Setup Menu Tianocore
121+
Enter Setup Menu
122122
Read From Terminal Until password
123123
Type In The Password ${DEFAULT_PASSWORD}
124124
${setup_menu}= Get Setup Menu Construction
@@ -137,7 +137,7 @@ PSW006.001 Attempt to turn off setup password functionality
137137
Should Contain ${result} New password is updated successfully
138138
Press Key N Times 1 ${ENTER}
139139
Power On
140-
Enter Setup Menu Tianocore
140+
Enter Setup Menu
141141
Sleep 1s
142142
${output}= Read From Terminal
143143
Should Not Contain ${output} Please input admin password

lib/bios/common.robot

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ Enter Boot Menu And Return Construction
2727
${menu}= Get Boot Menu Construction
2828
RETURN ${menu}
2929

30+
Enter Setup Menu
31+
[Documentation] Enter Setup Menu with key specified in platform-configs.
32+
Read From Terminal Until ${FW_STRING}
33+
IF '${DUT_CONNECTION_METHOD}' == 'pikvm'
34+
Single Key PiKVM ${SETUP_MENU_KEY}
35+
ELSE
36+
Write Bare Into Terminal ${SETUP_MENU_KEY}
37+
IF '${BIOS_LIB}' == 'seabios'
38+
${menu}= Get Boot Menu Construction
39+
Enter Menu From Snapshot ${menu} \[setup\]
40+
END
41+
END
42+
3043
Parse Menu Snapshot Into Construction
3144
[Documentation] Breaks grabbed menu data into lines.
3245
[Arguments] ${menu} ${lines_top} ${lines_bot}

lib/bios/edk2.robot

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,6 @@ Get Boot Menu Construction
5252
END
5353
RETURN ${construction}
5454

55-
Enter Setup Menu Tianocore
56-
[Documentation] Enter Setup Menu with key specified in platform-configs.
57-
Read From Terminal Until ${FW_STRING}
58-
IF '${DUT_CONNECTION_METHOD}' == 'pikvm'
59-
Single Key PiKVM ${SETUP_MENU_KEY}
60-
ELSE
61-
Write Bare Into Terminal ${SETUP_MENU_KEY}
62-
END
63-
6455
Get Setup Menu Construction
6556
[Documentation] Keyword allows to get and return setup menu construction.
6657
[Arguments] ${checkpoint}=Select Entry
@@ -84,7 +75,7 @@ Get Menu Construction
8475

8576
Enter Setup Menu Tianocore And Return Construction
8677
[Documentation] Enters Setup Menu and returns Setup Menu construction
87-
Enter Setup Menu Tianocore
78+
Enter Setup Menu
8879
${menu}= Get Setup Menu Construction
8980
RETURN ${menu}
9081

@@ -580,7 +571,7 @@ Make Sure That Network Boot Is Enabled
580571
Get Firmware Version From Tianocore Setup Menu
581572
[Documentation] Keyword allows to read firmware version from Tianocore
582573
... Setup menu header.
583-
Enter Setup Menu Tianocore
574+
Enter Setup Menu
584575
${output}= Read From Terminal Until Select Entry
585576
${firmware_line}= Get Lines Containing String ${output} Dasharo (coreboot+UEFI)
586577
${firmware_version}= Get Regexp Matches ${firmware_line} v\\d{1,}\.\\d{1,}\.\\d{1,}

lib/bios/seabios.robot

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ Get Boot Menu Construction
2626
${construction}= Parse Menu Snapshot Into Construction ${menu} 1 0
2727
RETURN ${construction}
2828

29-
Enter Sortbootorder
30-
[Documentation] Enter sortbootorder with Boot Menu Construction.
31-
Enter Boot Menu
32-
${menu}= Get Boot Menu Construction
33-
Enter Menu From Snapshot ${menu} \[setup\]
34-
3529
Get Sortbootorder Menu Construction
3630
[Documentation] Keyword allows to get and return sortbootorder menu construction.
3731
[Arguments] ${checkpoint}=Save configuration and exit
@@ -40,12 +34,6 @@ Get Sortbootorder Menu Construction
4034
${menu}= Parse Menu Snapshot Into Construction ${out} 7 0
4135
RETURN ${menu}
4236

43-
Enter Setup Menu SeaBIOS And Return Construction
44-
[Documentation] Enters Setup Menu and returns Setup Menu construction
45-
Enter Setup Menu SeaBIOS
46-
${menu}= Get Setup Menu Construction
47-
RETURN ${menu}
48-
4937
Get Option State
5038
[Documentation] Gets menu construction and option name as arguments.
5139
... Returns option state, which can be: True or False.
@@ -185,7 +173,7 @@ Save Sortbootorder Changes
185173

186174
Enable Network/PXE Boot
187175
[Documentation] Enable Network/PXE Boot and save.
188-
Enter Sortbootorder
176+
Enter Setup Menu
189177
${menu}= Get Sortbootorder Menu Construction
190178
${menu}= Set Option State And Return Construction ${menu} Network/PXE boot Enabled
191179
List Should Contain Value ${menu} n Network/PXE boot - Currently Enabled

0 commit comments

Comments
 (0)