From 4926f295b1c5eba553fc953936f30ba00ce74eb8 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 4 Jul 2018 14:20:52 -0400 Subject: [PATCH] Let symbol export tests respect SPIRV_SKIP_TESTS --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 783c47b92..82b33bb45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,13 +170,17 @@ find_host_package(PythonInterp) if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") macro(spvtools_check_symbol_exports TARGET) - add_test(NAME spirv-tools-symbol-exports-${TARGET} - COMMAND ${PYTHON_EXECUTABLE} - ${spirv-tools_SOURCE_DIR}/utils/check_symbol_exports.py "$") + if (NOT "${SPIRV_SKIP_TESTS}") + add_test(NAME spirv-tools-symbol-exports-${TARGET} + COMMAND ${PYTHON_EXECUTABLE} + ${spirv-tools_SOURCE_DIR}/utils/check_symbol_exports.py "$") + endif() endmacro() else() 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() endif()