Jordan Harband
986abbf5db
Create nvm_version_path
11 years ago
Jordan Harband
a2da9abd6d
Use nvm_version_dir in nvm_version_path
11 years ago
Jordan Harband
9068dda110
Adding `nvm_version_dir`
11 years ago
Jordan Harband
b8fe75e93a
Tests for `nvm copy-packages`
11 years ago
Jordan Harband
1fa2acf5a7
Adding nvm exec tests.
11 years ago
Jordan Harband
6dc602b521
Ensure that `nvm ls node` doesn't return "node_modules", for example.
11 years ago
Jordan Harband
e7ada80d08
`nvm use system` should work as expected.
11 years ago
Jordan Harband
9912f7cc46
If nvm is deactivated, display "none" or "system" instead of the system node version
11 years ago
Jordan Harband
6e02e5a54c
If `nvm_ls` is called without a pattern, and node exists, tack on "system".
11 years ago
Jordan Harband
1c50c5c7aa
Add nvm_tree_contains_path function
11 years ago
Jordan Harband
4512337c11
Adding a slow `nvm current` test, since it needs an installed version of node.
11 years ago
Jordan Harband
8a29122d0a
Adding `teardown` to `test/fast/Listing versions/`
11 years ago
Jordan Harband
6d2912a2ab
Adding nvm_has_system_node
11 years ago
Jordan Harband
1d61584402
Making sure this test cleans up after itself.
11 years ago
Jordan Harband
f6974744cd
Moving this nvm ls test inside the "listing versions" test subdir.
11 years ago
jsdevel
3fa004293c
Adding a symlink in .nvm to the current version.
11 years ago
Jordan Harband
802f064178
Adding a failing test.
11 years ago
Jordan Harband
8349f0ff48
Make sure `nvm ls foo` returns a nonzero exit code when a version is not found.
...
Fixes #440 .
11 years ago
Jordan Harband
bb01513eba
Making sure there's test coverage for `nvm i`
11 years ago
Koen Punt
a318ddf9b3
redirect stderr to stdout in test
11 years ago
Andrew Crites
1b22c2e2b1
Including test for specific version listing
...
This fixes the issue of nvm ls v[:digit:].[:digit:].[:digit:] listing the version even if it isn't available
11 years ago
Jordan Harband
085e314a3f
Adding a trailing newline
11 years ago
Jordan Harband
578a601b27
Filter out of `nvm ls` things that start with a dot. Fixes #421 , closes #422 .
11 years ago
Koen Punt
2e3e48cc06
Use correct variables
11 years ago
Koen Punt
f6ba08253b
utility method for append path, fixes #414
11 years ago
Koen Punt
e3b84499c2
use regex triplet, add unit test
11 years ago
Jordan Harband
ba1be9b4ea
Making `nvm install` use the version, even if it's already installed. Fixes #410
11 years ago
Koen Punt
3d9c1d7852
use sed for *PATH stripping
11 years ago
Jordan Harband
673cda56c4
Adding a test for `nvm install invalid` behavior, and correcting the message.
...
From f00d688c87 (commitcomment-6205164)
11 years ago
Jordan Harband
c77be55cdc
Updating "nvm run" tests.
11 years ago
Jordan Harband
e195fccdb7
Escaping backticks
11 years ago
Jordan Harband
20953ab04c
Make sure `nvm run` works without a version argument when .nvmrc specifies a version.
11 years ago
Jordan Harband
4cf940153c
Use node 0.9 for these testsso that people aren't likely to have it installed
11 years ago
Jordan Harband
bf8abf1052
Make sure `nvm install` works without a version argument when .nvmrc specifies a version.
11 years ago
Jordan Harband
eb6031cb58
Clean up after existing `nvm install` tests.
11 years ago
Jordan Harband
55a6f1f06e
Organizing `nvm install` tests better.
11 years ago
Jordan Harband
b15ea07067
Don't clobber the latest version of 0.10 for tests.
11 years ago
Koen Punt
703acb0514
Added test for nvm unload
11 years ago
Koen Punt
52a384a0cc
Add Makefile for multishell testing
...
updated nvm current test for zsh
11 years ago
Koen Punt
0b97ee1d2a
Failing test for when using nvm ls with v* version
11 years ago
Koen Punt
ae4c841742
Double == causes error on travis (dash shell)
11 years ago
Koen Punt
38a0c997e2
Added travis config, fixed tests for use on travis
11 years ago
Koen Punt
70f1734c12
updated tests for altered output
11 years ago
messju mohr
e46ee7b30b
added test for using the latest of two versions
11 years ago
Fraser Tweedale
332ae1afcb
use a more portable release in install tests
...
The tests for nvm install currently install v0.8.6, which doesn't
build on FreeBSD due to Linuxisms. Switch to a more recent version
that does work.
11 years ago
Fraser Tweedale
9108a7f7fa
remove duplicate install test
...
`test/slow/install` is identical to `test/slow/install from source`
except in the version installed. Remove it.
11 years ago
Fraser Tweedale
dcba513108
address remaining comments from #363
11 years ago
Fraser Tweedale
21771e7369
fix logic error in nvm deactivate test
11 years ago
Fraser Tweedale
a3331ffdb0
fix errors due to use of unportable == operator
...
The `==` operator is not defined by POSIX and many test(1) (also
spelled `[`) implementations do not support it. Replace uses of
`==` with the POSIX-conformant `=` equality operator.
11 years ago
Fraser Tweedale
8925419e90
tests: avoid reliance on nullglob
...
Some shells do not have a nullglob feature, including dash (default
/bin/sh on Ubuntu) and the Almquist shell (default /bin/sh on
FreeBSD). An mv(1) command in setup_dir is failing due to a glob
not matching anything, so use a more widely supported construction.
11 years ago