summaryrefslogtreecommitdiffstats
path: root/atf.py
diff options
context:
space:
mode:
authorShwetha-H-Panduranga <shwetha@gluster.com>2011-12-06 14:26:59 +0530
committerShwetha-H-Panduranga <shwetha@gluster.com>2011-12-06 14:26:59 +0530
commit77c7f324610224e808d8940aec7e6dbf19b790a5 (patch)
tree4d5b3abe8e8220b058f9828822b527b2d6331702 /atf.py
parent129e39fe6878f28ca203c690fab382b7289b334c (diff)
Adding New/Updated Automation Files
Diffstat (limited to 'atf.py')
-rwxr-xr-xatf.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/atf.py b/atf.py
new file mode 100755
index 0000000..63b0f9d
--- /dev/null
+++ b/atf.py
@@ -0,0 +1,51 @@
+"""atf module is the entry point of the regression suite.
+
+CommandLine Usage: python atf.py -f testruninfo.cfg
+"""
+import argparse
+import atfinit
+import atfexecute
+
+def main(args):
+ """
+ Description:
+ *) Initialize TestRun
+ *) Execute TestUnits
+
+ Parameters:
+ args: Command Line Arguments passed to 'atf'
+
+ Returns:
+ Success: 0
+ Failure: 1
+ """
+ if atfinit.initialize(args):
+ exit(1)
+
+ if atfexecute.execute():
+ exit(1)
+
+ else:
+ exit(0)
+
+if __name__ == "__main__":
+
+ argparser = argparse.ArgumentParser(
+ description="Runs GlusterFS Functional/Regression Test Suite",
+ epilog="Report Bugs to dl-qa@gluster.com")
+
+ argparser.add_argument('-f', '--file', required=True, type=str,
+ help="TestRunInfo FileName")
+
+ args = argparser.parse_args()
+
+ main(args)
+
+
+
+
+
+
+
+
+