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 | |
| 6 | Library OperatingSystem |
| 7 | |
| 8 | *** Variables *** |
| 9 | ${ITERATION} 10 |
| 10 | ${RESULT_PATH} logsdir |
Sivas SRR | 594a6c9 | 2016-10-31 01:40:32 -0500 | [diff] [blame] | 11 | ${LOOP_TEST_COMMAND} tests |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 12 | |
| 13 | *** Test Cases *** |
| 14 | Run Entire Test Suite Multiple Time |
| 15 | [Documentation] Multiple iterations of Full Suite |
| 16 | |
| 17 | Should Be True 0<${ITERATION} |
| 18 | Create Directory ${RESULT_PATH} |
| 19 | : FOR ${INDEX} IN RANGE 0 ${ITERATION} |
| 20 | \ Log To Console \n Iteration: no_newline=True |
| 21 | \ Log To Console ${INDEX} |
Sivas SRR | 594a6c9 | 2016-10-31 01:40:32 -0500 | [diff] [blame] | 22 | \ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND} |
| 23 | \ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml |
Sivas SRR | 35b0f00 | 2016-07-20 07:49:41 -0500 | [diff] [blame] | 24 | \ Copy File output.xml ${RESULT_PATH}/output${INDEX}.xml |
| 25 | \ Copy File log.html ${RESULT_PATH}/log${INDEX}.html |
| 26 | |
| 27 | Create Combined Report |
| 28 | [Documentation] Using output[?].xml and create combined log.html |
| 29 | |
| 30 | Run rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_PATH}/output*.xml |
| 31 | Move File log.html ${RESULT_PATH}/log${OPENBMC_SYSTEMMODEL}CombinedIterations${ITERATION}Report.html |
| 32 | |