From 431992dab0760034502db105da85ca34e0356290 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 7 Aug 2022 18:45:53 +1000 Subject: [PATCH] Test `--version` and `$crate_name@$version` in `tests.sh` Signed-off-by: Jiahao XU --- ci-scripts/tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci-scripts/tests.sh b/ci-scripts/tests.sh index 41d10b59..64ed0f9a 100755 --- a/ci-scripts/tests.sh +++ b/ci-scripts/tests.sh @@ -36,3 +36,13 @@ min_tls=1.3 cargo-binstall # Test that the installed binaries can be run 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