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

Cullen Rhodes llvmlistbot at llvm.org
Thu Jan 18 11:10:59 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:

> How can I find them? I assume that I can query that with e.g. `ninja`? It would be good to document that - otherwise this feels like adding some random targets.

`ninja -t targets`

I think they're pretty self-documenting to be honest, they follow the directory structure, i.e.:

```
  check-mlir-dialect-armsme - mlir/test/Dialect/ArmSME
  check-mlir-dialect-llvmir - mlir/test/Dialect/LLVMIR
  check-mlir-conversion-armsmetollvm - mlir/test/Conversion/ArmSMEToSCF
...
```

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


More information about the Mlir-commits mailing list