From b84cbeec8cf313d4397cc8d916dc48992572fa21 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 29 Jun 2017 12:49:47 +0300 Subject: [PATCH] calib3d(perf): disable SGBM tests in debug mode because they are too long (takes minutes) --- modules/calib3d/perf/perf_stereosgbm.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/calib3d/perf/perf_stereosgbm.cpp b/modules/calib3d/perf/perf_stereosgbm.cpp index ac3fdc40d7..4b54c2c908 100644 --- a/modules/calib3d/perf/perf_stereosgbm.cpp +++ b/modules/calib3d/perf/perf_stereosgbm.cpp @@ -11,7 +11,7 @@ * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met : * - * *Redistributions of source code must retain the above copyright notice, + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright notice, @@ -38,20 +38,20 @@ namespace cvtest { - -using std::tr1::tuple; -using std::tr1::get; using namespace perf; using namespace testing; -using namespace cv; -void MakeArtificialExample(RNG rng, Mat& dst_left_view, Mat& dst_view); +static void MakeArtificialExample(RNG rng, Mat& dst_left_view, Mat& dst_view); CV_ENUM(SGBMModes, StereoSGBM::MODE_SGBM, StereoSGBM::MODE_SGBM_3WAY, StereoSGBM::MODE_HH4); typedef tuple SGBMParams; typedef TestBaseWithParam TestStereoCorresp; +#ifndef _DEBUG PERF_TEST_P( TestStereoCorresp, SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) ) +#else +PERF_TEST_P( TestStereoCorresp, DISABLED_TooLongInDebug_SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) ) +#endif { RNG rng(0);