forked from OSchip/llvm-project
CFI: Add a check-cfi-and-supported rule.
This rule works like check-cfi, but fails if the tests are unsupported. This is useful to run on bots if we want to be sure that the tests aren't silently being skipped. llvm-svn: 230536
This commit is contained in:
parent
b59b80b956
commit
4be9b40091
|
@ -20,4 +20,10 @@ endif()
|
|||
add_lit_testsuite(check-cfi "Running the cfi regression tests"
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${CFI_TEST_DEPS})
|
||||
|
||||
add_lit_target(check-cfi-and-supported "Running the cfi regression tests"
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
PARAMS check_supported=1
|
||||
DEPENDS ${CFI_TEST_DEPS})
|
||||
|
||||
set_target_properties(check-cfi PROPERTIES FOLDER "Tests")
|
||||
|
|
|
@ -33,3 +33,6 @@ elif sys.platform.startswith('linux') and is_linux_lto_supported():
|
|||
config.substitutions.append((r"%clangxx_cfi ", clangxx + ' -fuse-ld=gold -fsanitize=cfi '))
|
||||
else:
|
||||
config.unsupported = True
|
||||
|
||||
if lit_config.params.get('check_supported', None) and config.unsupported:
|
||||
raise BaseException("Tests unsupported")
|
||||
|
|
Loading…
Reference in New Issue