diff options
author | Jun Li <matthew.lijun@huawei.com> | 2016-10-08 02:35:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-08 02:35:22 +0000 |
commit | 491c218b3d06bdb9eb54aa70905e8ec3c6f0b173 (patch) | |
tree | 21a12f73c1dd88aa6ac069f69b074d13aa97e69d /testsuites/posca/run_posca.py | |
parent | 23f716997d7cc1f396007f5b2e3c4d82dc2e94a3 (diff) | |
parent | b9850595c9b27752fe48ce874f8dc90d473d9e60 (diff) |
Merge changes from topics 'add_factor_testcase_tx_pkt_size', 'add_posca_test_suite_framework'
* changes:
Add Factor Testcase TX PKT Size
Adding Posca Testsuite in Bottlenecks
Diffstat (limited to 'testsuites/posca/run_posca.py')
-rwxr-xr-x | testsuites/posca/run_posca.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testsuites/posca/run_posca.py b/testsuites/posca/run_posca.py new file mode 100755 index 00000000..9f90b3c7 --- /dev/null +++ b/testsuites/posca/run_posca.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python
+##############################################################################
+# Copyright (c) 2016 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
+##############################################################################
+
+import os
+import sys
+import subprocess
+
+INTERPRETER = "/usr/bin/python"
+#------------------------------------------------------
+# run posca testcase
+# ------------------------------------------------------
+def posca_run(arg):
+ print "========== run posca ==========="
+ if(arg == "factor_system_bandwidth"):
+ print "========== run posca_system_bandwidth ==========="
+ cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py'
+ pargs = [INTERPRETER,cmd]
+ sub_result = subprocess.Popen(pargs)
+ sub_result.wait()
+
+def posca_env_check():
+ print "========== posca env check ==========="
+
+def main():
+ para_testname = sys.argv[0]
+ para_test_arg = sys.argv[1]
+ posca_env_check()
+ posca_run(para_test_arg)
+ sys.exit(0)
+
+if __name__=='__main__':
+ main()
|