Fix CAPI tests

pt2_phase1
Stella Laurenzo 2023-11-01 18:58:05 -07:00
parent efdbcbfaae
commit 48a0e290f1
3 changed files with 4 additions and 12 deletions

View File

@ -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,

View File

@ -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")

View File

@ -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"