Debian Codegraph @

tests/test-check-cargo-lock.t

raw
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 update -w --locked --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 Cargo.lock