Mercurial > public > mercurial-scm > hg-stable
annotate tests/test-check-rust-format.t @ 53040:cdd7bf612c7b stable tip
bundle-spec: properly format boolean parameter (issue6960)
This was breaking automatic clone bundle generation. This changeset fixes it and
add a test to catch it in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 11 Mar 2025 02:29:42 +0100 |
parents | 48eb51494a7a |
children |
rev | line source |
---|---|
43837
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1 #require rustfmt test-repo |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
3 $ . "$TESTDIR/helpers-testrepo.sh" |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
4 |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
5 $ cd "$TESTDIR"/.. |
48374
090346b095fb
hghave: update rustfmt criterion
Rapha?l Gom?s <rgomes@octobus.net>
parents:
48297
diff
changeset
|
6 |
090346b095fb
hghave: update rustfmt criterion
Rapha?l Gom?s <rgomes@octobus.net>
parents:
48297
diff
changeset
|
7 Warning: Keep this in sync with hghave.py |
51794
c8188b10cf43
hghave: update expected rustfmt version
Rapha?l Gom?s <rgomes@octobus.net>
parents:
48374
diff
changeset
|
8 $ RUSTFMT=$(rustup which --toolchain nightly-2024-07-16 rustfmt) |
43837
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
9 $ for f in `testrepohg files 'glob:**/*.rs'` ; do |
51795
48eb51494a7a
rustfmt: update expected Rust edition
Rapha?l Gom?s <rgomes@octobus.net>
parents:
51794
diff
changeset
|
10 > $RUSTFMT --check --edition=2021 --unstable-features --color=never $f |
43837
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
11 > done |