[Mlir-commits] [mlir] [mlir][ArmSME][nfc] Add custom CMake targets to group tests (PR #78448)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 17 05:51:09 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Cullen Rhodes (c-rhodes)
<details>
<summary>Changes</summary>
These targets conveniently group ArmSME related tests and can be used as follows:
ninja check-mlir-unit-armsme # unit only
ninja check-mlir-integration-armsme # integration only
ninja check-mlir-armsme # all
---
Full diff: https://github.com/llvm/llvm-project/pull/78448.diff
1 Files Affected:
- (modified) mlir/test/CMakeLists.txt (+23)
``````````diff
diff --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt
index 8ce030feeded92..58f44039a3cda0 100644
--- a/mlir/test/CMakeLists.txt
+++ b/mlir/test/CMakeLists.txt
@@ -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
+)
+
+# Run all ArmSME integration tests.
+add_custom_target(check-mlir-integration-armsme DEPENDS
+ check-mlir-integration-dialect-linalg-cpu-armsme
+ check-mlir-integration-dialect-vector-cpu-armsme
+)
+
+# Run all ArmSME tests.
+add_custom_target(check-mlir-armsme DEPENDS
+ check-mlir-unit-armsme
+ check-mlir-integration-armsme
+)
``````````
</details>
https://github.com/llvm/llvm-project/pull/78448
More information about the Mlir-commits
mailing list