diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-09-28 12:01:10 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | f6705ec6ed137233680929e941c674af6baae1dc (patch) | |
tree | 01e042ca01e80cec627cb76b537a3c5e5d65b7b5 /tests/framework/Framework.h | |
parent | 349feef33ed931a4b24f34f76482e80428973873 (diff) | |
download | ComputeLibrary-f6705ec6ed137233680929e941c674af6baae1dc.tar.gz |
COMPMID-417 Allow the tests to run even when assets are not present
Change-Id: Ief165b1d583a70cbe35aae93f05ddfe962196323
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89503
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/framework/Framework.h')
-rw-r--r-- | tests/framework/Framework.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/framework/Framework.h b/tests/framework/Framework.h index 3741e44694..063824cbdb 100644 --- a/tests/framework/Framework.h +++ b/tests/framework/Framework.h @@ -233,6 +233,18 @@ public: */ void set_stop_on_error(bool stop_on_error); + /** Indicates if a test should be marked as failed when its assets are missing. + * + * @return True if a test should be marked as failed when its assets are missing. + */ + bool error_on_missing_assets() const; + + /** Set whether a test should be considered as failed if its assets cannot be found. + * + * @param[in] error_on_missing_assets True if a test should be marked as failed when its assets are missing. + */ + void set_error_on_missing_assets(bool error_on_missing_assets); + /** Run all enabled test cases. * * @return True if all test cases executed successful. @@ -308,6 +320,7 @@ private: int _num_iterations{ 1 }; bool _throw_errors{ false }; bool _stop_on_error{ false }; + bool _error_on_missing_assets{ false }; Printer *_printer{ nullptr }; using create_function = std::unique_ptr<Instrument>(); |