Index: test/CMakeLists.txt =================================================================== --- test/CMakeLists.txt +++ test/CMakeLists.txt @@ -129,6 +129,16 @@ ) set_target_properties(check-llvm PROPERTIES FOLDER "Tests") +add_lit_testsuite(check-lit "Running lit's own test suite" + ${LLVM_MAIN_SRC_DIR}/utils/lit/tests + DEPENDS ${LLVM_TEST_DEPENDS} + ARGS + # lit's own test.cfg doesn't have logic to find the LLVM + # utlities it depends on, like 'not' and 'FileCheck', + # so manually specify the PATH here. + --path=${LLVM_BINARY_DIR}/bin + ) + add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR} PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg llvm_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg Index: utils/lit/tests/.gitignore =================================================================== --- /dev/null +++ utils/lit/tests/.gitignore @@ -0,0 +1,2 @@ +Output +