Files
Filip Gołaś 4b14cc7dad qemu-stress-tests.sh: Use robot run wrapper
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2025-07-03 12:27:59 +02:00

74 lines
2.6 KiB
Plaintext

*** Comments ***
# robocop: off=could-be-test-tags
*** Settings ***
Documentation This suite verifies the correct operation of keywords
... getting and setting state of boolean 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 ***
BOT001.001 Boot To Ubuntu Multiple Times
[Documentation] This test verifies if the DUT can boot to Ubuntu multiple times in a row.
[Tags] stress-test
Depends On ${TESTS_IN_UBUNTU_SUPPORT}
FOR ${i} IN RANGE 5
${index}= Evaluate ${i} + 1
Log To Console Iteration: ${index}
Power On
Boot System Or From Connected Disk ${ENV_ID_UBUNTU}
Login To Linux
Switch To Root User
END
BOT002.001 Boot To Windows Multiple Times
[Documentation] This test verifies if the DUT can boot to Windows multiple times in a row.
[Tags] stress-test
Depends On ${TESTS_IN_WINDOWS_SUPPORT}
FOR ${i} IN RANGE 5
${index}= Evaluate ${i} + 1
Log To Console Iteration: ${index}
Power On
Login To Windows
${out}= Execute Command In Terminal ls
END
BOT003.001 Boot To Ubuntu Then Boot To Windows
[Documentation] This test verifies if the DUT can boot to multiple OS one after another multiple times.
[Tags] stress-test
Depends On ${TESTS_IN_UBUNTU_SUPPORT}
Depends On ${TESTS_IN_WINDOWS_SUPPORT}
FOR ${i} IN RANGE 5
${index}= Evaluate ${i} + 1
Log To Console Iteration: ${index}
Power On
Boot System Or From Connected Disk ${ENV_ID_UBUNTU}
Login To Linux
Switch To Root User
Power On
Login To Windows
Execute Command In Terminal ls
END