summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2017-02-06 16:21:36 +0800
committeryuyang <Gabriel.yuyang@huawei.com>2017-02-09 16:35:44 +0800
commit9038727dee2e67f8facd75f8b498ca20a1e066c9 (patch)
treedcf40ce6ee38d8d214345c6befefdd0fac973dbf /testsuites
parent0a29e9ec59e21dc46db0497187cc9d0de0844b05 (diff)
Add POSCA jenkins job support
JIRA: BOTTLENECK-128 This patch is to make the POSCA testsuite could be built automatically for OPNFV CI job. Change-Id: I21d7fd553ce3591aea3391a33fe0a7b8579b57d4 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'testsuites')
-rwxr-xr-xtestsuites/posca/testcase_cfg/posca_factor_system_bandwidth.yaml6
-rw-r--r--testsuites/posca/testcase_script/posca_factor_system_bandwidth.py5
2 files changed, 6 insertions, 5 deletions
diff --git a/testsuites/posca/testcase_cfg/posca_factor_system_bandwidth.yaml b/testsuites/posca/testcase_cfg/posca_factor_system_bandwidth.yaml
index 217bff3e..e7238d2c 100755
--- a/testsuites/posca/testcase_cfg/posca_factor_system_bandwidth.yaml
+++ b/testsuites/posca/testcase_cfg/posca_factor_system_bandwidth.yaml
@@ -1,9 +1,9 @@
test_config:
tool: netperf
protocol: tcp
- test_time: 60
- tx_pkt_sizes: 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072
- rx_pkt_sizes: 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072
+ test_time: 20
+ tx_pkt_sizes: 64, 256, 1024, 4096, 8192, 16384, 32768, 65536
+ rx_pkt_sizes: 64, 256, 1024, 4096, 8192, 16384, 32768, 65536
cpu_load: 0.9
latency: 100000
runner_config:
diff --git a/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py b/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
index aebfa962..54e2970b 100644
--- a/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
+++ b/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
@@ -33,8 +33,8 @@ test_dict = {
}
-def env_pre():
- Runner.Create_Incluxdb()
+def env_pre(con_dic):
+ Runner.Create_Incluxdb(con_dic['runner_config'])
def do_test(test_config, con_dic):
@@ -64,6 +64,7 @@ def run(con_dic):
if con_dic["runner_config"]["yardstick_test_ip"] is None:
con_dic["runner_config"]["yardstick_test_ip"] =\
conf_parser.ip_parser("yardstick_test_ip")
+ env_pre(con_dic)
for test_x in data["tx_pkt_sizes"]:
data_max["throughput"] = 1
bandwidth_tmp = 1