From 3ea9022c5f12dbe4c60c87ad9455c3357e049dae Mon Sep 17 00:00:00 2001 From: AsyaPronina <155jj@mail.ru> Date: Tue, 22 Sep 2020 15:24:40 +0300 Subject: [PATCH] Disabled failed test instantiations --- modules/gapi/test/cpu/gapi_core_tests_fluid.cpp | 27 +++++++++++++++++++++++-- modules/gapi/test/gpu/gapi_core_tests_gpu.cpp | 12 ++++++++++- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/modules/gapi/test/cpu/gapi_core_tests_fluid.cpp b/modules/gapi/test/cpu/gapi_core_tests_fluid.cpp index 18f106b..8162e01 100644 --- a/modules/gapi/test/cpu/gapi_core_tests_fluid.cpp +++ b/modules/gapi/test/cpu/gapi_core_tests_fluid.cpp @@ -24,12 +24,35 @@ INSTANTIATE_TEST_CASE_P(MathOpTestFluid, MathOpTest, cv::Size(128, 128)), Values(-1, CV_8U, CV_32F), Values(CORE_FLUID), - Values(ADD, SUB, DIV, MUL), + Values(DIV, MUL), testing::Bool(), Values(1.0), testing::Bool())); -INSTANTIATE_TEST_CASE_P(SubTestFluid, MathOpTest, +// FIXME: Accuracy test for SUB math operation fails on FullHD and HD CV_16SC1 input cv::Mat, +// double-presicion input cv::Scalar and CV_32FC1 output cv::Mat on Mac. +// Accuracy test for ADD math operation fails on HD CV_16SC1 input cv::Mat, +// double-presicion input cv::Scalar and CV_32FC1 output cv::Mat on Mac. +// As failures are sporadic, disabling all instantiation cases for SUB and ADD. +// Github ticket: https://github.com/opencv/opencv/issues/18373. +INSTANTIATE_TEST_CASE_P(DISABLED_MathOpTestFluid, MathOpTest, + Combine(Values(CV_8UC3, CV_8UC1, CV_16SC1, CV_32FC1), + Values(cv::Size(1920, 1080), + cv::Size(1280, 720), + cv::Size(640, 480), + cv::Size(128, 128)), + Values(-1, CV_8U, CV_32F), + Values(CORE_FLUID), + Values(ADD, SUB), + testing::Bool(), + Values(1.0), + testing::Bool())); + +// FIXME: Accuracy test for SUB math operation fails on CV_16SC1 input cv::Mat, double-presicion +// input cv::Scalar and CV_32FC1 output cv::Mat on Mac. +// As failures are sporadic, disabling all instantiation cases for SUB operation. +// Github ticket: https://github.com/opencv/opencv/issues/18373. +INSTANTIATE_TEST_CASE_P(DISABLED_SubTestFluid, MathOpTest, Combine(Values(CV_8UC1, CV_16SC1 , CV_32FC1), Values(cv::Size(1280, 720), cv::Size(640, 480), diff --git a/modules/gapi/test/gpu/gapi_core_tests_gpu.cpp b/modules/gapi/test/gpu/gapi_core_tests_gpu.cpp index 5b38722..35daed7 100644 --- a/modules/gapi/test/gpu/gapi_core_tests_gpu.cpp +++ b/modules/gapi/test/gpu/gapi_core_tests_gpu.cpp @@ -53,7 +53,17 @@ INSTANTIATE_TEST_CASE_P(SubTestGPU, MathOpTest, Values (1.0), testing::Bool())); -INSTANTIATE_TEST_CASE_P(DivTestGPU, MathOpTest, +// FIXME: Accuracy test for DIV math operation fails on CV_8UC3 HD input cv::Mat, double-presicion +// input cv::Scalar and CV_16U output cv::Mat when we also test reverse operation on Mac. +// Accuracy test for DIV math operation fails on CV_8UC3 VGA input cv::Mat, double-presicion +// input cv::Scalar and output cv::Mat having the SAME depth as input one when we also test +// reverse operation on Mac. +// It is oddly, but test doesn't fail if we have VGA CV_8UC3 input cv::Mat, double-precision +// input cv::Scalar and output cv::Mat having explicitly specified CV_8U depth when we also +// test reverse operation on Mac. +// As failures are sporadic, disabling all instantiation cases for DIV operation. +// Github ticket: https://github.com/opencv/opencv/issues/18373. +INSTANTIATE_TEST_CASE_P(DISABLED_DivTestGPU, MathOpTest, Combine(Values( CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1 ), Values(cv::Size(1280, 720), cv::Size(640, 480), -- 2.7.4