aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/runner/testplan.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-12-06 16:30:11 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2016-12-06 16:46:18 +0800
commit89e3f17d136f80c5406cdaff67d33b4c8159aac4 (patch)
treefafd3500be2b055c09d25e0f04bdd46202d3010e /qtip/runner/testplan.py
parentab5e5f5d602c4e5c84f99c2b5ba3b97d3379f5cf (diff)
Implement TestPlan prototype
Refactor common part of Suite to Benchmark since both TestPlan and Suite are organized by files Change-Id: I61a97d9489096c4a6305c99e8cf7abb958faa562 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/runner/testplan.py')
-rw-r--r--qtip/runner/testplan.py21
1 files changed, 6 insertions, 15 deletions
diff --git a/qtip/runner/testplan.py b/qtip/runner/testplan.py
index d20221df..57f3c978 100644
--- a/qtip/runner/testplan.py
+++ b/qtip/runner/testplan.py
@@ -7,22 +7,13 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+from os import path
-class TestPlan:
- """A test plan is consist of test configuration and selected test suites"""
+from benchmark import Benchmark
- def __init__(self):
- pass
- @staticmethod
- def list_all():
- """list all available test plans"""
- pass
+class TestPlan(Benchmark):
+ """A suite is consist of one or several perf tests and produces one QPI"""
- def desc(self):
- """description of the test plan"""
- pass
-
- def run(self):
- """run included suites"""
- pass
+ # paths to search for suites
+ _paths = [path.join(p, 'testplan') for p in Benchmark._paths]