summaryrefslogtreecommitdiffstats
path: root/qtip/driver
AgeCommit message (Collapse)AuthorFilesLines
2017-03-15add the cleanup step in runner.pywu.zhihui1-0/+3
Add the cleanup step in runner.py Change-Id: I0016986485eab5d7ab45d4a7a393bea5fb6f96b5 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec)
2017-03-15Merge "Implement the workflow of compute qpi" into stable/danubezhihui wu1-18/+32
2017-03-14Implement the workflow of compute qpiwu.zhihui1-18/+32
Local test is ok. The result will be written to report.json. usage: runner.py [-h] -d DEST -b BENCHMARK optional arguments: -d DEST, --dest DEST the destination where results will be stored. -b BENCHMARK, --benchmark BENCHMARK the benchmark you want to execute. Change-Id: Ic3a70c65a5aa045bf9df34ce4d14957a7a1b3dcf Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 478cd02a9219f7c8b49d8529d1f809a04399ad0d)
2017-03-14Some modifications for ansible playbookwu.zhihui3-5/+13
- typo in ramspeed/run.yaml - fix result logfile name for dhrystone and whetstone Change-Id: Ic8456174a14d04c2207990eccb16601762c5a880 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 764c2d3916f1390e2ee2ca3b3efbcc33050fd525)
2017-03-10modify logfile directory structurewu.zhihui13-72/+54
After one qtip test execution, the logfiles will be stored like this: `-- 2017-03-09-17-40 `-- node-41 |-- dhrystone | |-- inxi.log | |-- node-41.zte.com.cn-2017-03-09-01 | |-- node-41.zte.com.cn-2017-03-09-01.html | |-- node-41.zte.com.cn-2017-03-09-01.log | `-- top.log |-- dpi | |-- dpi_dump.txt | |-- inxi.log | `-- top.log |-- ramspeed | |-- Floatmem | |-- Intmem | |-- inxi.log | `-- top.log |-- ssl | |-- AES-128-CBC_dump | |-- RSA_dump | |-- inxi.log | `-- top.log `-- whetstone |-- inxi.log |-- node-41.zte.com.cn-2017-03-09-01 |-- node-41.zte.com.cn-2017-03-09-01.html |-- node-41.zte.com.cn-2017-03-09-01.log `-- top.log Change-Id: I5889a0e5dbe99f28212d6e0cdf69b9c03d89a9fe Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-09Merge "Implement ansible driver"zhihui wu3-14/+143
2017-03-09Merge "Playbooks for unixbench"zhihui wu6-81/+118
2017-03-09Merge "playbook for ramspeed"zhihui wu3-0/+137
2017-03-09Merge "Refactor openssl playbook"zhihui wu3-0/+159
2017-03-08Merge "Remove hardcode from some playbooks"zhihui wu3-3/+9
2017-03-08Implement ansible driverwu.zhihui3-14/+143
- According to inputs parameters, setup test environment. If failed during setupping, qtip will exited. If successful, execute metric tests. - Parameters(optional): * keypair: the keypair to login/execute commands to the remote hosts. They can be automatically generated. * hostfile: a inventory file. If not give, it can be automatically generated via installer. * args: the parameters passed to playbook - Use ansible python api to trigger ansible-playbook. Unit test will be in a new patch. Change-Id: I7470d348308f7cb6cb669bcc49063cf0f4da2111 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Refactor openssl playbookwu.zhihui3-0/+159
Local test is ok. Change-Id: I2800e364320697d436ed7b9202cc1baa3a893503 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Playbooks for unixbenchwu.zhihui6-81/+118
Actually, both dhrystone and whether use unixbench tool to get metric. Their playbook are too smiliar. The playbooks under /unixbench can be used to measure both of them. Change-Id: I26e31c2b4ac4de35ff8b7ec6dea26b676d5078de Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08playbook for ramspeedwu.zhihui3-0/+137
These playbooks are successfully executed on Local. Change-Id: Ie22ecb9b66364e6edf6ae0f59d0524603c4d46a9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Refactor dpi playbookwu.zhihui4-0/+172
Local test is ok. Change-Id: I22a333eae940433a1ca228e6ee7f570b8d0c0fc9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Remove hardcode from some playbookswu.zhihui3-3/+9
Remove hardcode ($HOME/qtip_result) from these three playbooks. Change-Id: Iefcf0d4c6caf6be6b6888ff6abe4c36621666129 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-03Refactor dhrystone playbookwu.zhihui9-1/+169
- Break previous one playbook into three playbooks: setup.yaml: setup test environment. run.yaml: execute test steps clean.yaml: cleanup test environment to restore environment The advantage is cleaning part will never be blocked by another. - Just do testing on remote hosts, parse logfile on localhost. - Use ansible module instead of shell command. - Move up all files under /ansible and remove ansible directory. Under /ansible, ansible package cann't be imported. Change-Id: I43c65be23869b7d42ca769994d4decb9a012d196 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-27Deprecate unused drivers sample and yardstickYujun Zhang2-29/+0
- yardstick driver will not be implemented in Danube release - sample driver is no longer continued Change-Id: I22a86fe22b08c85b2a18ef70443d725bc4a25246 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-20code refactor: ansible playbook about system infowu.zhihui6-1/+99
- use module yum and apt instead of shell command - break sys_info_pbook.yaml into some small playbooks Change-Id: I33b36fa826c0e668e4a74846ad4da7f4a245a33f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-01-03Add module skeletonsYujun Zhang5-0/+63
- 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>