2020-01-07 04:59:19 +08:00
|
|
|
set(LLVM_LIT ${LLVM_PROJ_SRC}/utils/lit/lit.py)
|
|
|
|
set(LLVM_DEFAULT_EXTERNAL_LIT ${LLVM_PROJ_BUILD}/bin/llvm-lit)
|
2019-11-19 08:37:58 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2020-03-17 21:16:33 +08:00
|
|
|
set(ONNX_MLIR_TEST_DEPENDS onnx-mlir-opt)
|
2019-11-19 08:37:58 +08:00
|
|
|
|
2020-03-31 22:06:14 +08:00
|
|
|
add_lit_testsuite(check-onnx-lit
|
2020-03-17 21:16:33 +08:00
|
|
|
"Running the ONNX MLIR regression tests"
|
2019-11-19 08:37:58 +08:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS
|
2020-03-17 21:16:33 +08:00
|
|
|
${ONNX_MLIR_TEST_DEPENDS})
|
2020-03-31 22:06:14 +08:00
|
|
|
set_target_properties(check-onnx-lit PROPERTIES FOLDER "Tests")
|
2019-11-19 08:37:58 +08:00
|
|
|
|
2020-03-17 21:16:33 +08:00
|
|
|
add_lit_testsuites(ONNX_MLIR
|
2019-11-19 08:37:58 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
DEPENDS
|
2020-03-17 21:16:33 +08:00
|
|
|
${ONNX_MLIR_TEST_DEPS})
|