e2e-tests: Check version of installed crates (#1119)

and also test `fetch_crate_cratesio_version_matched` in
`e2e-tests/live.sh`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-06-03 18:28:44 +10:00 committed by GitHub
parent f1bfe23672
commit b876bdc8c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 7 deletions

View file

@ -15,4 +15,7 @@ cp "./$1" "$othertmpdir/bin/"
cargo binstall --no-confirm cargo-audit@0.17.5 --strategies crate-meta-data
cargo audit --version
cargo_audit_version="$(cargo audit --version)"
echo "$cargo_audit_version"
[ "$cargo_audit_version" = "cargo-audit 0.17.5" ]