deno_install/install_test.sh
Ryan Dahl 89bac80ea3 Use new LLVM target triple filenames
Remove support for non-windows in powershell. I'm very sure no one uses
it, it complicates the script, I don't care to maintain it.
2020-03-31 11:40:23 -04:00

18 lines
419 B
Bash
Executable file

#!/bin/sh
set -e
# Lint.
# TODO(ry) shellcheck -s sh ./*.sh
# Test that we can install the latest version at the default location.
rm -f ~/.local/bin/deno
unset DENO_INSTALL
sh ./install.sh
~/.local/bin/deno --version
# Test that we can install a specific version at a custom location.
rm -rf ~/deno-0.38.0
export DENO_INSTALL="$HOME/deno-0.38.0"
./install.sh v0.38.0
~/deno-0.38.0/bin/deno --version | grep 0.38.0