##// END OF EJS Templates
makefile: add `cargo clippy` to tests if cargo is available...
Raphaël Gomès -
r50836:0a58aaa2 default
parent child Browse files
Show More
@@ -138,6 +138,7 b' tests:'
138 # Run Rust tests if cargo is installed
138 # Run Rust tests if cargo is installed
139 if command -v $(CARGO) >/dev/null 2>&1; then \
139 if command -v $(CARGO) >/dev/null 2>&1; then \
140 $(MAKE) rust-tests; \
140 $(MAKE) rust-tests; \
141 $(MAKE) cargo-clippy; \
141 fi
142 fi
142 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS)
143 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS)
143
144
@@ -155,6 +156,10 b' rust-tests:'
155 cd $(HGROOT)/rust \
156 cd $(HGROOT)/rust \
156 && $(CARGO) test --quiet --all --features "$(HG_RUST_FEATURES)"
157 && $(CARGO) test --quiet --all --features "$(HG_RUST_FEATURES)"
157
158
159 cargo-clippy:
160 cd $(HGROOT)/rust \
161 && $(CARGO) clippy --all --features "$(HG_RUST_FEATURES)"
162
158 check-code:
163 check-code:
159 hg manifest | xargs python contrib/check-code.py
164 hg manifest | xargs python contrib/check-code.py
160
165
General Comments 0
You need to be logged in to leave comments. Login now