[Mlir-commits] [mlir] [mlir][ArmSME][nfc] Add custom CMake targets to group tests (PR #78448)

Cullen Rhodes llvmlistbot at llvm.org
Tue Jan 23 01:23:25 PST 2024


================
@@ -214,3 +214,26 @@ set_target_properties(check-mlir PROPERTIES FOLDER "Tests")
 add_lit_testsuites(MLIR ${CMAKE_CURRENT_SOURCE_DIR}
   DEPENDS ${MLIR_TEST_DEPENDS}
 )
+
+# Convenience targets to group related tests.
+
+# Run all ArmSME unit tests.
+add_custom_target(check-mlir-unit-armsme DEPENDS
+  check-mlir-dialect-armsme
+  check-mlir-dialect-llvmir
+  check-mlir-conversion-armsmetollvm
+  check-mlir-conversion-armsmetoscf
+  check-mlir-conversion-vectortoarmsme
----------------
c-rhodes wrote:

I think they're generated by `add_lit_testsuites` CMake function in LLVM:
https://github.com/llvm/llvm-project/blob/ccf1e322bd5828c74ac5213dc2e05ab506da25bd/llvm/cmake/modules/AddLLVM.cmake#L2036-L2074

which is used in MLIR test configuration:
https://github.com/llvm/llvm-project/blob/ccf1e322bd5828c74ac5213dc2e05ab506da25bd/mlir/test/CMakeLists.txt#L212-L220

https://github.com/llvm/llvm-project/pull/78448


More information about the Mlir-commits mailing list