You've already forked open-source-firmware-validation
mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-06-13 10:16:18 -07:00
386e437288
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
52 lines
1.9 KiB
Plaintext
52 lines
1.9 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 ${BOOT_BLOCKING_SUPPORT} Boot blocking not supported
|
|
... AND Skip If '${POWER_CTRL}' != 'sonoff'
|
|
Suite Teardown Run Keyword
|
|
... Log Out And Close Connection
|
|
|
|
Default Tags automated
|
|
|
|
|
|
*** Test Cases ***
|
|
BBB001.001 Boot blocking (charger disconnected) (Ubuntu)
|
|
[Documentation] Discharge the battery to below 5% and check if booting is
|
|
... blocked.
|
|
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} BBB001.001 not supported
|
|
Power On
|
|
Login To Linux
|
|
Switch To Root User
|
|
Sonoff Off
|
|
Discharge The Battery Until Target Level In Linux 3
|
|
Execute Command In Terminal reboot
|
|
|
|
BBB001.002 Boot blocking (charger connected) (Ubuntu)
|
|
[Documentation] Discharge the battery to below 5% and check if booting is
|
|
... blocked.
|
|
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} BBB001.001 not supported
|
|
Power On
|
|
Login To Linux
|
|
Switch To Root User
|
|
Sonoff Off
|
|
Discharge The Battery Until Target Level In Linux 3
|
|
Sonoff On
|
|
Execute Command In Terminal reboot
|