Commit 66e4aead authored by Alexander Alekhin's avatar Alexander Alekhin

perf tests: added SANITY_CHECK_NOTHING()

parent e35bc115
...@@ -209,6 +209,7 @@ private: ...@@ -209,6 +209,7 @@ private:
#define SANITY_CHECK(array, ...) ::perf::Regression::add(this, #array, array , ## __VA_ARGS__) #define SANITY_CHECK(array, ...) ::perf::Regression::add(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_KEYPOINTS(array, ...) ::perf::Regression::addKeypoints(this, #array, array , ## __VA_ARGS__) #define SANITY_CHECK_KEYPOINTS(array, ...) ::perf::Regression::addKeypoints(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_MATCHES(array, ...) ::perf::Regression::addMatches(this, #array, array , ## __VA_ARGS__) #define SANITY_CHECK_MATCHES(array, ...) ::perf::Regression::addMatches(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_NOTHING() this->setVerified();
class CV_EXPORTS GpuPerf class CV_EXPORTS GpuPerf
{ {
...@@ -345,12 +346,13 @@ private: ...@@ -345,12 +346,13 @@ private:
friend class TestBase; friend class TestBase;
}; };
friend class _declareHelper; friend class _declareHelper;
friend class Regression;
bool verified; bool verified;
public: public:
_declareHelper declare; _declareHelper declare;
void setVerified() { this->verified = true; }
}; };
template<typename T> class TestBaseWithParam: public TestBase, public ::testing::WithParamInterface<T> {}; template<typename T> class TestBaseWithParam: public TestBase, public ::testing::WithParamInterface<T> {};
......
...@@ -107,7 +107,7 @@ Regression& Regression::instance() ...@@ -107,7 +107,7 @@ Regression& Regression::instance()
Regression& Regression::add(TestBase* test, const std::string& name, cv::InputArray array, double eps, ERROR_TYPE err) Regression& Regression::add(TestBase* test, const std::string& name, cv::InputArray array, double eps, ERROR_TYPE err)
{ {
if(test) test->verified = true; if(test) test->setVerified();
return instance()(name, array, eps, err); return instance()(name, array, eps, err);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment