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 |
| 11 | |
| 12 | *** Test Cases *** |
| 13 | Run Entire Test Suite Multiple Time |
| 14 | [Documentation] Multiple iterations of Full Suite |
| 15 | |
| 16 | Should Be True 0<${ITERATION} |
| 17 | Create Directory ${RESULT_PATH} |
| 18 | : FOR ${INDEX} IN RANGE 0 ${ITERATION} |
| 19 | \ Log To Console \n Iteration: no_newline=True |
| 20 | \ Log To Console ${INDEX} |
| 21 | \ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- tests |
| 22 | \ Copy File output.xml ${RESULT_PATH}/output${INDEX}.xml |
| 23 | \ Copy File log.html ${RESULT_PATH}/log${INDEX}.html |
| 24 | |
| 25 | Create Combined Report |
| 26 | [Documentation] Using output[?].xml and create combined log.html |
| 27 | |
| 28 | Run rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_PATH}/output*.xml |
| 29 | Move File log.html ${RESULT_PATH}/log${OPENBMC_SYSTEMMODEL}CombinedIterations${ITERATION}Report.html |
| 30 | |