diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-11-24 11:24:45 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:41:04 +0000 |
commit | dbfb31cdee063ec61e0ab1087f99f235c12d2e7e (patch) | |
tree | 6076e31984b4278cbba7ca2c1bc53fa258e98842 /tests/framework/printers/PrettyPrinter.cpp | |
parent | c8097129aca9e410ec1fe0ff8f568db7a89b7cd2 (diff) | |
download | ComputeLibrary-dbfb31cdee063ec61e0ab1087f99f235c12d2e7e.tar.gz |
COMPMID-556 Print tests list using printers rather than cout
Will help with scripting to split the tests to run across several boards
Change-Id: I32806c3cd03cd1b4af1865cd4fdb0422d609eff0
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/110535
Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'tests/framework/printers/PrettyPrinter.cpp')
-rw-r--r-- | tests/framework/printers/PrettyPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/framework/printers/PrettyPrinter.cpp b/tests/framework/printers/PrettyPrinter.cpp index 280813f044..a2ce821f6b 100644 --- a/tests/framework/printers/PrettyPrinter.cpp +++ b/tests/framework/printers/PrettyPrinter.cpp @@ -108,6 +108,13 @@ void PrettyPrinter::print_error(const std::exception &error, bool expected) *_stream << begin_color("1") << prefix << error.what() << end_color() << "\n"; } +void PrettyPrinter::print_list_tests(const std::vector<TestInfo> &infos) +{ + for(auto info : infos) + { + *_stream << "[" << info.id << ", " << info.mode << ", " << info.status << "] " << info.name << "\n"; + } +} void PrettyPrinter::print_measurements(const Profiler::MeasurementsMap &measurements) { for(const auto &instrument : measurements) |