Rewritten some tests in videoio and imgcodecs modules
authorMaksim Shabunin <maksim.shabunin@gmail.com>
Tue, 6 Jun 2017 17:22:30 +0000 (20:22 +0300)
committerMaksim Shabunin <maksim.shabunin@gmail.com>
Tue, 20 Jun 2017 15:20:41 +0000 (18:20 +0300)
commit87b569d8127fe68e15a3f1ae91fb55e0e21b7afb
tree02239951d25bad29b1d10fda32b454800693075f
parent8b664d61221d8fef9a1f2cab2c69d9481dbca5d7
Rewritten some tests in videoio and imgcodecs modules

general:
- all iterative tests have been replaced with parameterized tests
- old-style try..catch tests have been modified to use EXPECT_/ASSERT_ gtest macros
- added temporary files cleanup
- modified MatComparator error message formatting

imgcodecs:
- test_grfmt.cpp split to test_jpg.cpp, test_png.cpp, test_tiff.cpp, etc.

videoio:
- added public HAVE_VIDEO_INPUT, HAVE_VIDEO_OUTPUT definitions to cvconfig.h
- built-in MotionJPEG codec could not be tested on some platforms (read_write test was disabled if ffmpeg is off, encoding/decoding was handled by ffmpeg otherwise).
- image-related tests moved to imgcodecs (Videoio_Image)
- several property get/set tests have been combined into one
- added MotionJPEG test video to opencv_extra
28 files changed:
cmake/templates/cvconfig.h.in
modules/cudabgsegm/perf/perf_bgsegm.cpp
modules/cudabgsegm/test/test_bgsegm.cpp
modules/cudacodec/perf/perf_video.cpp
modules/cudalegacy/perf/perf_bgsegm.cpp
modules/imgcodecs/test/test_grfmt.cpp
modules/imgcodecs/test/test_jpeg.cpp [new file with mode: 0644]
modules/imgcodecs/test/test_png.cpp [new file with mode: 0644]
modules/imgcodecs/test/test_precomp.hpp
modules/imgcodecs/test/test_read_write.cpp [new file with mode: 0644]
modules/imgcodecs/test/test_tiff.cpp [new file with mode: 0644]
modules/imgcodecs/test/test_webp.cpp [new file with mode: 0644]
modules/superres/test/test_precomp.hpp
modules/superres/test/test_superres.cpp
modules/ts/src/ts_func.cpp
modules/video/perf/opencl/perf_bgfg_mog2.cpp
modules/video/test/ocl/test_bgfg_mog2.cpp
modules/videoio/perf/perf_input.cpp
modules/videoio/perf/perf_output.cpp
modules/videoio/perf/perf_precomp.hpp
modules/videoio/src/cap.cpp
modules/videoio/src/precomp.hpp
modules/videoio/test/test_basic_props.cpp [deleted file]
modules/videoio/test/test_framecount.cpp [deleted file]
modules/videoio/test/test_positioning.cpp [deleted file]
modules/videoio/test/test_precomp.hpp
modules/videoio/test/test_video_io.cpp
modules/videoio/test/test_video_pos.cpp [deleted file]