Skip to content
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

Add manual Basic Platform Setup tests for platforms with AMI firmware #436

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dasharo-compatibility/ec-and-super-IO.robot
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*** Settings ***
Library Collections
Library Dialogs
Library OperatingSystem
Library Process
Library String
Expand Down
1 change: 1 addition & 0 deletions dasharo-compatibility/usb-type-c-semiauto.robot
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*** Settings ***
Library Collections
Library Dialogs
Library OperatingSystem
Library Process
Library String
Expand Down
40 changes: 33 additions & 7 deletions util/basic-platform-setup.robot
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
*** Settings ***
Library Collections
Library Dialogs
Library OperatingSystem
Library Process
Library String
Library Telnet timeout=30 seconds connection_timeout=120 seconds
Library SSHLibrary timeout=90 seconds
Library RequestsLibrary
# Library ../osfv-scripts/osfv_cli/src/osfv/rf/rte_robot.py
# TODO: maybe have a single file to include if we need to include the same
# stuff in all test cases
Resource ../sonoff-rest-api/sonoff-api.robot
Resource ../rtectrl-rest-api/rtectrl.robot
Resource ../variables.robot
Resource ../keywords.robot
Resource ../keys.robot
Expand All @@ -26,6 +24,11 @@ Suite Teardown Run Keyword
... Log Out And Close Connection


*** Variables ***
# Assume Dasharo as a default firmware, can be overwritten by CMD parameter.
${FIRMWARE}= dasharo


*** Test Cases ***
BPS001.001 Power Control - Power On and Serial output
[Documentation] Verifies if the DUT can be turned On and if the serial output can be read.
Expand Down Expand Up @@ -126,18 +129,41 @@ BPS003.002 Sonoff Power Off
${result}= Wait For Serial Output timeout=10
Should Not Be True ${result} msg=Failed power off DUT via Sonoff

BPS004.001 Boot to OS - Ubuntu
[Documentation] This test verifies if platform can be booted to Ubunto and if correct credentials are set.
BPS004.001 Boot to OS - Dasharo, Ubuntu
[Documentation] This test verifies if platform with Dasharo firmware can
... be booted to Ubunto and if correct credentials are set.
Skip If '${FIRMWARE}' != 'dasharo'
Power On
Boot System Or From Connected Disk ubuntu
Login To Linux
Switch To Root User

BPS004.002 Boot to OS - Windows
[Documentation] This test verifies if platform can be booted to Windows, if SSH server is enabled and if correct credentials are set.
BPS004.002 Boot to OS - Dasharo, Windows
[Documentation] This test verifies if platform with Dasharo firmware can
... be booted to Windows, if SSH server is enabled and if correct
... credentials are set.
Skip If '${FIRMWARE}' != 'dasharo' and '${FIRMWARE}' != ''
Power On
Login To Windows

BPS004.003 Boot to OS - AMI, Ubuntu
[Documentation] This test verifies if platform with AMI firmware can
... be booted to Ubuntu and if correct credentials are set.
Skip If '${FIRMWARE}' != 'ami'
Power On
Execute Manual Step Boot to Ubuntu
Login To Linux
Switch To Root User

BPS004.004 Boot to OS - AMI, Windows
[Documentation] This test verifies if platform with AMI firmware can be
... booted to Windows, if SSH server is enabled and if correct
... credentials are set.
Skip If '${FIRMWARE}' != 'ami'
Power On
Execute Manual Step Boot to Windows
Login To Windows Via SSH

BPS005.001 External flashing
[Documentation] This test verifies if the flash die can be detected.
${rc}= Rte Flash Probe
Expand Down
Loading