+#!/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