Files
Arkadiusz Gryska dcf1a7e72b VP6670 v0.9.3 rc4 testing (#1239)
* Suite Teardown - Close opened connection

Correct Suite Teardown phase allowing to close telnet connection
opened during Suite Setup phase.

Signed-off-by: Arkadiusz Gryska <arkadiusz.gryska@3mdeb.com>

* Protectli VP6670 configuration update

Update in test configuration according to the test scope.

Signed-off-by: Arkadiusz Gryska <arkadiusz.gryska@3mdeb.com>

* fixup! Protectli VP6670 configuration update.

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>

---------

Signed-off-by: Arkadiusz Gryska <arkadiusz.gryska@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Co-authored-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-02-13 09:22:00 +01:00

95 lines
3.3 KiB
Plaintext

*** Settings ***
Library Collections
Library OperatingSystem
Library Process
Library String
Library Telnet timeout=20 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 Keywords
... Prepare Test Suite
... AND
... Skip If not ${DEVICE_DETECT_TEST_IN_SCOPE}
... AND
... Skip If '${OPTIONS_LIB}' != 'options-lib_dcu'
... AND
... Skip If '${DUT_CONNECTION_METHOD}' == 'telnet'
... AND
... Set UEFI Option UsbDriverStack Enabled
Suite Teardown Run Keywords
... Run Keyword If '${SUITE_STATUS}' != 'SKIP' Set UEFI Option UsbDriverStack Enabled
... AND
... Log Out And Close Connection
Default Tags automated
*** Test Cases ***
DDET001.001 USB Stack disable
[Documentation] Test disabling the USB stack
Login To Linux With Root Privileges
Set UEFI Option UsbDriverStack Disabled
Execute Reboot Command
Sleep 10s
Set DUT Response Timeout 30s
Login To Linux With Root Privileges
${out}= Execute Command In Terminal
... cbmem -1 | grep "UsbBusStart:"
Should Not Contain ${out} usb bus started
... ignore_case=True
DDET002.001 USB Stack enable
[Documentation] Test enabling the USB stack
Login To Linux With Root Privileges
Set UEFI Option UsbDriverStack Enabled
Execute Reboot Command
Sleep 10s
Set DUT Response Timeout 30s
Login To Linux With Root Privileges
${out}= Execute Command In Terminal
... cbmem -1 | grep "UsbBusStart"
Should Contain ${out} usb bus started
... ignore_case=True
DDET003.001 Usb Devices Detected In Firmware Warmboot
[Documentation] Test if USB devices are detected after a warmboot
[Tags] automated semiauto
Skip If
... not ${RTC_BOOT_SUPPORT} and ${INCLUDE_TAGS} is not ${None} and 'semiauto' not in ${INCLUDE_TAGS}
Login To Linux With Root Privileges
Perform Warmboot Using Rtcwake
Login To Linux With Root Privileges
${out}= Execute Command In Terminal
... cbmem -1 | grep -i 'UsbEnumeratePort'
Should Contain ${out} new device connected
... ignore_case=True
DDET004.001 NET Controller Detected After Reboot
[Documentation] Test if a network controller is detected on an PCI lane
Login To Linux With Root Privileges
Execute Reboot Command
Login To Linux With Root Privileges
${out}= Execute Command In Terminal
... lspci | grep -i 'net'
Should Contain Any ${out} Network Controller Ethernet Controller
... ignore_case=True