diff options
author | imarom <imarom@cisco.com> | 2016-09-25 14:58:51 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-09-25 15:08:09 +0300 |
commit | d94e6a00edc22a1dd4946b3603aebb29319ce5ce (patch) | |
tree | febed00c2f93adcc0519fcf9b6ee3c81d66d2178 /scripts/automation | |
parent | e768dc68155ba835882733753844a570d8384646 (diff) |
split multicore - all tests pass
Diffstat (limited to 'scripts/automation')
3 files changed, 10 insertions, 20 deletions
diff --git a/scripts/automation/regression/functional_tests/stl_basic_tests.py b/scripts/automation/regression/functional_tests/stl_basic_tests.py index 28178324..bc5bc4d5 100644 --- a/scripts/automation/regression/functional_tests/stl_basic_tests.py +++ b/scripts/automation/regression/functional_tests/stl_basic_tests.py @@ -340,11 +340,13 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test): seed = time.time() # test with simple vars + print(format_text("\nTesting multiple flow vars for multicore\n", 'underline')) rc = self.run_sim('stl/tests/multi_core_test.py', output = None, options = '--test_multi_core --limit=840 -t test_type=plain#seed={0} -m 27kpps'.format(seed), silent = True) assert_equal(rc, True) # test with tuple + print(format_text("\nTesting multiple tuple generators for multicore\n", 'underline')) rc = self.run_sim('stl/tests/multi_core_test.py', output = None, options = '--test_multi_core --limit=840 -t test_type=tuple#seed={0} -m 27kpps'.format(seed), silent = True) assert_equal(rc, True) @@ -356,6 +358,7 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test): ] for mc_test in mc_tests: + print(format_text("\ntesting {0} for multicore...\n".format(mc_test), 'underline')) rc = self.run_sim(mc_test, output = None, options = '--test_multi_core --limit=840 -m 27kpps', silent = True) assert_equal(rc, True) diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py index 63a1232b..54ec2da9 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py @@ -558,25 +558,13 @@ def test_multi_core (r, options): print("") - print(format_text("comparing 2 cores to 1 core:\n", 'underline')) - rc = compare_caps_strict('1.cap', '2.cap') - if rc: - print("[Passed]\n") - - print(format_text("comparing 4 cores to 1 core:\n", 'underline')) - rc = compare_caps('1.cap', '4.cap') - if rc: - print("[Passed]\n") - - print(format_text("comparing 6 cores to 1 core:\n", 'underline')) - rc = compare_caps('1.cap', '6.cap') - if rc: - print("[Passed]\n") - - print(format_text("comparing 8 cores to 1 core:\n", 'underline')) - rc = compare_caps('1.cap', '8.cap') - if rc: - print("[Passed]\n") + for core_count in range(1, 9): + print(format_text("comparing {0} cores to 1 core:\n".format(core_count), 'underline')) + rc = compare_caps_strict('1.cap', '{0}.cap'.format(core_count)) + if rc: + print("[Passed]\n") + + return def main (args = None): diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py index 65333e0f..b42b56af 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py @@ -222,7 +222,6 @@ def decode_tunables (tunable_str): # each token is of form X=Y for token in tokens: - print(token) m = re.search('(.*)=(.*)', token) if not m: raise argparse.ArgumentTypeError("bad syntax for tunables: {0}".format(token)) |