report=true
-arr_test_suite=(rubbos vstf)
+arr_test_suite=(rubbos vstf posca)
function check_testcase(){
"-vstf")
SUITE_PREFIX=$SUITE_PREFIX_CONFIG/vstf/testcase_cfg
;;
+ "-posca")
+ SUITE_PREFIX=$SUITE_PREFIX_CONFIG/posca/testcase_cfg
+ ;;
esac
TEST_CASE=$2
python /home/opnfv/bottlenecks/testsuites/vstf/run_vstf.py -c $file
done
;;
+ "posca")
+ info "Running posca test suite"
+ test_file="/home/opnfv/bottlenecks/testsuites/posca/testsuite_story/posca_factor_test"
+ if [[ -f $test_file ]]; then
+ testcases=($(cat $test_file))
+ else
+ error "no posca test suite file "
+ fi
+ for i in "${testcases[@]}"; do
+ #check if the testcase is legal or not
+ check_testcase -posca $i
+ #adjust config parameters
+ #run test case
+ file=${BASEDIR}/testsuites/posca/testcase_cfg/${i}.yaml
+ python /home/opnfv/bottlenecks/testsuites/posca/run_posca.py -c $file
+ done
+ ;;
esac
}
--- /dev/null
+#!/usr/bin/env python\r
+##############################################################################\r
+# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.\r
+#\r
+# All rights reserved. This program and the accompanying materials\r
+# are made available under the terms of the Apache License, Version 2.0\r
+# which accompanies this distribution, and is available at\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+##############################################################################\r
+\r
+import os\r
+import sys\r
+import subprocess\r
+\r
+INTERPRETER = "/usr/bin/python"\r
+#------------------------------------------------------\r
+# run posca testcase\r
+# ------------------------------------------------------\r
+def posca_run(arg):\r
+ print "========== run posca ==========="\r
+ if(arg == "factor_system_bandwidth"):\r
+ print "========== run posca_system_bandwidth ==========="\r
+ cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py'\r
+ pargs = [INTERPRETER,cmd]\r
+ sub_result = subprocess.Popen(pargs)\r
+ sub_result.wait()\r
+\r
+def posca_env_check():\r
+ print "========== posca env check ==========="\r
+\r
+def main():\r
+ para_testname = sys.argv[0]\r
+ para_test_arg = sys.argv[1]\r
+ posca_env_check()\r
+ posca_run(para_test_arg)\r
+ sys.exit(0)\r
+\r
+if __name__=='__main__':\r
+ main()\r
--- /dev/null
+[config]\r
+test_ip: 192.168.23.2:8888\r
+tool: netperf\r
+protocol: tcp\r
+test_time: 30\r
+tx pkt sizes: 8, 16, 32, 64, 128, 256, 512, 1024\r
+rx pkt sizes: 8, 16, 32, 64, 128, 256, 512, 1024\r
+tx cache sizes: 2304, 4608, 9216, 18432, 32768, 65536\r
+rx cache sizes: 1152, 2304, 4608, 9216, 18432, 32768, 65536, 131072\r
+cpu load: 0.9\r
+latency: 100000\r
--- /dev/null
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
--- /dev/null
+posca_factor_system_bandwidth
\ No newline at end of file