diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-10-25 15:47:08 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 2d09993bed545f836cd624577c3ae749de6329b7 (patch) | |
tree | 2beb032f58a164b0547c36b678e038e1510e7f80 /tests/framework/Framework.h | |
parent | 5cbd20f10f1a51dc177c4e9e7c0be01261870260 (diff) | |
download | ComputeLibrary-2d09993bed545f836cd624577c3ae749de6329b7.tar.gz |
COMPMID-621 Support several printers for tests
Change-Id: I2e8e98aab1ec14c2a1bf17db2facc908b241b783
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93308
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/framework/Framework.h')
-rw-r--r-- | tests/framework/Framework.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/framework/Framework.h b/tests/framework/Framework.h index 063824cbdb..1d7efee59f 100644 --- a/tests/framework/Framework.h +++ b/tests/framework/Framework.h @@ -280,7 +280,7 @@ public: * * @param[in] printer Pointer to a printer. */ - void set_printer(Printer *printer); + void add_printer(Printer *printer); /** List of @ref TestInfo's. * @@ -314,14 +314,18 @@ private: */ std::string current_suite_name() const; + /* Perform func on all printers */ + template <typename F> + void func_on_all_printers(F &&func); + std::vector<std::string> _test_suite_name{}; std::vector<std::unique_ptr<TestCaseFactory>> _test_factories{}; std::map<TestInfo, TestResult> _test_results{}; - int _num_iterations{ 1 }; - bool _throw_errors{ false }; - bool _stop_on_error{ false }; - bool _error_on_missing_assets{ false }; - Printer *_printer{ nullptr }; + int _num_iterations{ 1 }; + bool _throw_errors{ false }; + bool _stop_on_error{ false }; + bool _error_on_missing_assets{ false }; + std::vector<Printer *> _printers{}; using create_function = std::unique_ptr<Instrument>(); std::map<InstrumentType, create_function *> _available_instruments{}; |