Skip to content
Myr

Organizing `nvm install` tests better.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent c188c1b · Browse files · 6 files+56 added−56 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+56 added−56 removed

  • tests:+56 added−56 removed

6 files+56 added−56 removed

added:test/slow/nvm install/install from binary+16 added
1#!/bin/sh23set -e4. ../../nvm.sh56VERSION=v0.10.778# Remove the stuff we're clobbering.9[ -e ../../$VERSION ] && rm -R ../../$VERSION1011# Install from binary12nvm install $VERSION1314# Check15[ -d ../../$VERSION ]16nvm run $VERSION --version | grep $VERSION
added:test/slow/nvm install/install from source+16 added
1#!/bin/sh23set -e4. ../../nvm.sh56VERSION=v0.10.778# Remove the stuff we're clobbering.9[ -e ../../$VERSION ] && rm -R ../../$VERSION1011# Install from source12nvm install -s $VERSION1314# Check15[ -d ../../$VERSION ]16nvm run $VERSION --version | grep $VERSION
added:test/slow/nvm install/install two versions and use the latest one+24 added
1#!/bin/sh23set -e4. ../../nvm.sh56# Remove the stuff we're clobbering.7[ -e ../../v0.10.7 ] && rm -R ../../v0.10.78[ -e ../../v0.10.8 ] && rm -R ../../v0.10.8910# Install from binary11nvm install 0.10.712nvm install 0.10.81314# Check15[ -d ../../v0.10.7 ]16[ -d ../../v0.10.8 ]1718# Use the first one19nvm use 0.10.72021# Use the latest one22nvm use 0.1023node --version | grep v0.10.824
deleted:test/slow/install from binary-16 removed
1#!/bin/sh23set -e4. ../../nvm.sh56VERSION=v0.10.778# Remove the stuff we're clobbering.9[ -e ../../$VERSION ] && rm -R ../../$VERSION1011# Install from binary12nvm install $VERSION1314# Check15[ -d ../../$VERSION ]16nvm run $VERSION --version | grep $VERSION
deleted:test/slow/install from source-16 removed
1#!/bin/sh23set -e4. ../../nvm.sh56VERSION=v0.10.778# Remove the stuff we're clobbering.9[ -e ../../$VERSION ] && rm -R ../../$VERSION1011# Install from source12nvm install -s $VERSION1314# Check15[ -d ../../$VERSION ]16nvm run $VERSION --version | grep $VERSION
deleted:test/slow/install two versions and use the latest one-24 removed
1#!/bin/sh23set -e4. ../../nvm.sh56# Remove the stuff we're clobbering.7[ -e ../../v0.10.7 ] && rm -R ../../v0.10.78[ -e ../../v0.10.8 ] && rm -R ../../v0.10.8910# Install from binary11nvm install 0.10.712nvm install 0.10.81314# Check15[ -d ../../v0.10.7 ]16[ -d ../../v0.10.8 ]1718# Use the first one19nvm use 0.10.72021# Use the latest one22nvm use 0.1023node --version | grep v0.10.824