more alias tests

This commit is contained in:
Thomas Levine 2012-10-10 20:06:37 -04:00
parent 200688644a
commit c6bad42e83
5 changed files with 15 additions and 1 deletions

0
test/fast/deactivate Executable file → Normal file
View File

4
test/fast/multiple_aliases/all Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. ../../../nvm.sh
[ $(nvm alias | wc -l) = '10' ]

View File

@ -0,0 +1,6 @@
#!/bin/sh
for i in $(seq 1 10)
do
echo v0.0.$i > ../../../alias/test$i
done

View File

@ -0,0 +1,4 @@
#!/bin/sh
. ../../../nvm.sh
[ $(nvm alias test1 | wc -l) = '2' ]

View File

@ -1,5 +1,4 @@
#!/bin/sh
set -e
(
cd ../..
@ -7,4 +6,5 @@ set -e
# Back up
mkdir -p bak
mv v* src alias bak || sleep 0s
mkdir src alias
)