diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3d3a212e..865040d7 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -186,13 +186,19 @@ foreach(profile core all) list(REMOVE_ITEM profile_arguments "-DEXPECT_CLASSIFICATION_RECORDS=brightness|core|language runtime and math library only,colgate|unsupported-dynamic-loading|uses dynamic loading and is not portable to static hosts") list(APPEND profile_arguments "-DEXPECT_CLASSIFICATION_RECORDS=brightness|core|language runtime and math library only,cairoimagegrid|optional-cairo|requires Cairo,colgate|unsupported-dynamic-loading|uses dynamic loading and is not portable to static hosts") - list(APPEND profile_arguments -DEXPECT_TARGETS=cairoimagegrid,rgbparade) + if(WITHOUT_GAVL) + list(APPEND profile_arguments -DEXPECT_TARGETS=cairoimagegrid + -DEXPECT_NOT_TARGETS=rgbparade,vectorscope) + else() + list(APPEND profile_arguments -DEXPECT_TARGETS=cairoimagegrid,rgbparade) + endif() endif() add_test(NAME bundle-profile-${profile} COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_SOURCE_DIR} -DWORK_DIR=${CMAKE_CURRENT_BINARY_DIR}/bundle-profile-${profile} -DPROFILE=${profile} + -DWITHOUT_GAVL=${WITHOUT_GAVL} ${profile_arguments} -P ${CMAKE_CURRENT_SOURCE_DIR}/check-bundle-profile.cmake ) @@ -204,6 +210,7 @@ add_test(NAME bundle-profile-explicit -DPROFILE=core -DPLUGINS=brightness,cairoimagegrid -DNATIVE_DEPS=ON + -DWITHOUT_GAVL=${WITHOUT_GAVL} -DEXPECT_TARGETS=brightness,cairoimagegrid "-DEXPECT_CLASSIFICATION_RECORDS=brightness|core|language runtime and math library only,cairoimagegrid|optional-cairo|requires Cairo,colgate|unsupported-dynamic-loading|uses dynamic loading and is not portable to static hosts" -P ${CMAKE_CURRENT_SOURCE_DIR}/check-bundle-profile.cmake diff --git a/test/check-bundle-profile.cmake b/test/check-bundle-profile.cmake index 5ae2b79e..8ed57075 100644 --- a/test/check-bundle-profile.cmake +++ b/test/check-bundle-profile.cmake @@ -9,7 +9,8 @@ if(NOT NATIVE_DEPS) -DWITHOUT_OPENCV=ON -DWITHOUT_CAIRO=ON -DWITHOUT_GAVL=ON) else() list(APPEND configure_arguments - -DWITHOUT_OPENCV=OFF -DWITHOUT_CAIRO=OFF -DWITHOUT_GAVL=OFF) + -DWITHOUT_OPENCV=OFF -DWITHOUT_CAIRO=OFF + "-DWITHOUT_GAVL:BOOL=${WITHOUT_GAVL}") endif() if(DEFINED PLUGINS) string(REPLACE "," "\\;" plugins "${PLUGINS}")