mirror of https://github.com/llvm/torch-mlir
Fix CAPI tests
parent
efdbcbfaae
commit
48a0e290f1
|
@ -162,10 +162,7 @@ add_subdirectory(lib)
|
|||
add_subdirectory(tools)
|
||||
|
||||
add_custom_target(check-torch-mlir-all)
|
||||
add_dependencies(check-torch-mlir-all
|
||||
check-torch-mlir
|
||||
check-torch-mlir-capi
|
||||
)
|
||||
add_dependencies(check-torch-mlir-all check-torch-mlir)
|
||||
|
||||
if(MLIR_ENABLE_BINDINGS_PYTHON)
|
||||
# If parent projects want to configure where to place the python packages,
|
||||
|
|
|
@ -4,12 +4,5 @@ target_link_libraries(
|
|||
torch-mlir-capi-torch-test
|
||||
PRIVATE
|
||||
MLIRCAPIIR
|
||||
MLIRCAPIRegisterEverything
|
||||
TorchMLIRCAPI
|
||||
)
|
||||
|
||||
add_lit_testsuite(check-torch-mlir-capi "Running the torch-mlir CAPI tests"
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS torch-mlir-capi-torch-test FileCheck
|
||||
)
|
||||
set_target_properties(check-torch-mlir-capi PROPERTIES FOLDER "Tests")
|
||||
|
|
|
@ -13,7 +13,9 @@ configure_lit_site_cfg(
|
|||
|
||||
set(TORCH_MLIR_TEST_DEPENDS
|
||||
FileCheck count not
|
||||
torch-mlir-opt TorchMLIRPythonModules
|
||||
TorchMLIRPythonModules
|
||||
torch-mlir-opt
|
||||
torch-mlir-capi-torch-test
|
||||
)
|
||||
|
||||
add_lit_testsuite(check-torch-mlir "Running the torch-mlir regression tests"
|
||||
|
|
Loading…
Reference in New Issue