perf tests: allow to skip performance tests

This commit is contained in:
Alexander Alekhin
2013-11-12 18:15:50 +04:00
parent 376993be4c
commit f1873bbca1
2 changed files with 37 additions and 13 deletions

View File

@@ -243,6 +243,7 @@ typedef struct CV_EXPORTS performance_metrics
TERM_TIME = 1,
TERM_INTERRUPT = 2,
TERM_EXCEPTION = 3,
TERM_SKIP_TEST = 4, // there are some limitations and test should be skipped
TERM_UNKNOWN = -1
};
@@ -279,6 +280,8 @@ public:
static enum PERF_STRATEGY getPerformanceStrategy();
static enum PERF_STRATEGY setPerformanceStrategy(enum PERF_STRATEGY strategy);
class PerfSkipTestException: public cv::Exception {};
protected:
virtual void PerfTestBody() = 0;