Test --version and $crate_name@$version in tests.sh

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-07 18:45:53 +10:00
parent 065f62a625
commit 431992dab0
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -36,3 +36,13 @@ min_tls=1.3
cargo-binstall cargo-binstall
# Test that the installed binaries can be run # Test that the installed binaries can be run
cargo binstall --help >/dev/null cargo binstall --help >/dev/null
# Test --version
"./$1" binstall --force --log-level debug --no-confirm --version 0.11.1 cargo-binstall
# Test that the installed binaries can be run
cargo binstall --help >/dev/null
# Test "$crate_name@$version"
"./$1" binstall --force --log-level debug --no-confirm cargo-binstall@0.11.1
# Test that the installed binaries can be run
cargo binstall --help >/dev/null