##// END OF EJS Templates
rust-tests: add test to check if `Cargo.lock` is up-to-date...
Raphaël Gomès -
r46130:952f9d37 default
parent child Browse files
Show More
@@ -0,0 +1,11 b''
1 #require cargo test-repo
2 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ cd "$TESTDIR"/../rust
4
5 Check if Cargo.lock is up-to-date. Will fail with a 101 error code if not.
6
7 $ cargo check --locked --all --quiet
8
9 However most CIs will run `cargo build` or similar before running the tests, so we need to check if it was modified
10
11 $ testrepohg diff
@@ -1066,6 +1066,11 b' def has_rustfmt():'
1066 1066 )
1067 1067
1068 1068
1069 @check("cargo", "cargo tool")
1070 def has_cargo():
1071 return matchoutput('`rustup which cargo` --version', b'cargo')
1072
1073
1069 1074 @check("lzma", "python lzma module")
1070 1075 def has_lzma():
1071 1076 try:
General Comments 0
You need to be logged in to leave comments. Login now