Mercurial > hg
view tests/test-check-rust-format.t @ 44489:9183b7dcfa8d
run-tests: add option for running with and without Rust extensions
This provide a simple and clear way to run the test with or without rust.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Fri, 06 Mar 2020 11:16:15 +0100 |
parents | e8a3bbffdc7d |
children | f44a7d8660ea |
line wrap: on
line source
#require rustfmt test-repo $ . "$TESTDIR/helpers-testrepo.sh" $ cd "$TESTDIR"/.. $ RUSTFMT=$(rustup which --toolchain nightly rustfmt) $ for f in `testrepohg files 'glob:**/*.rs'` ; do > $RUSTFMT --check --unstable-features --color=never $f > done