mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Address feedback, make e2e-test test both source/non-source.
This commit is contained in:
parent
a27560fce9
commit
90578aa10d
4 changed files with 44 additions and 13 deletions
|
@ -8,8 +8,20 @@ CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
|
|||
export CARGO_HOME
|
||||
export PATH="$CARGO_HOME/bin:$PATH"
|
||||
|
||||
# Install a specific binary (e.g., ripgrep)
|
||||
"./$1" binstall --no-confirm ripgrep --bin rg
|
||||
# Install a specific binary, ensuring we don't fallback to source.
|
||||
"./$1" binstall --no-confirm taplo-cli --bin taplo --disable-strategies compile
|
||||
|
||||
# Verify that the binary was installed and is executable
|
||||
if ! command -v taplo >/dev/null 2>&1; then
|
||||
echo "taplo was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run the binary to check it works
|
||||
taplo --version
|
||||
|
||||
# Install a specific binary, but always compile from source.
|
||||
"./$1" binstall --no-confirm ripgrep --bin rg --strategies compile
|
||||
|
||||
# Verify that the binary was installed and is executable
|
||||
if ! command -v rg >/dev/null 2>&1; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue