Sehrope Sarkuni
0b5bb5ccd8
[Fix] `set -u`: Add default empty value for `$NVM_NO_ALIAS`
...
Adds a default value for NVM_NO_ALIAS so that nvm ls does not error out when run
in a bash nounset/-u (no unset vars) environment.
6 years ago
Christopher Sahnwaldt
a1abfd1fe4
[Tests] use rimraf over `rmdir` in teardowns
...
- fix test 'Running "nvm ls" should display all installed versions.': only expect versions created by this test, but no versions created by other tests
6 years ago
Jordan Harband
c6740f5a6e
[New] `nvm ls`: add `--no-alias` to suppress alias output
...
Per https://github.com/creationix/nvm/issues/1792#issuecomment-466696504
6 years ago
Jordan Harband
04fdb2331b
[Tests] `nvm ls`: ensure `nvm alias` is called
6 years ago
Jordan Harband
2a513a1bc0
[Fix] `nvm_ls`: Reverts #1462 to fix io.js sorting.
...
<details>
<summary>Before this revert:</summary>
```sh
iojs-v3.3.1
iojs-v2.5.0
v0.6.21
v0.7.12
iojs-v1.8.4
v0.8.28
v0.9.12
v0.10.48
v0.11.16
v0.12.9
v0.12.18
v0.12.87
v4.9.1
v5.11.1
v5.12.0
v6.14.4
v6.16.0
v7.10.1
v8.6.0
v8.9.1
v8.10.0
v8.11.3
v8.11.4
v8.12.0
v8.13.0
v8.14.1
v8.15.0
v9.11.2
v10.0.0
v10.1.0
v10.2.1
v10.3.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0
v10.14.2
v10.15.1
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
```
</details>
<details>
<summary>After this revert:</summary>
```sh
v0.6.21
v0.7.12
v0.8.28
v0.9.12
v0.10.48
v0.11.16
v0.12.9
v0.12.18
v0.12.87
iojs-v1.8.4
iojs-v2.5.0
iojs-v3.3.1
v4.9.1
v5.11.1
v5.12.0
v6.14.4
v6.16.0
v7.10.1
v8.6.0
v8.9.1
v8.10.0
v8.11.3
v8.11.4
v8.12.0
v8.13.0
v8.14.1
v8.15.0
v9.11.2
v10.0.0
v10.1.0
v10.2.1
v10.3.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0
v10.14.2
v10.15.1
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
```
</details>
In other words, the sorting needs to happen *before* the `NVM_NODE_PREFIX` is removed.
6 years ago
Joshua Li
a5f42d9cea
[Tests] update most mkdirs to use make_fake_{node,iojs}
7 years ago
Peter Dave Hello
2cd2c0f72e
Remove useless trailing newlines
7 years ago
Jordan Harband
dc5dfe3bc1
[Fix] set IFS to default for all nvm commands.
...
Fixes #1227 . Fixes #1244 . Fixes #1514 . Fixes #1518 .
8 years ago
Peter Dave Hello
f7763c8ba9
[Tests] die() in tests should quote "$@" for echo
8 years ago
Qiangjun Ran
cadbbced20
[Tests] Replace all dots with backslash dots
8 years ago
Jordan Harband
73aa35f508
[Tests] use `$NVM_DIR` instead of relative paths
9 years ago
Jordan Harband
91c77c6ba8
[Tests] fix shebangs
9 years ago
Jordan Harband
2116d2ff91
Filter out the io.js version dir from nvm_ls output.
...
Fixes #642 .
10 years ago
Jordan Harband
39a75e616d
Add support for `nvm use node`, `nvm use iojs`, `nvm ls node`, and `nvm ls iojs`
...
Also add `nvm_version node` and `nvm_version iojs` support.
10 years ago
Jordan Harband
0ad5a450fe
Put node versions >= 0.12 in `versions/node` instead of just `versions`
10 years ago
Jordan Harband
f661617f1c
Make `nvm_ls foo` work with `iojs`-prefixed version strings.
10 years ago
Jordan Harband
0f5997f754
Clean up from some more tests
10 years ago
Jordan Harband
8284cd0f81
Ensuring that there's a stable and unstable version "available" for this test.
10 years ago
Jordan Harband
c918e570b6
Add support for `nvm ls stable` and `nvm ls unstable`
11 years ago
Jordan Harband
be605cb12b
Adding a failing test: `nvm ls 0.0.x` includes `v0.0.xy`
11 years ago
Jordan Harband
35466187f2
Noting the changed behavior of `nvm ls vx.y.` to return something useful.
11 years ago
Jordan Harband
15b3e7b6a8
Removing unnecessary cleanup in "Listing Versions" tests.
11 years ago
Jordan Harband
8d05ab63f1
Silencing error output in the "Listing Versions" teardown script.
11 years ago
Jordan Harband
a80f958a1e
All 4 of these test files should be executable.
11 years ago
Jordan Harband
110e571c34
Make `nvm ls system` work.
11 years ago
Jordan Harband
b59ecb9e11
Make sure the new `versions` directory is filtered out of nvm_ls output (in zsh).
11 years ago
Jordan Harband
5dd2d7e5d4
Make `nvm ls` support listing the "versions" directory when it's present.
11 years ago
Jordan Harband
6dc602b521
Ensure that `nvm ls node` doesn't return "node_modules", for example.
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
8a29122d0a
Adding `teardown` to `test/fast/Listing versions/`
11 years ago
Jordan Harband
f6974744cd
Moving this nvm ls test inside the "listing versions" test subdir.
11 years ago
Jordan Harband
802f064178
Adding a failing 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
578a601b27
Filter out of `nvm ls` things that start with a dot. Fixes #421 , closes #422 .
11 years ago
Koen Punt
0b97ee1d2a
Failing test for when using nvm ls with v* version
11 years ago
Dr. Kibitz
0f709eafa0
Missed tests
11 years ago
Thomas Levine
a27d39139b
tests from readme
...
fast tests
alias
unalias
more alias tests
tests
document testing
warn not to run while testing
chmod +x deactivate
specify the version (commit) of urchin
installation test
run
tests for ls
switch unsetopt to the thing creationix has
rename tests
urchin log
adjust urchin version
13 years ago