This is an automated email from the ASF dual-hosted git repository.
martinzink pushed a commit to branch minifi_rust_pgp
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/minifi_rust_pgp by this push:
new ffdb7babd compile cargo_test during compilation step
ffdb7babd is described below
commit ffdb7babd9b57a211b2c2f076c7b0a13cfff413c
Author: Martin Zink <[email protected]>
AuthorDate: Mon Sep 28 12:57:26 2026 +0200
compile cargo_test during compilation step
---
minifi_rust/CMakeLists.txt | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/minifi_rust/CMakeLists.txt b/minifi_rust/CMakeLists.txt
index 3166ec517..3449917a4 100644
--- a/minifi_rust/CMakeLists.txt
+++ b/minifi_rust/CMakeLists.txt
@@ -45,8 +45,14 @@ endif()
include(CTest)
+# Build the test binaries during the build
+add_custom_target(cargo_build_tests ALL
+ COMMAND "${Rust_CARGO_CACHED}" test --no-run
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMENT "Building Rust test binaries")
+
add_test(
NAME cargo_tests
- COMMAND cargo test
+ COMMAND "${Rust_CARGO_CACHED}" test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)