Skip to content

Commit

Permalink
tests: Make ImageWriter tests optional (#685)
Browse files Browse the repository at this point in the history
Just like the OpenCV tests require OpenCV, the ImageWriter tests
require that ImageMagick be enabled in the build. If it isn't,
skip those tests.
  • Loading branch information
ferdnyc committed Jun 7, 2021
1 parent 403d9a6 commit d9ea98e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/CMakeLists.txt
Expand Up @@ -53,8 +53,6 @@ set(OPENSHOT_TESTS
Color
Coordinate
DummyReader
ReaderBase
ImageWriter
FFmpegReader
FFmpegWriter
Fraction
Expand All @@ -63,14 +61,20 @@ set(OPENSHOT_TESTS
KeyFrame
Point
QtImageReader
ReaderBase
Settings
Timeline
)

###
### OPENCV RELATED TEST FILES
###
if(ENABLE_OPENCV)
# ImageMagick related test files
if($CACHE{HAVE_IMAGEMAGICK})
list(APPEND OPENSHOT_TESTS
ImageWriter
)
endif()

# OPENCV RELATED TEST FILES
if($CACHE{HAVE_OPENCV})
list(APPEND OPENSHOT_TESTS
CVTracker
CVStabilizer
Expand Down

0 comments on commit d9ea98e

Please sign in to comment.