Add module skeletons 85/26585/5
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 27 Dec 2016 08:57:28 +0000 (16:57 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 3 Jan 2017 09:34:11 +0000 (17:34 +0800)
commitdecad5f7fdb212c4f78fc31f00e591eaba104450
tree93ee0cd48f991c83bd9e13a4814cbced2377ca21
parent0dbc16c41646cbec79b65ec2ac60b8965cd22db9
Add module skeletons

- Remove `suite` and `case` which seems redundant at the moment
- Rename `qtip.spec` to `qtip.loader` since the class loads spec
- Add driver `sample` which will generate random performance data
- Add collector `logfile` which will collect result from log files
- Add reporter `console` which will print report to console
- Add exception classes

See updated class diagram in https://wiki.opnfv.org/display/qtip/Design

JIRA: QTIP-148
JIRA: QTIP-193
Change-Id: Idf751d33428176a26224e4443100a142feda6f32
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
37 files changed:
qtip/base/constant.py [new file with mode: 0644]
qtip/base/error.py [new file with mode: 0644]
qtip/collector/__init__.py [moved from qtip/drivers/__init__.py with 100% similarity]
qtip/collector/base.py [moved from qtip/drivers/base.py with 86% similarity]
qtip/collector/logfile.py [moved from qtip/agent/reporter.py with 78% similarity]
qtip/driver/__init__.py [moved from qtip/spec/__init__.py with 100% similarity]
qtip/driver/ansible.py [moved from qtip/drivers/ansible.py with 100% similarity]
qtip/driver/base.py [new file with mode: 0644]
qtip/driver/sample.py [new file with mode: 0644]
qtip/driver/yardstick.py [moved from qtip/drivers/yardstick.py with 100% similarity]
qtip/loader/__init__.py [new file with mode: 0644]
qtip/loader/base.py [moved from qtip/base/benchmark.py with 54% similarity]
qtip/loader/metric.py [moved from qtip/spec/metric.py with 84% similarity]
qtip/loader/qpi.py [moved from qtip/spec/qpi.py with 89% similarity]
qtip/reporter/__init__.py [new file with mode: 0644]
qtip/reporter/base.py [new file with mode: 0644]
qtip/reporter/console.py [moved from qtip/agent/collector.py with 81% similarity]
qtip/runner/base.py [new file with mode: 0644]
qtip/runner/case.py [deleted file]
qtip/runner/plan.py
qtip/runner/suite.py [deleted file]
tests/conftest.py
tests/data/benchmarks/QPI/fake-qpi.yaml [new file with mode: 0644]
tests/data/benchmarks/metric/dhrystone.yaml [moved from tests/data/benchmarks/metrics/dhrystone.yaml with 100% similarity]
tests/data/benchmarks/metric/dpi.yaml [moved from tests/data/benchmarks/metrics/dpi.yaml with 100% similarity]
tests/data/benchmarks/metric/fake-metric.yaml [new file with mode: 0644]
tests/data/benchmarks/metric/ramspeed.yaml [moved from tests/data/benchmarks/metrics/ramspeed.yaml with 100% similarity]
tests/data/benchmarks/metric/ssl.yaml [moved from tests/data/benchmarks/metrics/ssl.yaml with 100% similarity]
tests/data/benchmarks/metric/whetstone.yaml [moved from tests/data/benchmarks/metrics/whetstone.yaml with 100% similarity]
tests/data/benchmarks/plan/fake-plan.yaml [new file with mode: 0644]
tests/data/benchmarks/plans/verification.yaml [deleted file]
tests/unit/loader/metric_test.py
tests/unit/loader/qpi_test.py
tests/unit/runner/case_test.py [deleted file]
tests/unit/runner/conftest.py [deleted file]
tests/unit/runner/plan_test.py
tests/unit/runner/suite_test.py [deleted file]