onnx-mlir/test/mlir/CMakeLists.txt

22 lines
811 B
CMake
Raw Normal View History

set(LLVM_LIT ${LLVM_PROJ_SRC}/utils/lit/lit.py)
set(LLVM_DEFAULT_EXTERNAL_LIT ${LLVM_PROJ_BUILD}/bin/llvm-lit)
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)
set(ONNX_MLIR_TEST_DEPENDS onnx-mlir-opt)
add_lit_testsuite(check-mlir-lit
"Running the ONNX MLIR regression tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS
${ONNX_MLIR_TEST_DEPENDS})
set_target_properties(check-mlir-lit PROPERTIES FOLDER "Tests")
add_lit_testsuites(ONNX_MLIR
${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS
${ONNX_MLIR_TEST_DEPS})