blob: d410213b04387a5915036f53b4f192fcf9d73ab7 [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
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -06006Library OperatingSystem
7Library DateTime
Sivas SRR35b0f002016-07-20 07:49:41 -05008
9*** Variables ***
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060010${ITERATION} 10
11${RESULT_DIR_NAME} logsdir
12${LOOP_TEST_COMMAND} tests
Sivas SRR35b0f002016-07-20 07:49:41 -050013
14*** Test Cases ***
15Run Entire Test Suite Multiple Time
16 [Documentation] Multiple iterations of Full Suite
17
18 Should Be True 0<${ITERATION}
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060019
20 ${timestamp}= Get Current Date result_format=%Y%m%d%H%M%S
21 ${tmp_result_dir_path}= Catenate ${RESULT_DIR_NAME}${timestamp}
22 Set Suite Variable ${RESULT_DIR_PATH} ${tmp_result_dir_path}
23 Log To Console ${RESULT_DIR_PATH}
24 Create Directory ${RESULT_DIR_PATH}
25
Sivas SRR35b0f002016-07-20 07:49:41 -050026 : FOR ${INDEX} IN RANGE 0 ${ITERATION}
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060027 \ Log To Console \n Iteration: no_newline=True
28 \ Log To Console ${INDEX}
Sivas SRR594a6c92016-10-31 01:40:32 -050029 \ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND}
30 \ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060031 \ Copy File output.xml ${RESULT_DIR_PATH}/output${INDEX}.xml
32 \ Copy File log.html ${RESULT_DIR_PATH}/log${INDEX}.html
Sivas SRR35b0f002016-07-20 07:49:41 -050033
34Create Combined Report
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060035 [Documentation] Using output[?].xml and create combined log.html
Sivas SRR35b0f002016-07-20 07:49:41 -050036
Sridevi Ramesh3be03bc2017-01-24 05:03:42 -060037 Run rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_DIR_PATH}/output*.xml
38 Move File log.html ${RESULT_DIR_PATH}/log${OPENBMC_SYSTEMMODEL}CombinedIterations${ITERATION}Report.html