summaryrefslogtreecommitdiffstats
path: root/func/cli.py
AgeCommit message (Collapse)AuthorFilesLines
2016-10-07Rename `suit` to `suite`Yujun Zhang1-1/+1
We should use correct words for naming. Change-Id: Ia1ec690fca62259b5f226e2d6941a507cc61786e Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-10-01Running a single benchmark as an option for user.linux_geek1-5/+19
JIRA: QTIP-104 Change-Id: I4413d1e2670192b86af0aad62fb2752d2709fa14 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2016-09-08Remove os environment in driver.py so that it can be called by restful serverzhifeng.jiang1-3/+5
modification: Change os environments to parameters in driver.py Pass the parameters in cli.py and arg_handler.py JIRA:QTIP-97 Change-Id: Id67acb7e0ac46fa9e0e32481e947055b6d37dd95 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-21Code refactoring cli.py so that it can be reused by restful server.zhifeng.jiang1-68/+13
modification: Move function in cli.py to args_handler.py Add unit test for args_handler.py Add unit test for cli.py Delete print in driver.py to pass unit test JIRA:QTIP-99 Change-Id: Ib670d7dff494f3e04cdbe1de5c247d382b1052c1 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-10Fix Argument ParsingSai Sindhur Malleni1-2/+4
Not making the option -l and -f causes a traceback when checking if -l is a valid directory and -f is a valid file as concatenation is attemtped between string and None type. Signed-off-by: Sai Sindhur Malleni <smalleni@redhat.com> Change-Id: If0ae87cde0e43122b3318f9c3749c05639ac3f36
2016-07-05Add some UT test cases and fix pep8 errors for cli and env_setup.zhifeng.jiang1-60/+61
JIRA:QTIP-89 Change-Id: I4a46898071001f679f1a032a560d605dffc8eb9f Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-06-21Run the test only when ping ok and try ping 20 times.zhifeng.jiang1-10/+10
JIRA: QTIP-92 Change-Id: I270deb3b1d930d6805524d10826f5711b3e4787e Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-06-01Merge "Read the proxy info from testcase, and set it to hosts when dhrystone ↵Nauman Ahad1-2/+3
benchmarks test."
2016-05-23Read the proxy info from testcase, and set it to hosts when dhrystone ↵zhifeng.jiang1-2/+3
benchmarks test. modification: Write the git_proxy_pbook.yaml to set git proxy info in hosts or vms. Write the sys_proxy_pbook.yaml to set yum apt wget env proxy info in hosts or vms. Change the dhrystone.yaml to include proxy and add the zte-pod1 /compute/dhrystone_bm.yaml.Tested and passed.Other playbooks did not include the proxy yet. I will test and push lately. QTIP-74 Change-Id: Ia820bc32798b9f1f6f4165a111524e04c129a5df Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-05-20Change the args.benchmark which is not defined to benchmarks[items]zhifeng.jiang1-1/+1
QTIP-76 Change-Id: Ia92268f296650331cec9baa876075b2708348ec5 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-01-28qtip: add condition for switching user to joid.MofassirArif1-1/+9
Change-Id: I9898a4eb21fb197a59fc72686d156eb4ef115388 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-21bug fix: result collection bug fix for docker imagesMofassirArif1-8/+8
Change-Id: Ia4ea09b90c7a4f4e3699af456c6d66e85661cc0b Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-12error handling for the files being input to the framework.MofassirArif1-8/+41
iperf bug fix for the bare metal testing, renamed all the iperf config files. added more detail to the help. Change-Id: I16cfb1c05599cd0b803e735e6a75083e3e6733ec Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-11Updated the code to accept compute instead of compute.txtMofassir1-4/+4
Change-Id: I06ce77e04db0e1c7d7de6c16b3a876740099e5ae Signed-off-by: Mofassir <Mofassir_arif@Dellteam.com>
2016-01-05I have added the placeholder documentation files andMofassir1-1/+2
folders. They will be editted in time for the release Change-Id: Id69392233399ad536b359da5733dfaa43a602443 Signed-off-by: Mofassir <Mofassir_arif@Dellteam.com>
2015-12-22Restructured QTIP directories and CLIMofassir Arif1-33/+42
I have changed the arguments for the CLI and now QTIP takes a file along withthe name of the lab to run on Right now only the config files for the dell lab have been added, These will increase when we make QTIP available for other labs. I have also added the provision of changing the public network from the config file and some leftover files from previous verisons have been remove Change-Id: Ifeb01d80099eab06dc77a7b2e07097ebb17a13a2 Signed-off-by: Mofassir Arif <Mofassir_arif@dellteam.com>
2015-12-16Removed Root previlagesMofassir Arif1-1/+1
QTIP now uses a key of its own to ssh into VMs The ssh for the baremetal servers still needs work Change-Id: I1aa37e07c4f9b3f7f4902d16cdbf74f39eb6c698 Signed-off-by: Mofassir Arif <Mofassir_arif@dellteam.com> Conflicts: .gitignore
2015-12-16Networking Testcase: Iperf ImplementedMofassir Arif1-10/+6
The ansible playbooks as well as the config files for the iperf throughput testing have been implemented. Some changes have been made to the driver function for the benchmarks. ansible now gets passed a json file. Change-Id: Ibf4c0210ab9f6cbf9896ca69bf2fb6bda8a9925d Signed-off-by: Mofassir Arif <mofassir@gmail.com>
2015-11-05Python Framework for QTIPMofassir Arif1-0/+60
Dhrystone Whetstone and DPI benchmarks have been implemented CLI arguments have been implemented test case are sorted based on category such as compute,network and storage glance and heat client have been used to generate the stack. automatic upload of QTIP image and delete function for existing stack before creating new stack has been implemented system information collecton and result generation has been implemented JIRA: QTIP-17 Signed-off-by: Mofassir Arif <mofassir_arif@dell.com> Change-Id: I4b7b134017723c30c771cc14d2edce33fcb8ba00