summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateless_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-29 17:07:14 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-29 17:07:14 +0300
commite831a539aebac71d8f00c400416f4bef51108610 (patch)
treeee378d74d42fd52c05e6c05f2c421298ffbcac37 /scripts/automation/regression/stateless_tests
parentf35edfa45809c82de54d9aca2284ae8d83f10be0 (diff)
regression: add GA
Diffstat (limited to 'scripts/automation/regression/stateless_tests')
-rwxr-xr-xscripts/automation/regression/stateless_tests/stl_benchmark_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_benchmark_test.py b/scripts/automation/regression/stateless_tests/stl_benchmark_test.py
index 6614b1a6..78abff07 100755
--- a/scripts/automation/regression/stateless_tests/stl_benchmark_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_benchmark_test.py
@@ -48,6 +48,13 @@ class STLBenchmark_Test(CStlGeneral_Test):
print('Done (%ss), CPU util: %4g, bw_per_core: %6sGb/core' % (int(time() - start_time), agv_cpu_util, round(bw_per_core, 2)))
# TODO: add check of benchmark based on results from regression
+ # report benchmarks
+ if GAManager:
+ profile_repr = '%s %s' % (self.get_name(), repr(kwargs).replace("'", ''))
+ self.GAManager.gaAddAction(Event = 'stateless_test', action = profile_repr, label = 'bw_per_core', value = int(bw_per_core))
+ # TODO: report expected once acquired
+ #self.GAManager.gaAddAction(Event = 'stateless_test', action = profile_repr, label = 'bw_per_core_exp', value = int(expected_norm_cpu))
+ self.GAManager.emptyAndReportQ()
def tearDown(self):
self.stl_trex.reset()