mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-14 18:30:19 +00:00
Let symbol export tests respect SPIRV_SKIP_TESTS
This commit is contained in:
parent
30a9cefa1d
commit
4926f295b1
@ -170,13 +170,17 @@ find_host_package(PythonInterp)
|
|||||||
|
|
||||||
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
||||||
macro(spvtools_check_symbol_exports TARGET)
|
macro(spvtools_check_symbol_exports TARGET)
|
||||||
add_test(NAME spirv-tools-symbol-exports-${TARGET}
|
if (NOT "${SPIRV_SKIP_TESTS}")
|
||||||
COMMAND ${PYTHON_EXECUTABLE}
|
add_test(NAME spirv-tools-symbol-exports-${TARGET}
|
||||||
${spirv-tools_SOURCE_DIR}/utils/check_symbol_exports.py "$<TARGET_FILE:${TARGET}>")
|
COMMAND ${PYTHON_EXECUTABLE}
|
||||||
|
${spirv-tools_SOURCE_DIR}/utils/check_symbol_exports.py "$<TARGET_FILE:${TARGET}>")
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
else()
|
else()
|
||||||
macro(spvtools_check_symbol_exports TARGET)
|
macro(spvtools_check_symbol_exports TARGET)
|
||||||
message("Skipping symbol exports test for ${TARGET}")
|
if (NOT "${SPIRV_SKIP_TESTS}")
|
||||||
|
message("Skipping symbol exports test for ${TARGET}")
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user