Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation 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 SRR | 8254db6 | 2017-02-07 09:39:46 -0600 | [diff] [blame] | 6 | Resource ../lib/utils.robot |
| 7 | Resource ../lib/connection_client.robot |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 8 | Library OperatingSystem |
| 9 | Library DateTime |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 10 | |
Sivas SRR | 8254db6 | 2017-02-07 09:39:46 -0600 | [diff] [blame] | 11 | Suite Setup Open Connection And Log In |
| 12 | Suite Teardown Close All Connections |
| 13 | |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 14 | *** Variables *** |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 15 | ${ITERATION} 10 |
| 16 | ${RESULT_DIR_NAME} logsdir |
| 17 | ${LOOP_TEST_COMMAND} tests |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 18 | |
| 19 | *** Test Cases *** |
Sivas SRR | 8254db6 | 2017-02-07 09:39:46 -0600 | [diff] [blame] | 20 | Validate 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 SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 27 | Run Entire Test Suite Multiple Time |
| 28 | [Documentation] Multiple iterations of Full Suite |
| 29 | |
| 30 | Should Be True 0<${ITERATION} |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 31 | |
| 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 SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 38 | : FOR ${INDEX} IN RANGE 0 ${ITERATION} |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 39 | \ Log To Console \n Iteration: no_newline=True |
| 40 | \ Log To Console ${INDEX} |
Sivas SRR | 594a6c9 | 2016-10-31 01:40:32 -0500 | [diff] [blame] | 41 | \ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND} |
| 42 | \ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 43 | \ Copy File output.xml ${RESULT_DIR_PATH}/output${INDEX}.xml |
| 44 | \ Copy File log.html ${RESULT_DIR_PATH}/log${INDEX}.html |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 45 | |
| 46 | Create Combined Report |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 47 | [Documentation] Using output[?].xml and create combined log.html |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 48 | |
Sridevi Ramesh | 3be03bc | 2017-01-24 05:03:42 -0600 | [diff] [blame] | 49 | 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 |