Skip to content

Commit

Permalink
tests: Make ImageWriter tests optional (#659)
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 Apr 19, 2021
1 parent 7a6ff7c commit 51dde66
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/CMakeLists.txt
Expand Up @@ -48,8 +48,6 @@ set(OPENSHOT_TESTS
Color
Coordinate
DummyReader
ReaderBase
ImageWriter
FFmpegReader
FFmpegWriter
Fraction
Expand All @@ -58,14 +56,20 @@ set(OPENSHOT_TESTS
KeyFrame
Point
QtImageReader
ReaderBase
Settings
Timeline
)

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

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

0 comments on commit 51dde66

Please sign in to comment.