1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

ocl: skip unstable tests

during pre-commit testing
This commit is contained in:
Alexander Alekhin
2017-12-06 12:58:13 +03:00
parent 4781f0a337
commit 3a8a73ef6c
6 changed files with 30 additions and 0 deletions
+5
View File
@@ -694,11 +694,14 @@ void checkIppStatus()
}
}
bool skipUnstableTests = false;
void parseCustomOptions(int argc, char **argv)
{
const char * const command_line_keys =
"{ ipp test_ipp_check |false |check whether IPP works without failures }"
"{ test_seed |809564 |seed for random numbers generator }"
"{ skip_unstable |false |skip unstable tests }"
"{ h help |false |print help info }";
cv::CommandLineParser parser(argc, argv, command_line_keys);
@@ -717,6 +720,8 @@ void parseCustomOptions(int argc, char **argv)
#endif
param_seed = parser.get<unsigned int>("test_seed");
skipUnstableTests = parser.get<bool>("skip_unstable");
}
+3
View File
@@ -999,6 +999,7 @@ void TestBase::Init(const std::vector<std::string> & availableImpls,
"{ perf_cuda_device |0 |run CUDA test suite onto specific CUDA capable device}"
"{ perf_cuda_info_only |false |print an information about system and an available CUDA devices and then exit.}"
#endif
"{ skip_unstable |false |skip unstable tests }"
;
cv::CommandLineParser args(argc, argv, command_line_keys);
@@ -1097,6 +1098,8 @@ void TestBase::Init(const std::vector<std::string> & availableImpls,
exit(0);
#endif
skipUnstableTests = args.get<bool>("skip_unstable");
if (available_impls.size() > 1)
printf("[----------]\n[ INFO ] \tImplementation variant: %s.\n[----------]\n", param_impl.c_str()), fflush(stdout);