mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
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:
parent
f1bfe23672
commit
b876bdc8c7
5 changed files with 67 additions and 7 deletions
|
@ -24,6 +24,14 @@ export PATH="$CARGO_HOME/bin:$PATH"
|
|||
--disable-strategies compile \
|
||||
cargo-binstall
|
||||
|
||||
# Test that the installed binaries can be run
|
||||
cargo binstall --help >/dev/null
|
||||
|
||||
cargo_binstall_version="$(cargo binstall -V)"
|
||||
echo "$cargo_binstall_version"
|
||||
|
||||
[ "$cargo_binstall_version" = "cargo-binstall 0.12.0" ]
|
||||
|
||||
# Test default Github pkg-url templates,
|
||||
# with bin-dir provided
|
||||
"./$1" binstall \
|
||||
|
@ -32,3 +40,11 @@ export PATH="$CARGO_HOME/bin:$PATH"
|
|||
--no-confirm \
|
||||
--disable-strategies compile \
|
||||
cargo-binstall
|
||||
|
||||
# Test that the installed binaries can be run
|
||||
cargo binstall --help >/dev/null
|
||||
|
||||
cargo_binstall_version="$(cargo binstall -V)"
|
||||
echo "$cargo_binstall_version"
|
||||
|
||||
[ "$cargo_binstall_version" = "cargo-binstall 0.12.0" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue