[Mlir-commits] [mlir] [mlir][ArmSME][nfc] Add custom CMake targets to group tests (PR #78448)
Benjamin Maxwell
llvmlistbot at llvm.org
Wed Jan 24 05:21:18 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
----------------
MacDue wrote:
Here's a bash one-liner based on this patch that runs all targets that match the regex `^check-mlir.*armsme`:
```sh
ninja $(ninja -t targets | grep -e "^check-mlir.*armsme" | sed 's/:.*//')
```
https://github.com/llvm/llvm-project/pull/78448
More information about the Mlir-commits
mailing list