You've already forked open-source-firmware-validation
mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-03-06 14:51:55 -08:00
f976d349ce
Toe be used with: https://github.com/3mdeb/pikvm-rest-api/pull/19 Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
*** Settings ***
|
|
Documentation This suite verifies the correct operation of keywords
|
|
... getting and setting state of numerical options.
|
|
|
|
Library Collections
|
|
Library OperatingSystem
|
|
Library Process
|
|
Library String
|
|
Library Telnet timeout=30 seconds connection_timeout=120 seconds
|
|
Library SSHLibrary timeout=90 seconds
|
|
Library RequestsLibrary
|
|
# TODO: maybe have a single file to include if we need to include the same
|
|
# stuff in all test cases
|
|
Resource ../variables.robot
|
|
Resource ../keywords.robot
|
|
Resource ../keys.robot
|
|
|
|
# TODO:
|
|
# - document which setup/teardown keywords to use and what are they doing
|
|
# - go threough them and make sure they are doing what the name suggest (not
|
|
# exactly the case right now)
|
|
Suite Setup Run Keyword
|
|
... Prepare Test Suite
|
|
Suite Teardown Run Keyword
|
|
... Log Out And Close Connection
|
|
|
|
|
|
*** Test Cases ***
|
|
Set numerical option
|
|
[Documentation] Checks whether the numerical option can be set.
|
|
Skip If not ${DASHARO_CHIPSET_MENU_SUPPORT}
|
|
Power On
|
|
${setup_menu}= Enter Setup Menu Tianocore And Return Construction
|
|
${boot_manager}= Enter Submenu From Snapshot And Return Construction
|
|
... ${setup_menu}
|
|
... Boot Maintenance Manager
|
|
Set Option State ${boot_manager} Auto Boot Time-out 5
|
|
Save Changes And Reset
|
|
|
|
${setup_menu}= Enter Setup Menu Tianocore And Return Construction
|
|
${boot_manager}= Enter Submenu From Snapshot And Return Construction
|
|
... ${setup_menu}
|
|
... Boot Maintenance Manager
|
|
Set Option State ${boot_manager} Auto Boot Time-out 5
|
|
${state}= Get Option State ${boot_manager} Auto Boot Time-out
|
|
Log ${state}
|
|
Should Be Equal As Integers ${state} 5
|