Created robot template program set.
Change-Id: Ie2851b77fa77337243dba39c99ae39fea6a0e81b
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/templates/pgm_template.py b/templates/pgm_template.py
new file mode 100755
index 0000000..627c15b
--- /dev/null
+++ b/templates/pgm_template.py
@@ -0,0 +1,65 @@
+#!/usr/bin/env python
+
+r"""
+This module is the python counterpart to pgm_template.py.
+"""
+
+import gen_print as gp
+import gen_robot_valid as grv
+
+
+###############################################################################
+def suite_setup():
+
+ r"""
+ Do test suite setup tasks.
+ """
+
+ gp.qprintn()
+
+ validate_suite_parms()
+
+ gp.qprint_pgm_header()
+
+###############################################################################
+
+
+###############################################################################
+def test_setup():
+
+ r"""
+ Do test case setup tasks.
+ """
+
+ gp.qprintn()
+ gp.qprint_executing()
+
+
+###############################################################################
+
+
+###############################################################################
+def validate_suite_parms():
+
+ r"""
+ Validate suite parameters.
+ """
+
+ # Programmer must add these.
+ grv.rvalid_value("OPENBMC_HOST")
+
+ return
+
+###############################################################################
+
+
+###############################################################################
+def suite_teardown():
+
+ r"""
+ Clean up after this program.
+ """
+
+ gp.qprint_pgm_footer()
+
+###############################################################################
diff --git a/templates/pgm_template.robot b/templates/pgm_template.robot
new file mode 100755
index 0000000..ec963da
--- /dev/null
+++ b/templates/pgm_template.robot
@@ -0,0 +1,31 @@
+*** Settings ***
+
+# Copy this template as a base to get a start on a robot program. You may
+# remove any generic comments (like this one).
+
+Documentation Base to get a start on a robot program.
+
+Library pgm_template.py
+
+Suite Setup Suite Setup
+Suite Teardown Suite Teardown
+Test Setup Test Setup
+
+*** Variables ***
+# Initialize program parameters variables.
+# Create parm_list containing all of our program parameters.
+@{parm_list} TEST_MODE QUIET DEBUG
+
+# Initialize each program parameter.
+${TEST_MODE} 0
+${QUIET} 0
+${DEBUG} 0
+
+
+*** Test Cases ***
+###############################################################################
+Test Case 1
+
+ Print Timen First test case.
+
+###############################################################################