COMPMID-415: Add expected failures and disabled tests
Change-Id: I16be0340cd0c5e57c1dd76a71c057bc867fcf6a0
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81445
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
diff --git a/framework/Registrars.h b/framework/Registrars.h
index ddbffab..ca23edf 100644
--- a/framework/Registrars.h
+++ b/framework/Registrars.h
@@ -47,17 +47,19 @@
*
* @param[in] test_name Name of the test case.
* @param[in] mode Mode in which the test should be activated.
+ * @param[in] status Status of the test case.
*/
- TestCaseRegistrar(std::string test_name, DatasetMode mode);
+ TestCaseRegistrar(std::string test_name, DatasetMode mode, TestCaseFactory::Status status);
/** Add a new data test case with the given name to the framework.
*
* @param[in] test_name Name of the test case.
* @param[in] mode Mode in which the test should be activated.
+ * @param[in] status Status of the test case.
* @param[in] dataset Dataset used as input for the test case.
*/
template <typename D>
- TestCaseRegistrar(std::string test_name, DatasetMode mode, D &&dataset);
+ TestCaseRegistrar(std::string test_name, DatasetMode mode, TestCaseFactory::Status status, D &&dataset);
};
/** Helper class to statically begin and end a test suite. */
@@ -75,14 +77,14 @@
};
template <typename T>
-inline TestCaseRegistrar<T>::TestCaseRegistrar(std::string test_name, DatasetMode mode)
+inline TestCaseRegistrar<T>::TestCaseRegistrar(std::string test_name, DatasetMode mode, TestCaseFactory::Status status)
{
- Framework::get().add_test_case<T>(std::move(test_name), mode);
+ Framework::get().add_test_case<T>(std::move(test_name), mode, status);
}
template <typename T>
template <typename D>
-inline TestCaseRegistrar<T>::TestCaseRegistrar(std::string test_name, DatasetMode mode, D &&dataset)
+inline TestCaseRegistrar<T>::TestCaseRegistrar(std::string test_name, DatasetMode mode, TestCaseFactory::Status status, D &&dataset)
{
auto it = dataset.begin();
@@ -91,7 +93,7 @@
// WORKAROUND for GCC 4.9
// The last argument should be *it to pass just the data and not the
// iterator.
- Framework::get().add_data_test_case<T>(test_name, mode, it.description(), it);
+ Framework::get().add_data_test_case<T>(test_name, mode, status, it.description(), it);
}
}