aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/Framework.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/Framework.h')
-rw-r--r--tests/framework/Framework.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/framework/Framework.h b/tests/framework/Framework.h
index 4c2e86c6ea..2dded30038 100644
--- a/tests/framework/Framework.h
+++ b/tests/framework/Framework.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2021 Arm Limited.
+ * Copyright (c) 2017-2021, 2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -64,6 +64,8 @@ struct FrameworkConfig
float cooldown_sec{ -1.f }; /**< Delay between tests in seconds. */
LogLevel log_level{ LogLevel::NONE }; /**< Verbosity of the output. */
bool configure_only{ false }; /**< Only configure kernels */
+ bool print_rerun_cmd{ false }; /**< Print the command to rerun the failed testcase */
+ unsigned int seed{ 0 }; /**< The seed that is used to fill tensors with random values.*/
};
/** Information about a test case.
@@ -121,8 +123,6 @@ public:
* registering test cases.
*
* @param[in] name Name of the added test suite.
- *
- * @return Name of the current test suite.
*/
void push_suite(std::string name);
@@ -230,13 +230,13 @@ public:
/** Indicates if test execution is stopped after the first failed test.
*
- * @return True if the execution is going to be aborted after the first failed test.
+ * @return True if the execution is going to be stopped after the first failed test.
*/
bool stop_on_error() const;
- /** Set whether to abort execution after the first failed test.
+ /** Set whether to stop execution after the first failed test.
*
- * @param[in] stop_on_error True if execution is going to be aborted after first failed test.
+ * @param[in] stop_on_error True if execution is going to be stopped after first failed test.
*/
void set_stop_on_error(bool stop_on_error);
@@ -330,7 +330,7 @@ private:
Framework(const Framework &) = delete;
Framework &operator=(const Framework &) = delete;
- void run_test(const TestInfo &info, TestCaseFactory &test_factory);
+ TestResult::Status run_test(const TestInfo &info, TestCaseFactory &test_factory);
std::map<TestResult::Status, int> count_test_results() const;
/** Returns the current test suite name.
@@ -358,6 +358,8 @@ private:
std::vector<Printer *> _printers{};
bool _configure_only{ false };
bool _new_fixture_call{ false };
+ bool _print_rerun_cmd{ false };
+ unsigned int _seed{ 0 };
using create_function = std::unique_ptr<Instrument>();
std::map<InstrumentsDescription, create_function *> _available_instruments{};