From e831a539aebac71d8f00c400416f4bef51108610 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Fri, 29 Apr 2016 17:07:14 +0300 Subject: regression: add GA --- .../automation/regression/stateless_tests/stl_benchmark_test.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/automation/regression/stateless_tests') 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() -- cgit 1.2.3-korg