diff --git a/CMakeLists.txt b/CMakeLists.txt index ebec245e6aa..97596dbee8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -835,9 +835,17 @@ Currently this depends on WITH_GHOST_WAYLAND and the weston compositor \ (Experimental)" OFF ) + option(WITH_LINUX_OFFICIAL_RELEASE_TESTS "\ +Enable sanity check tests for the linux official release. \ +These test are only relevant for checking that our offical Linux releases are portable and \ +packaged properly. For example that we don't link to any unexpected system libraries." + OFF + ) else() # TODO: support running GUI tests on other platforms. set(WITH_UI_TESTS OFF) + # TODO: We should probaby add more sanity checks for Windows and Mac as well + set(WITH_LINUX_OFFICIAL_RELEASE_TESTS OFF) endif() # Enabled by default for typical use cases to speed up development cycles. However, when looking diff --git a/build_files/buildbot/config/blender_linux.cmake b/build_files/buildbot/config/blender_linux.cmake index 1109c08eb18..2c70e98f552 100644 --- a/build_files/buildbot/config/blender_linux.cmake +++ b/build_files/buildbot/config/blender_linux.cmake @@ -15,4 +15,6 @@ set(WITH_DOC_MANPAGE OFF CACHE BOOL "" FORCE) set(WITH_CYCLES_TEST_OSL ON CACHE BOOL "" FORCE) set(HIPRT_COMPILER_PARALLEL_JOBS 6 CACHE STRING "" FORCE) -set(SYCL_OFFLINE_COMPILER_PARALLEL_JOBS 6 CACHE STRING "" FORCE) \ No newline at end of file +set(SYCL_OFFLINE_COMPILER_PARALLEL_JOBS 6 CACHE STRING "" FORCE) + +set(WITH_LINUX_OFFICIAL_RELEASE_TESTS ON CACHE BOOL "" FORCE) diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index ff5d2f69b07..ac006aa9a55 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -1167,3 +1167,16 @@ add_subdirectory(collada) # TODO: disabled for now after collection unification # add_subdirectory(view_layer) + +# ------------------------------------------------------------------------------ +# Linux Release sainty checks + +if(WITH_LINUX_OFFICIAL_RELEASE_TESTS) + cmake_path(GET TEST_BLENDER_EXE PARENT_PATH release_root_folder) + add_python_test( + linux_release_sanity_checks + ${CMAKE_SOURCE_DIR}/tools/check_blender_release/check_release.py + -- ${release_root_folder} + ) + unset(release_root_folder) +endif()