[mlir] [integration-test] Let target check-mlir imply target check-mlir-integration too

Note that this does not mean that check-mlir will run check-mlir-integration
tests for all configurations. You still need to do a set up with the flag
MLIR_INCLUDE_INTEGRATION_TESTS set to ON in order to activate the integration test.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D82413
This commit is contained in:
aartbik 2020-06-23 15:22:37 -07:00
parent 4935419d77
commit ba690195d1

View File

@ -21,6 +21,10 @@ add_lit_testsuite(check-mlir-integration "Running the MLIR integration tests"
)
set_target_properties(check-mlir-integration PROPERTIES FOLDER "integration_test")
# Let target "check-mlir" imply the target "check-mlir-integration" as well,
# provided that MLIR_INCLUDE_INTEGRATION_TESTS=ON during the initial setup.
add_dependencies(check-mlir check-mlir-integration)
add_lit_testsuites(MLIR_INTEGRATION ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${MLIR_INTEGRATION_TEST_DEPENDS}
)