diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-07-24 15:04:14 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | bf234e0c5d2af80f89fffcd963e5e2c455bcf3f1 (patch) | |
tree | e253c048d3af46a087d84385fd21a07d27ff8acc /framework/Registrars.h | |
parent | c7d1503008e74496836f99d64c082d4c9ae8f1ca (diff) | |
download | ComputeLibrary-bf234e0c5d2af80f89fffcd963e5e2c455bcf3f1.tar.gz |
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>
Diffstat (limited to 'framework/Registrars.h')
-rw-r--r-- | framework/Registrars.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/framework/Registrars.h b/framework/Registrars.h index ddbffabee4..ca23edf0de 100644 --- a/framework/Registrars.h +++ b/framework/Registrars.h @@ -47,17 +47,19 @@ public: * * @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 @@ public: }; 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 @@ inline TestCaseRegistrar<T>::TestCaseRegistrar(std::string test_name, DatasetMod // 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); } } |