Move sourcing tests to a separate test suite.
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 ad0a5cd · Browse files · 8 files·+44 added−31 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+44 added−31 removed
- tests:+36 added−30 removed
- other:+8 added−1 removed
Provenance
- Commit
cec1c38- Tree
55885fa- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
ad0a5cd
8 files changed+44 added−31 removed
deleted:test/installation/sourcing/setup_dir-8 removed
1-#!/bin/sh2-3-mkdir -p ../../../alias4-5-. ../../../nvm.sh6-nvm install 0.10.17-nvm unload || echo >&2 'nvm unload failed'8-deleted:test/installation/sourcing/Sourcing nvm.sh should use the default if available-17 removed
1-#!/bin/sh2-3-die () { echo $@ ; exit 1; }4-5-echo '0.10.1' > ../../../alias/default || die 'creation of default alias failed'6-7-. ../../../nvm.sh || die 'sourcing returned nonzero exit code'8-9-NVM_LS_CURRENT="$(nvm ls current | \grep -o v0.10.1)"10-[ "_$NVM_LS_CURRENT" = '_v0.10.1' ] || die "'nvm ls current' did not return '-> v0.10.1', got '$NVM_LS_CURRENT'"11-12-# NVM_LS_CURRENT_COLORED="$(nvm ls current | sed -n l)"13-14-NVM_ALIAS_DEFAULT="$(nvm alias default)"15-[ "_$NVM_ALIAS_DEFAULT" = "_default -> 0.10.1 (-> v0.10.1)" ] \16- || die "'nvm alias default did not return 'default -> 0.10.1 (-> v0.10.1)', got '$NVM_ALIAS_DEFAULT'"17-deleted:test/installation/sourcing/teardown_dir-5 removed
1-#!/bin/sh2-3-rm -rf ../../../alias4-rm -rf ../../../v0.10.15-added:test/sourcing/setup+12 added
1+#!/bin/sh2+3+mkdir -p ../../alias4+rm -f ../../.nvmrc5+rm -rf ../../v0.10.76+rm -rf ../../v0.9.77+rm -rf ../../v0.9.128+9+. ../../nvm.sh10+nvm install 0.10.1 || echo >&2 'nvm install 0.10.1 failed'11+nvm unload || echo >&2 'nvm unload failed'12+added:test/sourcing/Sourcing nvm.sh should use the default if available+17 added
1+#!/bin/sh2+3+die () { echo $@ ; exit 1; }4+5+echo '0.10.1' > ../../alias/default || die 'creation of default alias failed'6+7+. ../../nvm.sh || die 'sourcing returned nonzero exit code'8+9+NVM_LS_CURRENT="$(nvm ls current | \grep -o v0.10.1)"10+[ "_$NVM_LS_CURRENT" = '_v0.10.1' ] || die "'nvm ls current' did not return '-> v0.10.1', got '$NVM_LS_CURRENT'"11+12+# NVM_LS_CURRENT_COLORED="$(nvm ls current | sed -n l)"13+14+NVM_ALIAS_DEFAULT="$(nvm alias default)"15+[ "_$NVM_ALIAS_DEFAULT" = "_default -> 0.10.1 (-> v0.10.1)" ] \16+ || die "'nvm alias default did not return 'default -> 0.10.1 (-> v0.10.1)', got '$NVM_ALIAS_DEFAULT'"17+added:test/sourcing/teardown+7 added
1+#!/bin/sh2+3+rm -rf ../../alias4+rm -rf ../../v0.10.15+rm -rf ../../v0.10.26+rm -f ../../.nvmrc7+modified:.travis.yml+6 added
17 unmodified lines181920212223242526272829302 unmodified lines333435363717 unmodified lines - SHELL=dash TEST_SUITE=slow - SHELL=bash TEST_SUITE=slow - SHELL=zsh TEST_SUITE=slow - SHELL=ksh TEST_SUITE=slow - SHELL=sh TEST_SUITE=sourcing - SHELL=dash TEST_SUITE=sourcing - SHELL=bash TEST_SUITE=sourcing - SHELL=zsh TEST_SUITE=sourcing - SHELL=ksh TEST_SUITE=sourcing - SHELL=sh TEST_SUITE=installation - SHELL=sh TEST_SUITE=installation WITHOUT_CURL=1 - SHELL=dash TEST_SUITE=installation - SHELL=dash TEST_SUITE=installation WITHOUT_CURL=12 unmodified lines - SHELL=zsh TEST_SUITE=installation - SHELL=zsh TEST_SUITE=installation WITHOUT_CURL=1 - SHELL=ksh TEST_SUITE=installation - SHELL=ksh TEST_SUITE=installation WITHOUT_CURL=1
modified:package.json+2 added-1 removed
7 unmodified lines8910111212131415161718 unmodified lines7 unmodified lines "scripts": { "test": "urchin test", "test/fast": "urchin -f test/fast", "test/slow": "urchin -f test/slow", "test/installation": "urchin -f test/installation" "test/installation": "urchin -f test/installation", "test/sourcing": "urchin -f test/sourcing" }, "repository": { "type": "git", "url": "git://github.com/creationix/nvm.git"18 unmodified lines