The goal of this test is to try to import some critical py scripts with the system python of the building machine. The main target is to ensure that these py scripts remain usable by all buildbot machines, as some of them are using fairly outdated python versions. Current status: * Scripts in `build_files` and `docs` are checked. * Some python scripts in `build_files` were 'reverted' to be compatible with older required python version currently (3.6). * A few scripts are excluded from the test, mostly because they use Blender's `bpy` module, which means they are only intended to be ran with Blender's python anyway. * The test is only enabled for Linux buildbots currently, as they use the oldest Python by far. Notes: * Some more scripts are likely to be moved around in the future. * Whether these tests need to be enabled on windows or macos platforms remains an open question. Pull Request: https://projects.blender.org/blender/blender/pulls/130746
26 lines
947 B
CMake
26 lines
947 B
CMake
# SPDX-FileCopyrightText: 2015-2022 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# ######## Global feature set settings ########
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_release.cmake")
|
|
|
|
message(STATUS "Building in Rocky 8 Linux 64bit environment")
|
|
|
|
# ######## Linux-specific build options ########
|
|
# Options which are specific to Linux-only platforms
|
|
|
|
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(WITH_LINUX_OFFICIAL_RELEASE_TESTS ON CACHE BOOL "" FORCE)
|
|
|
|
# Validate that some python scripts in out `build_files` and `docs` directories
|
|
# can be used with the builder's system python.
|
|
set(WITH_SYSTEM_PYTHON_TESTS ON CACHE BOOL "" FORCE)
|
|
set(TEST_SYSTEM_PYTHON_EXE "/usr/bin/python3.6" CACHE PATH "" FORCE)
|