From 278fd031b059057c329ed647b7219bec42927396 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sat, 12 Jan 2013 13:30:12 +0900 Subject: [PATCH] added test for installation with -s option. --- test/slow/install from binary | 14 ++++++++++++++ test/slow/install from source | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 test/slow/install from binary create mode 100755 test/slow/install from source diff --git a/test/slow/install from binary b/test/slow/install from binary new file mode 100755 index 0000000..c22e0d8 --- /dev/null +++ b/test/slow/install from binary @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e +. ../../nvm.sh + +# Remove the stuff we're clobbering. +[ -e ../../v0.8.6 ] && rm -R ../../v0.8.6 + +# Install from binary +nvm install 0.8.6 + +# Check +[ -d ../../v0.8.6 ] +nvm run v0.8.6 --version | grep v0.8.6 diff --git a/test/slow/install from source b/test/slow/install from source new file mode 100755 index 0000000..d124b27 --- /dev/null +++ b/test/slow/install from source @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e +. ../../nvm.sh + +# Remove the stuff we're clobbering. +[ -e ../../v0.8.6 ] && rm -R ../../v0.8.6 + +# Install from source +nvm install -s 0.8.6 + +# Check +[ -d ../../v0.8.6 ] +nvm run v0.8.6 --version | grep v0.8.6