Create baro_tests module 13/28713/9
authorjose.lausuch <jose.lausuch@ericsson.com>
Wed, 15 Feb 2017 13:24:30 +0000 (14:24 +0100)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Thu, 16 Feb 2017 11:00:23 +0000 (11:00 +0000)
This module will be installed in functest so that
we can do things like

    from baro_tests import collectd

    result = collectd.main()

This way, we can avoid running bash commands in python to
call other python scripts.

Change-Id: Id3801a30648668ac2f1885cd298b920586584a18
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
baro_tests/__init__.py [new file with mode: 0644]
baro_tests/collectd.py [new file with mode: 0644]
setup.py [new file with mode: 0644]

diff --git a/baro_tests/__init__.py b/baro_tests/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py
new file mode 100644 (file)
index 0000000..5631cf5
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+import sys
+
+
+def main(logger):
+    logger.info("Running Baromtercollectd test suite...")
+    #
+    # TODO: implementation
+    #
+    logger.info("Test suite successfully completed.")
+    return 0
+
+if __name__ == '__main__':
+    sys.exit(main())
diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..8d37048
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,18 @@
+##############################################################################
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+
+from setuptools import setup, find_packages
+
+
+setup(
+    name="baro_tests",
+    version="danube",
+    packages=find_packages(),
+    include_package_data=True,
+    package_data={},
+    url="https://www.opnfv.org")