Test_case name included in final json result file 75/8975/1
authorNauman Ahad <nauman.ahad@xflowresearch.com>
Fri, 29 Jan 2016 12:48:00 +0000 (12:48 +0000)
committerNauman Ahad <nauman.ahad@xflowresearch.com>
Mon, 1 Feb 2016 22:38:12 +0000 (22:38 +0000)
Change-Id: Ic4059dd58d2c5c4e9f8a00a1c419dce0994bc1bc
Signed-off-by: Nauman Ahad <nauman.ahad@xflowresearch.com>
(cherry picked from commit 6bfa54e98b06fdd3daf9d26f9a66545402e9252c)

benchmarks/playbooks/dhrystone.yaml
benchmarks/playbooks/dpi.yaml
benchmarks/playbooks/fio.yaml
benchmarks/playbooks/iperf.yaml
benchmarks/playbooks/ramspeed.yaml
benchmarks/playbooks/result_transform/final_report.py
benchmarks/playbooks/ssl.yaml
benchmarks/playbooks/whetstone.yaml
data/hosts
opnfv-creds.sh [deleted file]
test_list/compute

index 3c1c7fb..d6306be 100644 (file)
@@ -45,7 +45,7 @@
     - name: copying consolidated report script
       copy: src=./result_transform/final_report.py  dest={{home_dir.stdout}}/qtip_result/
     - name: making consolidated report
-      shell: cd $HOME/qtip_result && python final_report.py Dhrystone
+      shell: cd $HOME/qtip_result && python final_report.py Dhrystone {{fname}}
     - name: making directory
       file: path={{home_dir.stdout}}/qtip_result/log state=directory
     - name: copying result to temp directory
index e4b7a0f..6b24fae 100644 (file)
@@ -56,7 +56,7 @@
     - name: copy report formation script
       copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
     - name: consolidating report
-      shell: cd $HOME/qtip_result && python final_report.py DPI
+      shell: cd $HOME/qtip_result && python final_report.py DPI {{fname}}
     - name: registering files
       shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
       register: files_to_copy
index dc11e9a..1235965 100644 (file)
@@ -50,7 +50,7 @@
     - name: copy report formation script
       copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
     - name: consolidating report
-      shell: cd $HOME/qtip_result &&  python final_report.py FIO
+      shell: cd $HOME/qtip_result &&  python final_report.py FIO {{fname}}
     - name: registering files
       shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
       register: files_to_copy
index ce2ffb6..d67884f 100644 (file)
@@ -85,7 +85,7 @@
       copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
       when: rolename =="2-host" and "{{ip2}}" == ''
     - name: consolidating report
-      shell: cd $HOME/qtip_result &&  python final_report.py IPERF
+      shell: cd $HOME/qtip_result &&  python final_report.py IPERF {{fname}}
       when: rolename =="2-host" and "{{ip2}}" == ''
     - name: Files to Copy
       shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
       shell: rm -rf {{workingdir}}/{{Dest_dir}}/iperf/iperf_raw.json
       when: rolename == "2-host"
     - name: removing iperf_temp
-      shell: rm -rf {{workingdir}}/{{Dest_dir}}/iperf/iperf_temp
\ No newline at end of file
+      shell: rm -rf {{workingdir}}/{{Dest_dir}}/iperf/iperf_temp
index 0810946..4bbb615 100644 (file)
@@ -50,7 +50,7 @@
     - name: copy report formation script
       copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
     - name: consolidating report
-      shell: cd $HOME/qtip_result &&  python final_report.py RamSpeed
+      shell: cd $HOME/qtip_result &&  python final_report.py RamSpeed {{fname}}
     - name: registering files
       shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
       register: files_to_copy
index 576109b..6a10c02 100644 (file)
@@ -13,11 +13,13 @@ with open('./result_temp', 'r') as result_f:
 
 host_name = (os.popen("hostname").read().rstrip())
 benchmark_name = str(sys.argv[1])
+testcase_name = str(sys.argv[2])
 report_time_stamp = str(datetime.datetime.utcnow().isoformat())
 final_dict = {}
-final_dict['1  Time of Report'] = report_time_stamp
-final_dict['2  System Information'] = sys_info_dict
-final_dict['3  ' + benchmark_name + ' result'] = result_dict
+final_dict['1  Testcase Name'] = testcase_name
+final_dict['2  Time of Report'] = report_time_stamp
+final_dict['3  System Information'] = sys_info_dict
+final_dict['4  ' + benchmark_name + ' result'] = result_dict
 
 with open('./' + host_name + '-' + report_time_stamp + '.json', 'w+') as result_json:
     json.dump(final_dict, result_json, indent=4, sort_keys=True)
index 9ba1645..fe8cbfe 100644 (file)
@@ -50,7 +50,7 @@
     - name: copy report formation script
       copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
     - name: consolidating report
-      shell: cd $HOME/qtip_result &&  python final_report.py SSL
+      shell: cd $HOME/qtip_result &&  python final_report.py SSL {{fname}}
     - name: registering files
       shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
       register: files_to_copy
index 7f06226..ab9290e 100644 (file)
@@ -46,7 +46,7 @@
     - name: copying consolidated report script
       copy: src=./result_transform/final_report.py  dest={{home_dir.stdout}}/qtip_result/
     - name: making consolidated report
-      shell: cd $HOME/qtip_result && python final_report.py Whetstone
+      shell: cd $HOME/qtip_result && python final_report.py Whetstone {{fname}}
     - name: making directory
       file: path={{home_dir.stdout}}/qtip_result/log state=directory
     - name: copying result to temp directory
index d7384cc..cf1feca 100644 (file)
@@ -1,3 +1,3 @@
-[host]
-172.18.1.65
-172.18.1.66
+[1host]
+10.20.0.5
+10.20.0.4
diff --git a/opnfv-creds.sh b/opnfv-creds.sh
deleted file mode 100644 (file)
index 54d5aa3..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-export LC_ALL=C
-export OS_NO_CACHE='true'
-export OS_TENANT_NAME='admin'
-export OS_USERNAME='admin'
-export OS_PASSWORD='admin'
-export OS_AUTH_URL='http://172.18.1.5:5000/v2.0'
-export OS_AUTH_STRATEGY='keystone'
-export OS_REGION_NAME='RegionOne'
-export CINDER_ENDPOINT_TYPE='internalURL'
-export GLANCE_ENDPOINT_TYPE='internalURL'
-export KEYSTONE_ENDPOINT_TYPE='internalURL'
-export NOVA_ENDPOINT_TYPE='internalURL'
-export NEUTRON_ENDPOINT_TYPE='internalURL'
-export OS_ENDPOINT_TYPE='internalURL'
-export MURANO_REPO_URL='http://storage.apps.openstack.org/'
index 7fc7614..f53e2fc 100644 (file)
@@ -7,4 +7,4 @@ ramspeed_vm.yaml
 dpi_bm.yaml\r
 dpi_vm.yaml\r
 ssl_bm.yaml\r
-ssl_vm.yaml
\ No newline at end of file
+ssl_vm.yaml\r