-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFullSuiteRegression.robot
31 lines (25 loc) · 1.23 KB
/
FullSuiteRegression.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
*** Settings ***
Documentation This suite is for testing Open BMC full test suite.
... Maintains log.html output.xml for each iteration and
... generate combined report
Library OperatingSystem
*** Variables ***
${ITERATION} 10
${RESULT_PATH} logsdir
${LOOP_TEST_COMMAND} tests
*** Test Cases ***
Run Entire Test Suite Multiple Time
[Documentation] Multiple iterations of Full Suite
Should Be True 0<${ITERATION}
Create Directory ${RESULT_PATH}
: FOR ${INDEX} IN RANGE 0 ${ITERATION}
\ Log To Console \n Iteration: no_newline=True
\ Log To Console ${INDEX}
\ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND}
\ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml
\ Copy File output.xml ${RESULT_PATH}/output${INDEX}.xml
\ Copy File log.html ${RESULT_PATH}/log${INDEX}.html
Create Combined Report
[Documentation] Using output[?].xml and create combined log.html
Run rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_PATH}/output*.xml
Move File log.html ${RESULT_PATH}/log${OPENBMC_SYSTEMMODEL}CombinedIterations${ITERATION}Report.html