blob: acbc2d82fb632801d249df9a51c487f1143e4724 [file] [log] [blame]
Sivas SRR35b0f002016-07-20 07:49:41 -05001*** Settings ***
2Documentation This suite is for testing Open BMC full test suite.
3... Maintains log.html output.xml for each iteration and
4... generate combined report
5
Sivas SRR8254db62017-02-07 09:39:46 -06006Resource ../lib/utils.robot
7Resource ../lib/connection_client.robot
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -06008Library OperatingSystem
9Library DateTime
Sivas SRR35b0f002016-07-20 07:49:41 -050010
Sivas SRR8254db62017-02-07 09:39:46 -060011Suite Setup Open Connection And Log In
12Suite Teardown Close All Connections
13
Sivas SRR35b0f002016-07-20 07:49:41 -050014*** Variables ***
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060015${ITERATION} 10
16${RESULT_DIR_NAME} logsdir
17${LOOP_TEST_COMMAND} tests
Sivas SRR35b0f002016-07-20 07:49:41 -050018
19*** Test Cases ***
Sivas SRR8254db62017-02-07 09:39:46 -060020Validate BMC Model
21 [Documentation] Check that OPENBMC_MODEL is correct.
22 [Tags] Validate_BMC_Model
23 ${bmc_model}= Get BMC System Model
24 ${status}= Verify BMC System Model ${bmc_model}
25 Run Keyword If '${status}'=='False' Fatal Error Wrong System
26
Sivas SRR35b0f002016-07-20 07:49:41 -050027Run Entire Test Suite Multiple Time
28 [Documentation] Multiple iterations of Full Suite
29
30 Should Be True 0<${ITERATION}
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060031
32 ${timestamp}= Get Current Date result_format=%Y%m%d%H%M%S
33 ${tmp_result_dir_path}= Catenate ${RESULT_DIR_NAME}${timestamp}
34 Set Suite Variable ${RESULT_DIR_PATH} ${tmp_result_dir_path}
35 Log To Console ${RESULT_DIR_PATH}
36 Create Directory ${RESULT_DIR_PATH}
37
Sivas SRR35b0f002016-07-20 07:49:41 -050038 : FOR ${INDEX} IN RANGE 0 ${ITERATION}
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060039 \ Log To Console \n Iteration: no_newline=True
40 \ Log To Console ${INDEX}
Sivas SRR594a6c92016-10-31 01:40:32 -050041 \ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND}
42 \ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060043 \ Copy File output.xml ${RESULT_DIR_PATH}/output${INDEX}.xml
44 \ Copy File log.html ${RESULT_DIR_PATH}/log${INDEX}.html
Sivas SRR35b0f002016-07-20 07:49:41 -050045
46Create Combined Report
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060047 [Documentation] Using output[?].xml and create combined log.html
Sivas SRR35b0f002016-07-20 07:49:41 -050048
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060049 Run rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_DIR_PATH}/output*.xml
50 Move File log.html ${RESULT_DIR_PATH}/log${OPENBMC_SYSTEMMODEL}CombinedIterations${ITERATION}Report.html