build: disable aub tests compilation by default

aub tests compilation can be enabled with cmake flag NEO_SKIP_AUB_TESTS=0
aub tests execution can be enabled with cmake flag NEO_SKIP_AUB_TEST_RUN=0
enabled aub tests execution forces compilation of aub tests targets

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-03-27 14:11:37 +00:00
committed by Compute-Runtime-Automation
parent c3546f9e62
commit 6095efa7d3
7 changed files with 26 additions and 13 deletions

View File

@@ -256,10 +256,21 @@ if(NEO_SKIP_UNIT_TESTS)
set(NEO_SKIP_L0_BLACK_BOX_TESTS TRUE)
endif()
if(DEFINED DO_NOT_RUN_AUB_TESTS)
set(NEO_SKIP_AUB_TEST_RUN ${DO_NOT_RUN_AUB_TESTS})
if(NOT DEFINED NEO_SKIP_AUB_TESTS_RUN)
set(NEO_SKIP_AUB_TESTS_RUN TRUE)
endif()
if(NOT DEFINED NEO_SKIP_AUB_TESTS)
set(NEO_SKIP_AUB_TESTS TRUE)
endif()
if(NOT NEO_SKIP_AUB_TESTS_RUN)
set(NEO_SKIP_AUB_TESTS FALSE)
endif()
message(STATUS "NEO_SKIP_AUB_TESTS: ${NEO_SKIP_AUB_TESTS}")
message(STATUS "NEO_SKIP_AUB_TESTS_RUN: ${NEO_SKIP_AUB_TESTS_RUN}")
# Set our build directory
if(NOT DEFINED NEO_BUILD_DIR)
set(NEO_BUILD_DIR ${CMAKE_BINARY_DIR})