Enable long run test with provided number of iteration

Resolves openbmc/openbmc-test-automation#46

Change-Id: I1cf53779534d1a5fe8ec9efc6f769d483e5f415c
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/.gitignore b/.gitignore
index dd86f44..8d80b3a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,5 @@
 /report.html
 /.idea/
 /.tox/
-/tools/argument_file.txt
\ No newline at end of file
+/tools/argument_file.txt
+/logsdir/
diff --git a/extended/full_suite_regression.robot b/extended/full_suite_regression.robot
new file mode 100755
index 0000000..19c9fa4
--- /dev/null
+++ b/extended/full_suite_regression.robot
@@ -0,0 +1,30 @@
+*** Settings ***
+Documentation      This suite is for testing Open BMC full test suite.
+...                Maintains log.html output.xml  for each iteration and
+...                generate combined report
+
+Library           OperatingSystem
+
+*** Variables ***
+ ${ITERATION}  10
+ ${RESULT_PATH}        logsdir
+
+*** Test Cases ***
+Run Entire Test Suite Multiple Time
+   [Documentation]  Multiple iterations of Full Suite
+
+   Should Be True  0<${ITERATION}
+   Create Directory   ${RESULT_PATH}
+   : FOR    ${INDEX}    IN RANGE    0    ${ITERATION}
+    \    Log To Console     \n Iteration:   no_newline=True
+    \    Log To Console    ${INDEX}
+    \    Run  OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- tests
+    \    Copy File    output.xml   ${RESULT_PATH}/output${INDEX}.xml
+    \    Copy File    log.html   ${RESULT_PATH}/log${INDEX}.html
+
+Create Combined Report
+   [Documentation]   Using output[?].xml and create combined log.html
+
+   Run  rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_PATH}/output*.xml
+   Move File   log.html     ${RESULT_PATH}/log${OPENBMC_SYSTEMMODEL}CombinedIterations${ITERATION}Report.html
+
diff --git a/tools/generate_argumentfile.sh b/tools/generate_argumentfile.sh
index b888a80..e51d973 100755
--- a/tools/generate_argumentfile.sh
+++ b/tools/generate_argumentfile.sh
@@ -4,6 +4,7 @@
 echo "--variable OPENBMC_MODEL:$OPENBMC_MODEL" >> $ARG_FILE
 echo "--variable OPENBMC_USERNAME:$OPENBMC_USERNAME" >> $ARG_FILE
 echo "--variable OPENBMC_PASSWORD:$OPENBMC_PASSWORD" >> $ARG_FILE
+echo "--variable OPENBMC_SYSTEMMODEL:$OPENBMC_SYSTEMMODEL" >> $ARG_FILE
 echo "--variable PDU_TYPE:$PDU_TYPE" >> $ARG_FILE
 echo "--variable PDU_IP:$PDU_IP" >> $ARG_FILE
 echo "--variable PDU_USERNAME:$PDU_USERNAME" >> $ARG_FILE