Skip to content
Snippets Groups Projects
Commit 7521e6d1 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

makefile: run Rust tests if cargo is installed

While no particular minimum toolchain version is targeted as of yet, this
serves as a first step to make more people/machines run the Rust tests.
parent 302dbc9d
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
export LC_ALL=C
TESTFLAGS ?= $(shell echo $$HGTESTFLAGS)
OSXVERSIONFLAGS ?= $(shell echo $$OSXVERSIONFLAGS)
CARGO = cargo
# Set this to e.g. "mingw32" to use a non-default compiler.
COMPILER=
......@@ -110,6 +111,10 @@
check: tests
tests:
# Run Rust tests if cargo is installed
if command -v $(CARGO) >/dev/null 2>&1; then \
cd $(HGROOT)/rust/hg-cpython && $(CARGO) test --quiet --all; \
fi
cd tests && $(PYTHON) run-tests.py $(TESTFLAGS)
test-%:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment