1 /*M///////////////////////////////////////////////////////////////////////////////////////
3 // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
5 // By downloading, copying, installing or using the software you agree to this license.
6 // If you do not agree to this license, do not download, install,
7 // copy or use the software.
10 // Intel License Agreement
11 // For Open Source Computer Vision Library
13 // Copyright (C) 2000, Intel Corporation, all rights reserved.
14 // Third party copyrights are property of their respective owners.
16 // Redistribution and use in source and binary forms, with or without modification,
17 // are permitted provided that the following conditions are met:
19 // * Redistribution's of source code must retain the above copyright notice,
20 // this list of conditions and the following disclaimer.
22 // * Redistribution's in binary form must reproduce the above copyright notice,
23 // this list of conditions and the following disclaimer in the documentation
24 // and/or other materials provided with the distribution.
26 // * The name of Intel Corporation may not be used to endorse or promote products
27 // derived from this software without specific prior written permission.
29 // This software is provided by the copyright holders and contributors "as is" and
30 // any express or implied warranties, including, but not limited to, the implied
31 // warranties of merchantability and fitness for a particular purpose are disclaimed.
32 // In no event shall the Intel Corporation or contributors be liable for any direct,
33 // indirect, incidental, special, exemplary, or consequential damages
34 // (including, but not limited to, procurement of substitute goods or services;
35 // loss of use, data, or profits; or business interruption) however caused
36 // and on any theory of liability, whether in contract, strict liability,
37 // or tort (including negligence or otherwise) arising in any way out of
38 // the use of this software, even if advised of the possibility of such damage.
42 #include "precomp.hpp"
43 #include "opencv2/core/core_c.h"
70 #if defined _WIN32 || defined WINCE
74 # include <sys/stat.h>
79 #define DUMP_CONFIG_PROPERTY(propertyName, propertyValue) \
81 std::stringstream ssName, ssValue;\
82 ssName << propertyName;\
83 ssValue << (propertyValue); \
84 ::testing::Test::RecordProperty(ssName.str(), ssValue.str()); \
87 #define DUMP_MESSAGE_STDOUT(msg) \
89 std::cout << msg << std::endl; \
92 #include "opencv2/core/opencl/opencl_info.hpp"
96 #include "opencv2/core/utility.hpp"
97 #include "opencv_tests_config.hpp"
99 namespace opencv_test {
100 bool required_opencv_test_namespace = false; // compilation check for non-refactored tests
106 uint64 param_seed = 0x12345678; // real value is passed via parseCustomOptions function
108 static std::string path_join(const std::string& prefix, const std::string& subpath)
110 CV_Assert(subpath.empty() || subpath[0] != '/');
113 bool skipSlash = prefix.size() > 0 ? (prefix[prefix.size()-1] == '/' || prefix[prefix.size()-1] == '\\') : false;
114 std::string path = prefix + (skipSlash ? "" : "/") + subpath;
120 /*****************************************************************************************\
121 * Exception and memory handlers *
122 \*****************************************************************************************/
124 // a few platform-dependent declarations
128 static void SEHTranslator( unsigned int /*u*/, EXCEPTION_POINTERS* pExp )
130 TS::FailureCode code = TS::FAIL_EXCEPTION;
131 switch( pExp->ExceptionRecord->ExceptionCode )
133 case EXCEPTION_ACCESS_VIOLATION:
134 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
135 case EXCEPTION_DATATYPE_MISALIGNMENT:
136 case EXCEPTION_FLT_STACK_CHECK:
137 case EXCEPTION_STACK_OVERFLOW:
138 case EXCEPTION_IN_PAGE_ERROR:
139 code = TS::FAIL_MEMORY_EXCEPTION;
141 case EXCEPTION_FLT_DENORMAL_OPERAND:
142 case EXCEPTION_FLT_DIVIDE_BY_ZERO:
143 case EXCEPTION_FLT_INEXACT_RESULT:
144 case EXCEPTION_FLT_INVALID_OPERATION:
145 case EXCEPTION_FLT_OVERFLOW:
146 case EXCEPTION_FLT_UNDERFLOW:
147 case EXCEPTION_INT_DIVIDE_BY_ZERO:
148 case EXCEPTION_INT_OVERFLOW:
149 code = TS::FAIL_ARITHM_EXCEPTION;
151 case EXCEPTION_BREAKPOINT:
152 case EXCEPTION_ILLEGAL_INSTRUCTION:
153 case EXCEPTION_INVALID_DISPOSITION:
154 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
155 case EXCEPTION_PRIV_INSTRUCTION:
156 case EXCEPTION_SINGLE_STEP:
157 code = TS::FAIL_EXCEPTION;
165 static const int tsSigId[] = { SIGSEGV, SIGBUS, SIGFPE, SIGILL, SIGABRT, -1 };
167 static jmp_buf tsJmpMark;
169 static void signalHandler( int sig_code )
171 TS::FailureCode code = TS::FAIL_EXCEPTION;
175 code = TS::FAIL_ARITHM_EXCEPTION;
179 code = TS::FAIL_ARITHM_EXCEPTION;
182 code = TS::FAIL_EXCEPTION;
185 longjmp( tsJmpMark, (int)code );
191 // reads 16-digit hexadecimal number (i.e. 64-bit integer)
192 int64 readSeed( const char* str )
195 if( str && strlen(str) == 16 )
197 for( int i = 0; str[i]; i++ )
199 int c = tolower(str[i]);
203 (str[i] < 'a' ? str[i] - '0' : str[i] - 'a' + 10);
210 /*****************************************************************************************\
211 * Base Class for Tests *
212 \*****************************************************************************************/
217 test_case_count = -1;
220 BaseTest::~BaseTest()
225 void BaseTest::clear()
230 cv::FileNode BaseTest::find_param( const cv::FileStorage& fs, const char* param_name )
232 cv::FileNode node = fs[get_name()];
233 return node[param_name];
237 int BaseTest::read_params( const cv::FileStorage& )
243 bool BaseTest::can_do_fast_forward()
249 void BaseTest::safe_run( int start_from )
252 ts->update_context( 0, -1, true );
253 ts->update_context( this, -1, true );
255 if( !::testing::GTEST_FLAG(catch_exceptions) )
262 int _code = setjmp( tsJmpMark );
266 throw TS::FailureCode(_code);
271 catch (const cv::Exception& exc)
273 const char* errorStr = cvErrorStr(exc.code);
276 const char* delim = exc.err.find('\n') == cv::String::npos ? "" : "\n";
277 sprintf( buf, "OpenCV Error:\n\t%s (%s%s) in %s, file %s, line %d",
278 errorStr, delim, exc.err.c_str(), exc.func.size() > 0 ?
279 exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
280 ts->printf(TS::LOG, "%s\n", buf);
282 ts->set_failed_test_info( TS::FAIL_ERROR_IN_CALLED_FUNC );
284 catch (const TS::FailureCode& fc)
286 std::string errorStr = TS::str_from_code(fc);
287 ts->printf(TS::LOG, "General failure:\n\t%s (%d)\n", errorStr.c_str(), fc);
289 ts->set_failed_test_info( fc );
293 ts->printf(TS::LOG, "Unknown failure\n");
295 ts->set_failed_test_info( TS::FAIL_EXCEPTION );
299 ts->set_gtest_status();
303 void BaseTest::run( int start_from )
305 int test_case_idx, count = get_test_case_count();
306 int64 t_start = cvGetTickCount();
307 double freq = cv::getTickFrequency();
308 bool ff = can_do_fast_forward();
309 int progress = 0, code;
312 for( test_case_idx = ff && start_from >= 0 ? start_from : 0;
313 count < 0 || test_case_idx < count; test_case_idx++ )
315 ts->update_context( this, test_case_idx, ff );
316 progress = update_progress( progress, test_case_idx, count, (double)(t1 - t_start)/(freq*1000) );
318 code = prepare_test_case( test_case_idx );
319 if( code < 0 || ts->get_err_code() < 0 )
327 if( ts->get_err_code() < 0 )
330 if( validate_test_results( test_case_idx ) < 0 || ts->get_err_code() < 0 )
336 void BaseTest::run_func(void)
342 int BaseTest::get_test_case_count(void)
344 return test_case_count;
348 int BaseTest::prepare_test_case( int )
354 int BaseTest::validate_test_results( int )
360 int BaseTest::update_progress( int progress, int test_case_idx, int count, double dt )
362 int width = 60 - (int)get_name().size();
365 int t = cvRound( ((double)test_case_idx * width)/count );
368 ts->printf( TS::CONSOLE, "." );
372 else if( cvRound(dt) > progress )
374 ts->printf( TS::CONSOLE, "." );
375 progress = cvRound(dt);
382 BadArgTest::BadArgTest()
386 // oldErrorCbkData = 0;
389 BadArgTest::~BadArgTest(void)
393 int BadArgTest::run_test_case( int expected_code, const string& _descr )
397 const char* descr = _descr.c_str() ? _descr.c_str() : "";
403 catch(const cv::Exception& e)
406 if (e.code != expected_code &&
407 e.code != cv::Error::StsError && e.code != cv::Error::StsAssert // Exact error codes support will be dropped. Checks should provide proper text messages intead.
410 ts->printf(TS::LOG, "%s (test case #%d): the error code %d is different from the expected %d\n",
411 descr, test_case_idx, e.code, expected_code);
418 ts->printf(TS::LOG, "%s (test case #%d): unknown exception was thrown (the function has likely crashed)\n",
419 descr, test_case_idx);
425 ts->printf(TS::LOG, "%s (test case #%d): no expected exception was thrown\n",
426 descr, test_case_idx);
434 /*****************************************************************************************\
435 * Base Class for Test System *
436 \*****************************************************************************************/
438 /******************************** Constructors/Destructors ******************************/
442 rng_seed = (uint64)-1;
443 use_optimized = true;
444 test_case_count_scale = 1;
452 rng_seed = rng_seed0 = 0;
467 string TS::str_from_code( const TS::FailureCode code )
471 case OK: return "Ok";
472 case FAIL_GENERIC: return "Generic/Unknown";
473 case FAIL_MISSING_TEST_DATA: return "No test data";
474 case FAIL_INVALID_TEST_DATA: return "Invalid test data";
475 case FAIL_ERROR_IN_CALLED_FUNC: return "cvError invoked";
476 case FAIL_EXCEPTION: return "Hardware/OS exception";
477 case FAIL_MEMORY_EXCEPTION: return "Invalid memory access";
478 case FAIL_ARITHM_EXCEPTION: return "Arithmetic exception";
479 case FAIL_MEMORY_CORRUPTION_BEGIN: return "Corrupted memblock (beginning)";
480 case FAIL_MEMORY_CORRUPTION_END: return "Corrupted memblock (end)";
481 case FAIL_MEMORY_LEAK: return "Memory leak";
482 case FAIL_INVALID_OUTPUT: return "Invalid function output";
483 case FAIL_MISMATCH: return "Unexpected output";
484 case FAIL_BAD_ACCURACY: return "Bad accuracy";
485 case FAIL_HANG: return "Infinite loop(?)";
486 case FAIL_BAD_ARG_CHECK: return "Incorrect handling of bad arguments";
490 return "Generic/Unknown";
493 static int tsErrorCallback( int status, const char* func_name, const char* err_msg, const char* file_name, int line, TS* ts )
495 const char* delim = std::string(err_msg).find('\n') == std::string::npos ? "" : "\n";
496 ts->printf(TS::LOG, "OpenCV Error:\n\t%s (%s%s) in %s, file %s, line %d\n", cvErrorStr(status), delim, err_msg, func_name[0] != 0 ? func_name : "unknown function", file_name, line);
500 /************************************** Running tests **********************************/
502 void TS::init( const string& modulename )
504 data_search_subdir.push_back(modulename);
506 char* datapath_dir = getenv("OPENCV_TEST_DATA_PATH");
508 char* datapath_dir = OPENCV_TEST_DATA_PATH;
513 data_path = path_join(path_join(datapath_dir, modulename), "");
516 cv::redirectError((cv::ErrorCallback)tsErrorCallback, this);
518 if( ::testing::GTEST_FLAG(catch_exceptions) )
522 _set_se_translator( SEHTranslator );
525 for( int i = 0; tsSigId[i] >= 0; i++ )
526 signal( tsSigId[i], signalHandler );
533 _set_se_translator( 0 );
536 for( int i = 0; tsSigId[i] >= 0; i++ )
537 signal( tsSigId[i], SIG_DFL );
541 if( params.use_optimized == 0 )
542 cv::setUseOptimized(false);
544 rng = RNG(params.rng_seed);
548 void TS::set_gtest_status()
550 TS::FailureCode code = get_err_code();
555 sprintf(seedstr, "%08x%08x", (unsigned)(current_test_info.rng_seed>>32),
556 (unsigned)(current_test_info.rng_seed));
559 if( !output_buf[SUMMARY_IDX].empty() )
560 logs += "\n-----------------------------------\n\tSUM: " + output_buf[SUMMARY_IDX];
561 if( !output_buf[LOG_IDX].empty() )
562 logs += "\n-----------------------------------\n\tLOG:\n" + output_buf[LOG_IDX];
563 if( !output_buf[CONSOLE_IDX].empty() )
564 logs += "\n-----------------------------------\n\tCONSOLE: " + output_buf[CONSOLE_IDX];
565 logs += "\n-----------------------------------\n";
567 FAIL() << "\n\tfailure reason: " << str_from_code(code) <<
568 "\n\ttest case #" << current_test_info.test_case_idx <<
569 "\n\tseed: " << seedstr << logs;
573 void TS::update_context( BaseTest* test, int test_case_idx, bool update_ts_context )
575 if( current_test_info.test != test )
577 for( int i = 0; i <= CONSOLE_IDX; i++ )
578 output_buf[i] = string();
579 rng = RNG(params.rng_seed);
580 current_test_info.rng_seed0 = current_test_info.rng_seed = rng.state;
583 current_test_info.test = test;
584 current_test_info.test_case_idx = test_case_idx;
585 current_test_info.code = 0;
586 cvSetErrStatus( CV_StsOk );
587 if( update_ts_context )
588 current_test_info.rng_seed = rng.state;
592 void TS::set_failed_test_info( int fail_code )
594 if( current_test_info.code >= 0 )
595 current_test_info.code = TS::FailureCode(fail_code);
598 #if defined _MSC_VER && _MSC_VER < 1400
600 #define vsnprintf _vsnprintf
603 void TS::vprintf( int streams, const char* fmt, va_list l )
606 vsnprintf( str, sizeof(str)-1, fmt, l );
608 for( int i = 0; i < MAX_IDX; i++ )
609 if( (streams & (1 << i)) )
611 output_buf[i] += std::string(str);
612 // in the new GTest-based framework we do not use
613 // any output files (except for the automatically generated xml report).
614 // if a test fails, all the buffers are printed, so we do not want to duplicate the information and
615 // thus only add the new information to a single buffer and return from the function.
621 void TS::printf( int streams, const char* fmt, ... )
627 vprintf( streams, fmt, l );
639 void fillGradient(Mat& img, int delta)
641 const int ch = img.channels();
642 CV_Assert(!img.empty() && img.depth() == CV_8U && ch <= 4);
646 for(r=0; r<img.rows; r++)
649 int valR = (kR<=n) ? delta*kR : delta*(2*n-kR);
650 for(c=0; c<img.cols; c++)
653 int valC = (kC<=n) ? delta*kC : delta*(2*n-kC);
654 uchar vals[] = {uchar(valR), uchar(valC), uchar(200*r/img.rows), uchar(255)};
655 uchar *p = img.ptr(r, c);
656 for(i=0; i<ch; i++) p[i] = vals[i];
661 void smoothBorder(Mat& img, const Scalar& color, int delta)
663 const int ch = img.channels();
664 CV_Assert(!img.empty() && img.depth() == CV_8U && ch <= 4);
669 int nR = std::min(n, (img.rows+1)/2), nC = std::min(n, (img.cols+1)/2);
674 double k1 = r*delta/100., k2 = 1-k1;
675 for(c=0; c<img.cols; c++)
678 for(i=0; i<ch; i++) s[i] = p[i];
679 s = s * k1 + color * k2;
680 for(i=0; i<ch; i++) p[i] = uchar(s[i]);
682 for(c=0; c<img.cols; c++)
684 p = img.ptr(img.rows-r-1, c);
685 for(i=0; i<ch; i++) s[i] = p[i];
686 s = s * k1 + color * k2;
687 for(i=0; i<ch; i++) p[i] = uchar(s[i]);
691 for(r=0; r<img.rows; r++)
695 double k1 = c*delta/100., k2 = 1-k1;
697 for(i=0; i<ch; i++) s[i] = p[i];
698 s = s * k1 + color * k2;
699 for(i=0; i<ch; i++) p[i] = uchar(s[i]);
703 double k1 = c*delta/100., k2 = 1-k1;
704 p = img.ptr(r, img.cols-c-1);
705 for(i=0; i<ch; i++) s[i] = p[i];
706 s = s * k1 + color * k2;
707 for(i=0; i<ch; i++) p[i] = uchar(s[i]);
713 bool test_ipp_check = false;
715 void checkIppStatus()
719 int status = cv::ipp::getIppStatus();
720 EXPECT_LE(0, status) << cv::ipp::getIppErrorLocation().c_str();
724 static bool checkTestData = false;
725 bool skipUnstableTests = false;
726 bool runBigDataTests = false;
729 void parseCustomOptions(int argc, char **argv)
731 const char * const command_line_keys =
732 "{ ipp test_ipp_check |false |check whether IPP works without failures }"
733 "{ test_seed |809564 |seed for random numbers generator }"
734 "{ test_threads |-1 |the number of worker threads, if parallel execution is enabled}"
735 "{ skip_unstable |false |skip unstable tests }"
736 "{ test_bigdata |false |run BigData tests (>=2Gb) }"
737 "{ test_require_data |false |fail on missing non-required test data instead of skip}"
738 "{ h help |false |print help info }";
740 cv::CommandLineParser parser(argc, argv, command_line_keys);
741 if (parser.get<bool>("help"))
743 std::cout << "\nAvailable options besides google test option: \n";
744 parser.printMessage();
747 test_ipp_check = parser.get<bool>("test_ipp_check");
750 test_ipp_check = getenv("OPENCV_IPP_CHECK") != NULL;
752 test_ipp_check = false;
755 param_seed = parser.get<unsigned int>("test_seed");
757 testThreads = parser.get<int>("test_threads");
759 skipUnstableTests = parser.get<bool>("skip_unstable");
760 runBigDataTests = parser.get<bool>("test_bigdata");
761 checkTestData = parser.get<bool>("test_require_data");
765 static bool isDirectory(const std::string& path)
767 #if defined _WIN32 || defined WINCE
768 WIN32_FILE_ATTRIBUTE_DATA all_attrs;
770 wchar_t wpath[MAX_PATH];
771 size_t copied = mbstowcs(wpath, path.c_str(), MAX_PATH);
772 CV_Assert((copied != MAX_PATH) && (copied != (size_t)-1));
773 BOOL status = ::GetFileAttributesExW(wpath, GetFileExInfoStandard, &all_attrs);
775 BOOL status = ::GetFileAttributesExA(path.c_str(), GetFileExInfoStandard, &all_attrs);
777 DWORD attributes = all_attrs.dwFileAttributes;
778 return status && ((attributes & FILE_ATTRIBUTE_DIRECTORY) != 0);
781 if (0 != stat(path.c_str(), &s))
783 return S_ISDIR(s.st_mode);
787 void addDataSearchPath(const std::string& path)
789 if (isDirectory(path))
790 TS::ptr()->data_search_path.push_back(path);
792 void addDataSearchSubDirectory(const std::string& subdir)
794 TS::ptr()->data_search_subdir.push_back(subdir);
797 static std::string findData(const std::string& relative_path, bool required, bool findDirectory)
799 #define TEST_TRY_FILE_WITH_PREFIX(prefix) \
801 std::string path = path_join(prefix, relative_path); \
802 /*printf("Trying %s\n", path.c_str());*/ \
805 if (isDirectory(path)) \
810 FILE* f = fopen(path.c_str(), "rb"); \
818 const std::vector<std::string>& search_path = TS::ptr()->data_search_path;
819 for(size_t i = search_path.size(); i > 0; i--)
821 const std::string& prefix = search_path[i - 1];
822 TEST_TRY_FILE_WITH_PREFIX(prefix);
825 const std::vector<std::string>& search_subdir = TS::ptr()->data_search_subdir;
828 char* datapath_dir = getenv("OPENCV_TEST_DATA_PATH");
830 char* datapath_dir = OPENCV_TEST_DATA_PATH;
833 std::string datapath;
836 datapath = datapath_dir;
837 //CV_Assert(isDirectory(datapath) && "OPENCV_TEST_DATA_PATH is specified but it doesn't exist");
838 if (isDirectory(datapath))
840 for(size_t i = search_subdir.size(); i > 0; i--)
842 const std::string& subdir = search_subdir[i - 1];
843 std::string prefix = path_join(datapath, subdir);
844 TEST_TRY_FILE_WITH_PREFIX(prefix);
848 #ifdef OPENCV_TEST_DATA_INSTALL_PATH
849 datapath = path_join("./", OPENCV_TEST_DATA_INSTALL_PATH);
850 if (isDirectory(datapath))
852 for(size_t i = search_subdir.size(); i > 0; i--)
854 const std::string& subdir = search_subdir[i - 1];
855 std::string prefix = path_join(datapath, subdir);
856 TEST_TRY_FILE_WITH_PREFIX(prefix);
859 #ifdef OPENCV_INSTALL_PREFIX
862 datapath = path_join(OPENCV_INSTALL_PREFIX, OPENCV_TEST_DATA_INSTALL_PATH);
863 if (isDirectory(datapath))
865 for(size_t i = search_subdir.size(); i > 0; i--)
867 const std::string& subdir = search_subdir[i - 1];
868 std::string prefix = path_join(datapath, subdir);
869 TEST_TRY_FILE_WITH_PREFIX(prefix);
875 const char* type = findDirectory ? "directory" : "data file";
876 if (required || checkTestData)
877 CV_Error(cv::Error::StsError, cv::format("OpenCV tests: Can't find required %s: %s", type, relative_path.c_str()));
878 throw SkipTestException(cv::format("OpenCV tests: Can't find %s: %s", type, relative_path.c_str()));
881 std::string findDataFile(const std::string& relative_path, bool required)
883 return findData(relative_path, required, false);
886 std::string findDataDirectory(const std::string& relative_path, bool required)
888 return findData(relative_path, required, true);
891 inline static std::string getSnippetFromConfig(const std::string & start, const std::string & end)
893 const std::string buildInfo = cv::getBuildInformation();
894 size_t pos1 = buildInfo.find(start);
895 if (pos1 != std::string::npos)
897 pos1 += start.length();
898 pos1 = buildInfo.find_first_not_of(" \t\n\r", pos1);
900 size_t pos2 = buildInfo.find(end, pos1);
901 if (pos2 != std::string::npos)
903 pos2 = buildInfo.find_last_not_of(" \t\n\r", pos2);
905 if (pos1 != std::string::npos && pos2 != std::string::npos && pos1 < pos2)
907 return buildInfo.substr(pos1, pos2 - pos1 + 1);
909 return std::string();
912 inline static void recordPropertyVerbose(const std::string & property,
913 const std::string & msg,
914 const std::string & value,
915 const std::string & build_value = std::string())
917 ::testing::Test::RecordProperty(property, value);
918 std::cout << msg << ": " << (value.empty() ? std::string("N/A") : value) << std::endl;
919 if (!build_value.empty())
921 ::testing::Test::RecordProperty(property + "_build", build_value);
922 if (build_value != value)
923 std::cout << "WARNING: build value differs from runtime: " << build_value << endl;
927 inline static void recordPropertyVerbose(const std::string& property, const std::string& msg,
928 const char* value, const char* build_value = NULL)
930 return recordPropertyVerbose(property, msg,
931 value ? std::string(value) : std::string(),
932 build_value ? std::string(build_value) : std::string());
936 #define CV_TEST_BUILD_CONFIG "Debug"
938 #define CV_TEST_BUILD_CONFIG "Release"
941 void SystemInfoCollector::OnTestProgramStart(const testing::UnitTest&)
943 std::cout << "CTEST_FULL_OUTPUT" << std::endl; // Tell CTest not to discard any output
944 recordPropertyVerbose("cv_version", "OpenCV version", cv::getVersionString(), CV_VERSION);
945 recordPropertyVerbose("cv_vcs_version", "OpenCV VCS version", getSnippetFromConfig("Version control:", "\n"));
946 recordPropertyVerbose("cv_build_type", "Build type", getSnippetFromConfig("Configuration:", "\n"), CV_TEST_BUILD_CONFIG);
947 recordPropertyVerbose("cv_compiler", "Compiler", getSnippetFromConfig("C++ Compiler:", "\n"));
948 recordPropertyVerbose("cv_parallel_framework", "Parallel framework", cv::currentParallelFramework());
949 recordPropertyVerbose("cv_cpu_features", "CPU features", cv::getCPUFeaturesLine());
951 recordPropertyVerbose("cv_ipp_version", "Intel(R) IPP version", cv::ipp::useIPP() ? cv::ipp::getIppVersion() : "disabled");
954 cv::dumpOpenCLInformation();