summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/unit_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-01-12 10:10:10 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-01-12 10:10:10 +0200
commit0f49e42f202491f7d8e23be237f9c94f136fe384 (patch)
treeda48cb2bbff731f1b1963ab1bd31ed4d1cfeaf8a /scripts/automation/regression/unit_tests
parentd7270bba3a4f8b89314abf82e21346fc81d6a6df (diff)
regression:
add jumbo benchmark for trex08 replace --local for --functional flag, remove the need of SETUP_DIR in such case
Diffstat (limited to 'scripts/automation/regression/unit_tests')
-rwxr-xr-xscripts/automation/regression/unit_tests/trex_imix_test.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/scripts/automation/regression/unit_tests/trex_imix_test.py b/scripts/automation/regression/unit_tests/trex_imix_test.py
index 770edbb9..43dea900 100755
--- a/scripts/automation/regression/unit_tests/trex_imix_test.py
+++ b/scripts/automation/regression/unit_tests/trex_imix_test.py
@@ -46,8 +46,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
print trex_res
self.check_general_scenario_results(trex_res)
-
- self.check_CPU_benchmark(trex_res, 10.0)
+ self.check_CPU_benchmark(trex_res)
# the name intentionally not matches nose default pattern, including the test should be specified explicitly
def dummy(self):
@@ -94,12 +93,12 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
self.check_general_scenario_results(trex_res)
- self.check_CPU_benchmark(trex_res, 10.0)
+ self.check_CPU_benchmark(trex_res)
def test_static_routing_imix (self):
- if self.is_loopback: # in loopback mode this test acts same as test_routing_imix, disable to avoid duplication
- self.skip()
+ if self.is_loopback:
+ self.skip('In loopback mode the test is same as test_routing_imix')
# test initializtion
if not self.is_loopback:
self.router.configure_basic_interfaces()
@@ -122,7 +121,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
l = 1000)
trex_res = self.trex.sample_to_run_finish()
-
+
# trex_res is a CTRexResult instance- and contains the summary of the test results
# you may see all the results keys by simply calling here for 'print trex_res.result'
print ("\nLATEST RESULT OBJECT:")
@@ -131,7 +130,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
print trex_res.get_latest_dump()
self.check_general_scenario_results(trex_res)
- self.check_CPU_benchmark(trex_res, 10)
+ self.check_CPU_benchmark(trex_res)
def test_static_routing_imix_asymmetric (self):
@@ -156,7 +155,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
l = 1000)
trex_res = self.trex.sample_to_run_finish()
-
+
# trex_res is a CTRexResults instance- and contains the summary of the test results
# you may see all the results keys by simply calling here for 'print trex_res.result'
print ("\nLATEST RESULT OBJECT:")
@@ -164,9 +163,9 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
self.check_general_scenario_results(trex_res)
- self.check_CPU_benchmark(trex_res, 10)
+ self.check_CPU_benchmark(trex_res)
+
-
def test_jumbo(self):
if not self.is_loopback:
self.router.configure_basic_interfaces(mtu = 9216)
@@ -185,7 +184,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
l = 1000)
trex_res = self.trex.sample_to_run_finish()
-
+
# trex_res is a CTRexResults instance- and contains the summary of the test results
# you may see all the results keys by simply calling here for 'print trex_res.result'
print ("\nLATEST RESULT OBJECT:")