Move test caller from Functest to Barometer repo
[barometer.git] / baro_tests / barometer.py
diff --git a/baro_tests/barometer.py b/baro_tests/barometer.py
new file mode 100644 (file)
index 0000000..e210f33
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+
+import logging
+
+from baro_tests import collectd
+
+import functest.core.feature as base
+
+
+class BarometerCollectd(base.Feature):
+    '''
+    Class for executing barometercollectd testcase.
+    '''
+
+    __logger = logging.getLogger(__name__)
+
+    def execute(self):
+        return collectd.main(self.__logger)