Tests: Add sanity check test for Linux releases
This test does some rudimentary checks to see if the binaries and folder structure are ready for a release. Pull Request: https://projects.blender.org/blender/blender/pulls/130319
This commit is contained in:
committed by
Sebastian Parborg
parent
992c52ff1e
commit
ca1bf7928d
@@ -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
|
||||
|
||||
@@ -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)
|
||||
set(SYCL_OFFLINE_COMPILER_PARALLEL_JOBS 6 CACHE STRING "" FORCE)
|
||||
|
||||
set(WITH_LINUX_OFFICIAL_RELEASE_TESTS ON CACHE BOOL "" FORCE)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user