Skip to content

Commit 19cc736

Browse files
committed
dasharo-stability/building-boot-os.robot: Example tests
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
1 parent 540916c commit 19cc736

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
*** Settings ***
2+
Library Collections
3+
Library Dialogs
4+
Library OperatingSystem
5+
Library Process
6+
Library String
7+
Library Telnet timeout=20 seconds connection_timeout=120 seconds
8+
Library SSHLibrary timeout=90 seconds
9+
Library RequestsLibrary
10+
# TODO: maybe have a single file to include if we need to include the same
11+
# stuff in all test cases
12+
Resource ../variables.robot
13+
Resource ../keywords.robot
14+
Resource ../keys.robot
15+
16+
# TODO:
17+
# - document which setup/teardown keywords to use and what are they doing
18+
# - go threough them and make sure they are doing what the name suggest (not
19+
# exactly the case right now)
20+
Suite Setup Run Keywords
21+
... Skip If not ${TESTS_IN_UBUNTU_SUPPORT}
22+
... Build And Flash
23+
Suite Teardown Run Keywords
24+
... Log Out And Close Connection
25+
26+
*** Test Cases ***
27+
BBO001.001 Build and Boot (Ubuntu)
28+
[Documentation] Check if the binary will be built and work properly
29+
... on Ubuntu
30+
Power On
31+
Boot System Or From Connected Disk ubuntu
32+
Flash Firmware coreboot/build/coreboot.rom
33+
Execute Reboot Command
34+
35+
Login To Linux
36+
37+
BBO001.002 Build and Boot (Windows)
38+
[Documentation] Check if the binary will be built and work properly
39+
... on Windows
40+
Skip If not ${TESTS_IN_WINDOWS_SUPPORT}
41+
42+
Power On
43+
Boot System Or From Connected Disk ubuntu
44+
Flash Firmware coreboot/build/coreboot.rom
45+
Execute Reboot Command
46+
47+
Login To Windows
48+
49+
50+
*** Keywords ***
51+
Build And Flash
52+
Run git clone https://github.com/Dasharo/dasharo-tools.git
53+
Run cd coreboot; ./build.sh ${COREBOOT_BUILD_WRAPPER_SUBCOMMAND}; cd ..;
54+
55+
56+

platform-configs/include/default.robot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,5 @@ ${STABILITY_DETECTION_COLDBOOT_ITERATIONS}= 2
259259
${STABILITY_DETECTION_WARMBOOT_ITERATIONS}= 2
260260
${STABILITY_DETECTION_REBOOT_ITERATIONS}= 5
261261
${STABILITY_DETECTION_SUSPEND_ITERATIONS}= 5
262+
# Command used in the ./build script of coreboot repo
263+
${COREBOOT_BUILD_WRAPPER_SUBCOMMAND}= ${TBD}

0 commit comments

Comments
 (0)