mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 22:06:38 +00:00

As confirmation, running this locally found 2 crashes: - trivial: crashes on file with no tokens - lexer: hits an assertion failure on bytes: 0x5c,0xa,0x5c,0x1,0x65,0x5c,0xa Differential Revision: https://reviews.llvm.org/D125037
30 lines
733 B
CMake
30 lines
733 B
CMake
set(CLANG_PSEUDO_TEST_DEPS
|
|
clang-pseudo
|
|
clang-pseudo-fuzzer
|
|
ClangPseudoTests
|
|
)
|
|
|
|
foreach(dep FileCheck not count)
|
|
if(TARGET ${dep})
|
|
list(APPEND CLANG_PSEUDO_TEST_DEPS ${dep})
|
|
endif()
|
|
endforeach()
|
|
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
|
|
MAIN_CONFIG
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
|
|
)
|
|
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
|
|
MAIN_CONFIG
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
|
|
)
|
|
|
|
add_lit_testsuite(check-clang-pseudo "Running the clang-pseudo regression tests"
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
DEPENDS ${CLANG_PSEUDO_TEST_DEPS})
|