
This patch adds unit testing support for BOLT. In order to do this we will need at least do this changes on the code level: * Make createMCPlusBuilder accessible externally * Remove positional InputFilename argument to bolt utlity sources And prepare the cmake and lit for the new tests. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei Reviewed By: maksfb, Amir Differential Revision: https://reviews.llvm.org/D118271
18 lines
514 B
CMake
18 lines
514 B
CMake
add_custom_target(bolt-unit-test-deps)
|
|
add_dependencies(bolt-unit-test-deps bolt-test-depends)
|
|
|
|
add_lit_testsuites(BOLT-UNIT
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
DEPENDS bolt-unit-test-deps)
|
|
|
|
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)
|
|
|
|
add_lit_testsuite(check-bolt-unit "Running bolt unit test suite"
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
EXCLUDE_FROM_CHECK_ALL
|
|
DEPENDS bolt-unit-test-deps)
|