1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #26948 from mshabunin:fix-videoio-test-params

videoio: print test params instead of indexes #26948
_videoio_ test names changed - use string instead of index.
E.g. `videoio_read.threads/0` is now `videoio_read.threads/h264_0_RAW`.
It allows to filter tests independently of the platform.

**Notes:**
- not all tests has been updated - only simpler ones and those which have varying parameters depending on platform
This commit is contained in:
Maksim Shabunin
2025-02-26 14:04:37 +03:00
committed by GitHub
parent 39bc5df72a
commit 43551b72d7
7 changed files with 205 additions and 20 deletions
+8 -1
View File
@@ -218,7 +218,14 @@ static const string bunny_params[] = {
string("mjpg.avi")
};
INSTANTIATE_TEST_CASE_P(videoio, gstreamer_bunny, testing::ValuesIn(bunny_params));
inline static std::string gstreamer_bunny_name_printer(const testing::TestParamInfo<gstreamer_bunny::ParamType>& info)
{
std::ostringstream out;
out << extToStringSafe(info.param);
return out.str();
}
INSTANTIATE_TEST_CASE_P(videoio, gstreamer_bunny, testing::ValuesIn(bunny_params), gstreamer_bunny_name_printer);
}} // namespace