1 #!/usr/bin/env python
\r
2 ##############################################################################
\r
3 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
\r
5 # All rights reserved. This program and the accompanying materials
\r
6 # are made available under the terms of the Apache License, Version 2.0
\r
7 # which accompanies this distribution, and is available at
\r
8 # http://www.apache.org/licenses/LICENSE-2.0
\r
9 ##############################################################################
\r
14 INTERPRETER = "/usr/bin/python"
\r
15 # ------------------------------------------------------
\r
16 # run posca testcase
\r
17 # ------------------------------------------------------
\r
21 print("========== run posca ==========")
\r
23 if(arg == "posca_factor_system_bandwidth"):
\r
24 print("========== run posca_system_bandwidth ===========")
\r
25 cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_script/\
\r
26 posca_factor_system_bandwidth.py'
\r
27 pargs = [INTERPRETER, cmd]
\r
28 sub_result = subprocess.Popen(pargs)
\r
32 def posca_env_check():
\r
33 print("========== posca env check ===========")
\r
37 # para_testname = sys.argv[0]
\r
38 para_test_arg = sys.argv[2]
\r
40 posca_run(para_test_arg)
\r
43 if __name__ == '__main__':
\r