|
22 | 22 | #include "shared/test/common/mocks/mock_gmm_client_context.h" |
23 | 23 | #include "shared/test/common/mocks/mock_sip.h" |
24 | 24 | #include "shared/test/common/test_macros/test_checks_shared.h" |
| 25 | +#include "shared/test/unit_test/test_stats.h" |
25 | 26 | #include "shared/test/unit_test/tests_configuration.h" |
26 | 27 |
|
27 | 28 | #include "opencl/source/os_interface/ocl_reg_path.h" |
@@ -195,7 +196,7 @@ int main(int argc, char **argv) { |
195 | 196 | bool enable_alarm = true; |
196 | 197 | bool enable_abrt = true; |
197 | 198 | bool setupFeatureTableAndWorkaroundTable = testMode == TestMode::AubTests ? true : false; |
198 | | - |
| 199 | + bool showTestStats = false; |
199 | 200 | applyWorkarounds(); |
200 | 201 |
|
201 | 202 | #if defined(__linux__) |
@@ -242,6 +243,8 @@ int main(int argc, char **argv) { |
242 | 243 | useDefaultListener = true; |
243 | 244 | } else if (!strcmp("--disable_alarm", argv[i])) { |
244 | 245 | enable_alarm = false; |
| 246 | + } else if (!strcmp("--show_test_stats", argv[i])) { |
| 247 | + showTestStats = true; |
245 | 248 | } else if (!strcmp("--disable_pagefaulting_tests", argv[i])) { //disable tests which raise page fault signal during execution |
246 | 249 | NEO::PagaFaultManagerTestConfig::disabled = true; |
247 | 250 | } else if (!strcmp("--tbx", argv[i])) { |
@@ -323,6 +326,11 @@ int main(int argc, char **argv) { |
323 | 326 | } |
324 | 327 | } |
325 | 328 |
|
| 329 | + if (showTestStats) { |
| 330 | + std::cout << getTestStats() << std::endl; |
| 331 | + return 0; |
| 332 | + } |
| 333 | + |
326 | 334 | productFamily = hwInfoForTests.platform.eProductFamily; |
327 | 335 | renderCoreFamily = hwInfoForTests.platform.eRenderCoreFamily; |
328 | 336 | uint32_t threadsPerEu = hwInfoConfigFactory[productFamily]->threadsPerEu; |
|
0 commit comments