Merge pull request #26580 from opencv-pushbot:gitee/alalek/videoio_test_filter_unstable_gstreamer

videoio(test): filter unstable GStreamer tests
This commit is contained in:
Alexander Smorkalov 2024-12-06 14:37:14 +03:00 committed by GitHub
commit 646e87c728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,6 +47,14 @@ public:
throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref));
if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265" || ext == "mpg"))
throw SkipTestException("Unstable MSMF test");
#ifdef __linux__
if (cvtest::skipUnstableTests && apiPref == CAP_GSTREAMER &&
(ext == "avi" || ext == "mkv") &&
(video_file.find("MPEG") != std::string::npos))
{
throw SkipTestException("Unstable GSTREAMER test");
}
#endif
writeVideo();
VideoCapture cap;
ASSERT_NO_THROW(cap.open(video_file, apiPref));
@ -852,6 +860,13 @@ TEST_P(videowriter_acceleration, write)
std::string backend_name = cv::videoio_registry::getBackendName(backend);
if (!videoio_registry::hasBackend(backend))
throw SkipTestException(cv::String("Backend is not available/disabled: ") + backend_name);
#ifdef __linux__
if (cvtest::skipUnstableTests && backend == CAP_GSTREAMER &&
(extension == "mkv") && (codecid == "MPEG"))
{
throw SkipTestException("Unstable GSTREAMER test");
}
#endif
const Size sz(640, 480);
const int frameNum = 15;