This is an automated email from the ASF dual-hosted git repository.
jiekaichang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new 5db5e8dc5 make test_rust will automatically install cargo-llvm-cov if
it's not found (#1099)
5db5e8dc5 is described below
commit 5db5e8dc5982c6e488469e3eb65bae70641ddfea
Author: Ryan Huang <[email protected]>
AuthorDate: Sat Feb 28 11:07:26 2026 +0800
make test_rust will automatically install cargo-llvm-cov if it's not found
(#1099)
---
Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 41319c101..e32837c9d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-.PHONY: test_rust test_python tests pre-commit setup-test-python
+.PHONY: test_rust test_python tests pre-commit setup-test-python
install-llvm-cov
# Detect NVIDIA GPU
HAS_NVIDIA := $(shell command -v nvidia-smi >/dev/null 2>&1 && nvidia-smi -L
>/dev/null 2>&1 && echo yes || echo no)
@@ -22,7 +22,10 @@ HAS_NVIDIA := $(shell command -v nvidia-smi >/dev/null 2>&1
&& nvidia-smi -L >/d
setup-test-python:
uv sync --group dev
-test_rust:
+install-llvm-cov:
+ @cargo llvm-cov --version >/dev/null 2>&1 || (echo "[INFO] Installing
cargo-llvm-cov..." && cargo install cargo-llvm-cov)
+
+test_rust: install-llvm-cov
ifeq ($(HAS_NVIDIA),yes)
cd qdp && cargo llvm-cov test --workspace --exclude qdp-python --html
--output-dir target/llvm-cov/html
cd qdp && cargo llvm-cov report --summary-only