From f625deed3de2c666fda089a5b5b2d3ad306e0804 Mon Sep 17 00:00:00 2001 From: Peter Steenbergen Date: Sun, 27 Oct 2019 12:43:50 +0100 Subject: [PATCH] MycroftOS: Step away from using the NPM wifi setup system Never realised that Mycroft A.I. had there own ,mycroft-wifi-setup package created; https://github.com/MycroftAI/mycroft-wifi-setup Will start uising that one instead to be more inline with the Mark-1 and Mark-II systems. --- .../configs/mycroftos_rpi3_defconfig | 13 +- .../rootfs-overlay/root/.nvm/.dockerignore | 16 - .../rootfs-overlay/root/.nvm/.editorconfig | 16 - .../rootfs-overlay/root/.nvm/.mailmap | 1 - .../rootfs-overlay/root/.nvm/.npmrc | 1 - .../rootfs-overlay/root/.nvm/.travis.yml | 79 - .../rootfs-overlay/root/.nvm/CONTRIBUTING.md | 19 - .../rootfs-overlay/root/.nvm/Dockerfile | 108 - .../rootfs-overlay/root/.nvm/LICENSE.md | 20 - .../rootfs-overlay/root/.nvm/Makefile | 85 - .../rootfs-overlay/root/.nvm/README.md | 587 --- .../rootfs-overlay/root/.nvm/ROADMAP.md | 9 - .../rootfs-overlay/root/.nvm/bash_completion | 98 - .../rootfs-overlay/root/.nvm/install.sh | 400 -- .../rootfs-overlay/root/.nvm/nvm-exec | 15 - .../rootfs-overlay/root/.nvm/nvm.sh | 3581 ----------------- .../rootfs-overlay/root/.nvm/package.json | 44 - .../rootfs-overlay/root/.nvm/test/common.sh | 77 - ...\" should not accept aliases with slashes" | 26 - ...\" should not accept aliases with slashes" | 26 - ...\" again should change the target" | 24 - ... \" should list but one alias." | 4 - ...s implicit aliases when they do not exist" | 26 - ... instead of implicit aliases when present" | 49 - ...ng \"nvm alias\" should list all aliases." | 48 - .../fast/Aliases/circular/nvm_resolve_alias | 36 - .../Aliases/circular/nvm_resolve_local_alias | 36 - .../.nvm/test/fast/Aliases/circular/setup | 9 - .../.nvm/test/fast/Aliases/circular/teardown | 9 - ...lias\" should ensure LTS alias dir exists" | 18 - .../root/.nvm/test/fast/Aliases/lts/setup_dir | 10 - .../.nvm/test/fast/Aliases/lts/teardown_dir | 10 - .../test/fast/Aliases/nvm_ensure_default_set | 20 - .../.nvm/test/fast/Aliases/nvm_resolve_alias | 33 - .../test/fast/Aliases/nvm_resolve_local_alias | 35 - .../root/.nvm/test/fast/Aliases/setup | 11 - .../root/.nvm/test/fast/Aliases/teardown | 17 - ....0.2\" should display only version 0.0.2." | 26 - ...return a nonzero exit code when not found" | 6 - .../.nvm/test/fast/Listing paths/teardown | 3 - ....0.2\" should display only version 0.0.2." | 20 - ...0.2\" should display only 0.2.x versions." | 41 - ...return a nonzero exit code when not found" | 6 - .../Running \"nvm ls io\" should return NA" | 6 - ...return a nonzero exit code when not found" | 6 - ...uld return the appropriate implicit alias" | 28 - ...hould include \"system\" when appropriate" | 20 - ...\" should display all installed versions." | 24 - ...ing \"nvm ls\" should filter out \".nvm\"" | 9 - ...\"nvm ls\" should filter out \"versions\"" | 10 - ...hould include \"system\" when appropriate" | 20 - ...st versions in the \"versions\" directory" | 11 - ...vx.x.x should only list a matched version" | 10 - .../Using a nonstandard IFS should not break | 18 - .../.nvm/test/fast/Listing versions/teardown | 16 - ...uld create a file in the alias directory." | 9 - ..." should display current nvm environment." | 11 - ...ould unset the nvm environment variables." | 22 - ...-packages-from\" requires a valid version" | 56 - ...ll\" with an invalid version fails nicely" | 13 - ...m unalias\" should remove the alias file." | 13 - ... should remove the appropriate directory." | 12 - ...h incorrect file permissions fails nicely" | 16 - ... should unset all function and variables." | 28 - ...se foo\" where \"foo\" is circular aborts" | 39 - ..."nvm use iojs\" uses latest io.js version" | 35 - ..."nvm use system\" should work as expected" | 44 - ...create and change the \"current\" symlink" | 35 - ... symlink if $NVM_SYMLINK_CURRENT is false" | 85 - ....sh should make the nvm command available. | 7 - ....sh should not modify parameters of caller | 7 - .../iojs_version_has_solaris_binary | 17 - .../Unit tests/mocks/iojs.org-dist-index.tab | 42 - .../mocks/nodejs.org-dist-index.tab | 391 -- .../Unit tests/mocks/nvm ls-remote iojs.txt | 41 - .../Unit tests/mocks/nvm ls-remote lts.txt | 68 - .../Unit tests/mocks/nvm ls-remote node.txt | 390 -- .../fast/Unit tests/mocks/nvm ls-remote.txt | 431 -- .../mocks/nvm_ls_remote LTS argon.txt | 36 - .../Unit tests/mocks/nvm_ls_remote LTS.txt | 68 - .../Unit tests/mocks/nvm_ls_remote stable.txt | 1 - .../fast/Unit tests/mocks/nvm_ls_remote.txt | 390 -- .../Unit tests/mocks/nvm_ls_remote_iojs.txt | 41 - .../mocks/nvm_make_alias LTS alias calls.txt | 4 - ...nvm_print_implicit_alias remote stable.txt | 1 - .../node_version_has_solaris_binary | 33 - .../.nvm/test/fast/Unit tests/nvm ls-remote | 32 - .../test/fast/Unit tests/nvm version-remote | 51 - .../test/fast/Unit tests/nvm_add_iojs_prefix | 9 - .../root/.nvm/test/fast/Unit tests/nvm_alias | 32 - .../.nvm/test/fast/Unit tests/nvm_alias_path | 7 - .../.nvm/test/fast/Unit tests/nvm_change_path | 43 - .../.nvm/test/fast/Unit tests/nvm_checksum | 18 - .../test/fast/Unit tests/nvm_clang_version | 62 - .../test/fast/Unit tests/nvm_command_info | 40 - .../test/fast/Unit tests/nvm_compare_checksum | 72 - .../test/fast/Unit tests/nvm_compute_checksum | 23 - .../fast/Unit tests/nvm_curl_libz_support | 39 - .../fast/Unit tests/nvm_curl_use_compression | 38 - .../test/fast/Unit tests/nvm_curl_version | 32 - .../test/fast/Unit tests/nvm_default_packages | 115 - .../test/fast/Unit tests/nvm_die_on_prefix | 81 - .../fast/Unit tests/nvm_ensure_default_set | 15 - .../Unit tests/nvm_ensure_version_installed | 62 - .../fast/Unit tests/nvm_ensure_version_prefix | 12 - .../.nvm/test/fast/Unit tests/nvm_find_up | 25 - .../test/fast/Unit tests/nvm_format_version | 20 - .../.nvm/test/fast/Unit tests/nvm_get_arch | 82 - .../test/fast/Unit tests/nvm_get_checksum | 45 - .../test/fast/Unit tests/nvm_get_checksum_alg | 20 - .../nvm_get_latest missing curl or wget | 20 - .../fast/Unit tests/nvm_get_minor_version | 45 - .../.nvm/test/fast/Unit tests/nvm_get_mirror | 32 - .../root/.nvm/test/fast/Unit tests/nvm_has | 11 - .../test/fast/Unit tests/nvm_has_non_aliased | 24 - .../fast/Unit tests/nvm_has_solaris_binary | 32 - .../test/fast/Unit tests/nvm_has_system_iojs | 30 - .../test/fast/Unit tests/nvm_has_system_node | 27 - .../fast/Unit tests/nvm_install_latest_npm | 58 - .../.nvm/test/fast/Unit tests/nvm_iojs_prefix | 7 - .../.nvm/test/fast/Unit tests/nvm_is_alias | 20 - .../test/fast/Unit tests/nvm_is_iojs_version | 10 - .../Unit tests/nvm_is_merged_node_version | 10 - .../test/fast/Unit tests/nvm_is_natural_num | 17 - .../test/fast/Unit tests/nvm_is_valid_version | 13 - .../.nvm/test/fast/Unit tests/nvm_ls_current | 38 - .../.nvm/test/fast/Unit tests/nvm_ls_remote | 73 - .../fast/Unit tests/nvm_ls_remote LTS aliases | 48 - .../test/fast/Unit tests/nvm_ls_remote_iojs | 37 - .../.nvm/test/fast/Unit tests/nvm_make_alias | 19 - .../.nvm/test/fast/Unit tests/nvm_node_prefix | 7 - .../fast/Unit tests/nvm_num_version_groups | 24 - .../test/fast/Unit tests/nvm_print_alias_path | 44 - .../fast/Unit tests/nvm_print_default_alias | 38 - .../nvm_print_implicit_alias errors | 25 - .../nvm_print_implicit_alias success | 104 - .../fast/Unit tests/nvm_print_npm_version | 28 - .../test/fast/Unit tests/nvm_remote_version | 78 - .../test/fast/Unit tests/nvm_remote_versions | 77 - .../fast/Unit tests/nvm_strip_iojs_prefix | 10 - .../.nvm/test/fast/Unit tests/nvm_strip_path | 11 - .../.nvm/test/fast/Unit tests/nvm_supports_xz | 42 - .../fast/Unit tests/nvm_tree_contains_path | 31 - .../test/fast/Unit tests/nvm_use_if_needed | 24 - .../Unit tests/nvm_validate_implicit_alias | 20 - .../.nvm/test/fast/Unit tests/nvm_version | 48 - .../.nvm/test/fast/Unit tests/nvm_version_dir | 11 - .../test/fast/Unit tests/nvm_version_greater | 15 - .../test/fast/Unit tests/nvm_version_path | 14 - .../rootfs-overlay/root/.nvm/test/fast/setup | 14 - .../root/.nvm/test/fast/setup_dir | 18 - .../root/.nvm/test/fast/teardown | 12 - .../root/.nvm/test/fast/teardown_dir | 15 - .../install_script/nvm_check_global_modules | 54 - .../test/install_script/nvm_detect_profile | 113 - .../.nvm/test/install_script/nvm_do_install | 8 - .../.nvm/test/install_script/nvm_install_dir | 24 - .../nvm_install_with_aliased_dot | 22 - .../nvm_install_with_node_version | 8 - .../install_script/nvm_profile_is_bash_or_zsh | 13 - .../root/.nvm/test/install_script/nvm_reset | 38 - .../root/.nvm/test/install_script/nvm_source | 39 - .../install already installed uses it | 25 - .../installation_iojs/install from binary | 18 - .../installation_iojs/install from source | 22 - ...nstall two versions and use the latest one | 25 - ...ll version specified in .nvmrc from binary | 22 - ...ll version specified in .nvmrc from source | 23 - .../install while reinstalling packages | 31 - .../installation_iojs/nvm install v1 works | 19 - .../.nvm/test/installation_iojs/setup_dir | 5 - .../.nvm/test/installation_iojs/teardown_dir | 16 - .../.nvm/test/installation_node/install LTS | 29 - .../install already installed uses it | 23 - .../installation_node/install from binary | 23 - .../installation_node/install from source | 29 - .../install from source implicitly | 23 - .../install from source with thread parameter | 33 - ...ll from source without V8 snapshot for ARM | 25 - .../.nvm/test/installation_node/install hook | 39 - .../test/installation_node/install latest npm | 41 - ...nstall two versions and use the latest one | 24 - ...ll version specified in .nvmrc from binary | 20 - ...ll version specified in .nvmrc from source | 20 - .../install while reinstalling packages | 33 - .../install with --latest-npm | 12 - .../.nvm/test/installation_node/setup_dir | 5 - .../.nvm/test/installation_node/teardown_dir | 14 - .../root/.nvm/test/mocks/isainfo_amd64 | 5 - .../root/.nvm/test/mocks/isainfo_x86 | 5 - .../root/.nvm/test/mocks/pkg_info_amd64 | 4 - .../root/.nvm/test/mocks/pkg_info_fail | 1 - .../root/.nvm/test/mocks/pkg_info_x86 | 1 - .../root/.nvm/test/mocks/uname_osx_amd64 | 5 - .../root/.nvm/test/mocks/uname_osx_x86 | 5 - .../root/.nvm/test/mocks/uname_smartos_amd64 | 5 - .../root/.nvm/test/mocks/uname_smartos_x86 | 5 - ..." should display current nvm environment." | 9 - .../node 0.6.21 should install 0.6.21-pre | 11 - ...eamble works and respects \"silent\" flag" | 30 - .../Running \"nvm exec --lts\" should work" | 18 - .../Running \"nvm exec 0.x\" should work" | 15 - ..."nvm exec\" should pick up .nvmrc version" | 16 - .../root/.nvm/test/slow/nvm exec/setup_dir | 10 - .../root/.nvm/test/slow/nvm exec/teardown_dir | 13 - ...ages $(nvm ls current)\" should error out" | 17 - .../slow/nvm reinstall-packages/setup_dir | 11 - .../should work as expected | 30 - .../slow/nvm reinstall-packages/teardown_dir | 13 - .../test-npmlink/index.js | 2 - .../test-npmlink/package.json | 10 - .../works with no installs | 18 - ...nvm run --harmony --version\" should work" | 8 - .../Running \"nvm run --lts\" should work" | 15 - ...or out sensibly when 0.x is not installed" | 16 - .../Running \"nvm run 0.x\" should work" | 8 - ...\"nvm run\" should pick up .nvmrc version" | 12 - .../root/.nvm/test/slow/nvm run/setup_dir | 11 - .../root/.nvm/test/slow/nvm run/teardown_dir | 14 - ...nvm uninstall 0.12.6\" uninstalls v0.12.6" | 33 - ...h incorrect file permissions fails nicely" | 30 - .../.nvm/test/slow/nvm uninstall/setup_dir | 4 - .../.nvm/test/slow/nvm uninstall/teardown_dir | 5 - ...\"nvm use --lts\" uses latest LTS version" | 22 - ...lts=foo\" uses latest \"foo\" LTS version" | 22 - ..."nvm use iojs\" uses latest io.js version" | 20 - ...se node\" uses latest stable node version" | 20 - ...se v1.0.0\" uses iojs-v1.0.0 iojs version" | 20 - ...g \"nvm use\" calls \"nvm_die_on_prefix\"" | 22 - .../root/.nvm/test/slow/nvm use/setup_dir | 23 - .../root/.nvm/test/slow/nvm use/teardown_dir | 22 - .../test/slow/nvm_get_latest/nvm_get_latest | 101 - .../nvm_get_latest failed redirect | 25 - ...nvm.sh should use the default if available | 17 - ...ith --install and .nvmrc should install it | 27 - ... with --install should install the default | 32 - ...m.sh with --no-use should not use anything | 31 - ...ing nvm.sh with no default should return 0 | 11 - .../root/.nvm/test/sourcing/setup | 13 - .../root/.nvm/test/sourcing/teardown | 6 - .../root/.nvm/update_test_mocks.sh | 44 - 241 files changed, 4 insertions(+), 12345 deletions(-) delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/.dockerignore delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/.editorconfig delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/.mailmap delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/.npmrc delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/.travis.yml delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/CONTRIBUTING.md delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/Dockerfile delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/LICENSE.md delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/Makefile delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/README.md delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/ROADMAP.md delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/bash_completion delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/install.sh delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/nvm-exec delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/nvm.sh delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/package.json delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/common.sh delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" again should change the target" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" should list but one alias." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" should list all aliases." delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_local_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/setup delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/teardown delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/teardown_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_ensure_default_set delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_local_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/setup delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/teardown delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/teardown delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls io\" should return NA" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Using a nonstandard IFS should not break delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/teardown delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm alias\" should create a file in the alias directory." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm current\" should display current nvm environment." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with an invalid version fails nicely" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unalias\" should remove the alias file." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" should remove the appropriate directory." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" with incorrect file permissions fails nicely" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unload\" should unset all function and variables." delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use iojs\" uses latest io.js version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use system\" should work as expected" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should make the nvm command available. delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should not modify parameters of caller delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/iojs_version_has_solaris_binary delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/iojs.org-dist-index.tab delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nodejs.org-dist-index.tab delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote iojs.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote lts.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote node.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS argon.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote stable.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote_iojs.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_make_alias LTS alias calls.txt delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_print_implicit_alias remote stable.txt delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/node_version_has_solaris_binary delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm ls-remote delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm version-remote delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_add_iojs_prefix delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias_path delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_change_path delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_checksum delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_clang_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_command_info delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compare_checksum delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compute_checksum delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_libz_support delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_use_compression delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_default_packages delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_die_on_prefix delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_default_set delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_installed delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_prefix delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_find_up delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_format_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_arch delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum_alg delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_latest missing curl or wget delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_minor_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_mirror delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_non_aliased delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_solaris_binary delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_iojs delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_node delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_install_latest_npm delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_iojs_prefix delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_iojs_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_merged_node_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_natural_num delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_valid_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_current delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote LTS aliases delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote_iojs delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_make_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_node_prefix delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_num_version_groups delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_alias_path delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_default_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias errors delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias success delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_npm_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_versions delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_iojs_prefix delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_path delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_supports_xz delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_tree_contains_path delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_use_if_needed delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_validate_implicit_alias delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_greater delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_path delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_check_global_modules delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_detect_profile delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_do_install delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_aliased_dot delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_node_version delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_profile_is_bash_or_zsh delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_reset delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_source delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install already installed uses it delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from binary delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from source delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install two versions and use the latest one delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from binary delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from source delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install while reinstalling packages delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/nvm install v1 works delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/teardown_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install LTS delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install already installed uses it delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from binary delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source implicitly delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source with thread parameter delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source without V8 snapshot for ARM delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install hook delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install latest npm delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install two versions and use the latest one delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from binary delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from source delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install while reinstalling packages delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install with --latest-npm delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/teardown_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_amd64 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_x86 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_amd64 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_fail delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_x86 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_amd64 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_x86 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_amd64 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_x86 delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/Running \"nvm current\" should display current nvm environment." delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/node 0.6.21 should install 0.6.21-pre delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Preamble works and respects \"silent\" flag" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec --lts\" should work" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/teardown_dir delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/should work as expected delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/teardown_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/index.js delete mode 100644 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/package.json delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/works with no installs delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --lts\" should work" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should work" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/teardown_dir delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/teardown_dir delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" delete mode 100755 "buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/setup_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/teardown_dir delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest failed redirect delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh should use the default if available delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install should install the default delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --no-use should not use anything delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with no default should return 0 delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/setup delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/teardown delete mode 100755 buildroot-external/rootfs-overlay/root/.nvm/update_test_mocks.sh diff --git a/buildroot-external/configs/mycroftos_rpi3_defconfig b/buildroot-external/configs/mycroftos_rpi3_defconfig index e1ead91d..ab8460f6 100644 --- a/buildroot-external/configs/mycroftos_rpi3_defconfig +++ b/buildroot-external/configs/mycroftos_rpi3_defconfig @@ -153,9 +153,6 @@ BR2_PACKAGE_DBUS_PYTHON=y BR2_PACKAGE_KBD=y BR2_PACKAGE_PARTED=y BR2_PACKAGE_SPI_TOOLS=y -BR2_PACKAGE_NODEJS=y -BR2_PACKAGE_NODEJS_NPM=y -BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL="body-parser express handlebars git://github.com/j1nx/MycroftOS-WiFiSetup.git" BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON3_PY_PYC=y BR2_PACKAGE_PYTHON3_BZIP2=y @@ -207,10 +204,13 @@ BR2_PACKAGE_WIRINGPI=y BR2_PACKAGE_LIBMPEG2=y BR2_PACKAGE_LIBMPEG2_BINS=y BR2_PACKAGE_LIBTHEORA=y +BR2_PACKAGE_C_ARES=y BR2_PACKAGE_LIBCURL=y BR2_PACKAGE_CURL=y -BR2_PACKAGE_LIBMICROHTTPD=y +BR2_PACKAGE_LIBHTTPPARSER=y BR2_PACKAGE_LIBTIRPC=y +BR2_PACKAGE_NGHTTP2=y +BR2_PACKAGE_LIBUV=y BR2_PACKAGE_LIBFRIBIDI=y BR2_PACKAGE_LIBUNISTRING=y BR2_PACKAGE_NCURSES_WCHAR=y @@ -224,10 +224,6 @@ BR2_PACKAGE_AVAHI=y BR2_PACKAGE_AVAHI_DAEMON=y BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y BR2_PACKAGE_CRDA=y -BR2_PACKAGE_DNSMASQ=y -BR2_PACKAGE_HOSTAPD=y -BR2_PACKAGE_HOSTAPD_EAP=y -BR2_PACKAGE_HOSTAPD_WPS=y BR2_PACKAGE_IFUPDOWN=y BR2_PACKAGE_IPTABLES=y BR2_PACKAGE_IW=y @@ -276,7 +272,6 @@ BR2_PACKAGE_FIRSTBOOT_SERVICE=y BR2_PACKAGE_PYTHON_MYCROFT=y BR2_PACKAGE_MYCROFT_SERVICE=y BR2_PACKAGE_MYCROFT_SPLASH=y -BR2_PACKAGE_WIFISETUP_SERVICE=y BR2_PACKAGE_FANN=y BR2_PACKAGE_RESPEAKER=y BR2_PACKAGE_PYTHON_ADAPT_PARSER=y diff --git a/buildroot-external/rootfs-overlay/root/.nvm/.dockerignore b/buildroot-external/rootfs-overlay/root/.nvm/.dockerignore deleted file mode 100644 index fc578ccc..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/.dockerignore +++ /dev/null @@ -1,16 +0,0 @@ -HEAD -.cache -v* -alias - -# For testing -test/bak -.urchin.log -.urchin_stdout -test/**/test_output - -node_modules/ -npm-debug.log - -.DS_Store -current diff --git a/buildroot-external/rootfs-overlay/root/.nvm/.editorconfig b/buildroot-external/rootfs-overlay/root/.nvm/.editorconfig deleted file mode 100644 index 32de1923..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -root = true - -[*] -tab_width = 2 -indent_size = 2 -charset = utf-8 -end_of_line = lf -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true - -[*.txt] -indent_size = false - -[Makefile] -indent_style = tab diff --git a/buildroot-external/rootfs-overlay/root/.nvm/.mailmap b/buildroot-external/rootfs-overlay/root/.nvm/.mailmap deleted file mode 100644 index 1f2f86fe..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/.mailmap +++ /dev/null @@ -1 +0,0 @@ -Michał Gołębiowski-Owczarek diff --git a/buildroot-external/rootfs-overlay/root/.nvm/.npmrc b/buildroot-external/rootfs-overlay/root/.nvm/.npmrc deleted file mode 100644 index 43c97e71..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/.npmrc +++ /dev/null @@ -1 +0,0 @@ -package-lock=false diff --git a/buildroot-external/rootfs-overlay/root/.nvm/.travis.yml b/buildroot-external/rootfs-overlay/root/.nvm/.travis.yml deleted file mode 100644 index 48d42244..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/.travis.yml +++ /dev/null @@ -1,79 +0,0 @@ -language: generic -dist: trusty -sudo: required -addons: - apt: - packages: - - zsh - # - ksh - # - gcc-4.8 - # - g++-4.8 - -cache: - directories: - - $HOME/.npm - - $TRAVIS_BUILD_DIR/.cache - - $TRAVIS_BUILD_DIR/node_modules -before_install: - - $SHELL --version 2> /dev/null || dpkg -s $SHELL 2> /dev/null || which $SHELL - - curl --version - - wget --version -install: - - if [ -z "${SHELLCHECK-}" ]; then nvm install node && npm install && npm prune && npm ls urchin doctoc eclint; fi - - '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y' -script: - - if [ -n "${MAKE_RELEASE-}" ]; then export GIT_EDITOR="sed -i '1 s/^/99.99.99 make release test/'" && git fetch --unshallow --tags && echo proceed | make TAG=99.99.99 release ; fi - - if [ -n "${DOCTOCCHECK-}" ]; then cp README.md README.md.orig && npm run doctoc && diff -q README.md README.md.orig ; fi - - if [ -n "${ECLINT-}" ]; then npm run eclint ; fi - - if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash nvm.sh && shellcheck -s sh nvm.sh && shellcheck -s dash nvm.sh && shellcheck -s ksh nvm.sh ; fi - - if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash install.sh bash_completion nvm-exec ; fi - - if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then if [ "${TEST_SUITE}" = 'installation_iojs' ]; then travis_retry make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; else make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL; fi; fi -before_cache: - - if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi -env: - global: - - CXX=g++-4.8 - - CC=gcc-4.8 - - PATH="$(echo $PATH | sed 's/::/:/')" - - NVM_DIR="${TRAVIS_BUILD_DIR}" - matrix: - - MAKE_RELEASE=true - - DOCTOCCHECK=true - - SHELLCHECK=true - - ECLINT=true - - SHELL=bash TEST_SUITE=install_script - - SHELL=sh TEST_SUITE=fast - - SHELL=dash TEST_SUITE=fast - - SHELL=bash TEST_SUITE=fast - - SHELL=zsh TEST_SUITE=fast - # - SHELL=ksh TEST_SUITE=fast - - 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=slow - - SHELL=dash TEST_SUITE=slow - - SHELL=bash TEST_SUITE=slow - - SHELL=zsh TEST_SUITE=slow - # - SHELL=ksh TEST_SUITE=slow - - SHELL=sh TEST_SUITE=installation_node - - SHELL=sh TEST_SUITE=installation_node WITHOUT_CURL=1 - - SHELL=dash TEST_SUITE=installation_node - - SHELL=dash TEST_SUITE=installation_node WITHOUT_CURL=1 - - SHELL=bash TEST_SUITE=installation_node - - SHELL=bash TEST_SUITE=installation_node WITHOUT_CURL=1 - - SHELL=zsh TEST_SUITE=installation_node - - SHELL=zsh TEST_SUITE=installation_node WITHOUT_CURL=1 - # - SHELL=ksh TEST_SUITE=installation_node - # - SHELL=ksh TEST_SUITE=installation_node WITHOUT_CURL=1 - - SHELL=sh TEST_SUITE=installation_iojs - - SHELL=sh TEST_SUITE=installation_iojs WITHOUT_CURL=1 - - SHELL=dash TEST_SUITE=installation_iojs - - SHELL=dash TEST_SUITE=installation_iojs WITHOUT_CURL=1 - - SHELL=bash TEST_SUITE=installation_iojs - - SHELL=bash TEST_SUITE=installation_iojs WITHOUT_CURL=1 - - SHELL=zsh TEST_SUITE=installation_iojs - - SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1 - # - SHELL=ksh TEST_SUITE=installation_iojs - # - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/CONTRIBUTING.md b/buildroot-external/rootfs-overlay/root/.nvm/CONTRIBUTING.md deleted file mode 100644 index 4834ab4f..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/CONTRIBUTING.md +++ /dev/null @@ -1,19 +0,0 @@ -Thanks for contributing to `nvm`! - -We love pull requests and issues, they're our favorite. - -However, before submitting, please review the following: - -For bug reports: - - Please make sure the bug is reproducible, and give us the steps to reproduce it, so that we can dig into the problem. - - Please give us as much detail as possible about your environment, so we can more easily confirm the problem. - -For pull requests: - - Please include tests. Changes with tests will be merged very quickly. - - Please manually confirm that your changes work in `bash`, `sh`/`dash`, `ksh`, and `zsh`. Fast tests do run in these shells, but it's nice to manually verify also. - - Please maintain consistent whitespace - 2-space indentation, trailing newlines in all files, etc. - - Any time you make a change to your PR, please rebase freshly on top of master. Nobody likes merge commits. - -Even if you don't have all of these items covered, please still feel free to submit a PR/issue! Someone else may be inspired and volunteer to complete it for you. - -Thanks again! diff --git a/buildroot-external/rootfs-overlay/root/.nvm/Dockerfile b/buildroot-external/rootfs-overlay/root/.nvm/Dockerfile deleted file mode 100644 index 79cb15b3..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/Dockerfile +++ /dev/null @@ -1,108 +0,0 @@ -# Dockerized nvm development environment -# -# This Dockerfile is for building nvm development environment only, -# not for any distribution/production usage. -# -# Please note that it'll use about 1.2 GB disk space and about 15 minutes to -# build this image, it depends on your hardware. - -# Use Ubuntu Trusty Tahr as base image as we're using on Travis CI -# I also tested with Ubuntu 16.04, should be good with it! -From ubuntu:14.04 -MAINTAINER Peter Dave Hello - -# Prevent dialog during apt install -ENV DEBIAN_FRONTEND noninteractive - -# ShellCheck version -ENV SHELLCHECK_VERSION=0.4.7 - -# Pick a Ubuntu apt mirror site for better speed -# ref: https://launchpad.net/ubuntu/+archivemirrors -ENV UBUNTU_APT_SITE ubuntu.cs.utah.edu - -# Disable src package source -RUN sed -i 's/^deb-src\ /\#deb-src\ /g' /etc/apt/sources.list - -# Replace origin apt package site with the mirror site -RUN sed -E -i "s/([a-z]+.)?archive.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list -RUN sed -i "s/security.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list - -# Install apt packages -RUN apt update && \ - apt upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" && \ - apt install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \ - coreutils \ - util-linux \ - bsdutils \ - file \ - openssl \ - ca-certificates \ - ssh \ - wget \ - patch \ - sudo \ - htop \ - dstat \ - vim \ - tmux \ - curl \ - git \ - jq \ - realpath \ - zsh \ - ksh \ - gcc-4.8 \ - g++-4.8 \ - xz-utils \ - build-essential \ - bash-completion && \ - apt-get clean - -# ShellCheck with Ubuntu 14.04 container workaround -RUN wget https://storage.googleapis.com/shellcheck/shellcheck-v$SHELLCHECK_VERSION.linux.x86_64.tar.xz -O- | \ - tar xJvf - shellcheck-v$SHELLCHECK_VERSION/shellcheck && \ - mv shellcheck-v$SHELLCHECK_VERSION/shellcheck /bin && \ - rmdir shellcheck-v$SHELLCHECK_VERSION && \ - touch /tmp/libc.so.6 && \ - echo "alias shellcheck='LD_LIBRARY_PATH=/tmp /bin/shellcheck'" >> /etc/bash.bashrc -RUN LD_LIBRARY_PATH=/tmp shellcheck -V - -# Set locale -RUN locale-gen en_US.UTF-8 - -# Print tool versions -RUN bash --version | head -n 1 -RUN zsh --version -RUN ksh --version || true -RUN dpkg -s dash | grep ^Version | awk '{print $2}' -RUN git --version -RUN curl --version -RUN wget --version - -# Add user "nvm" as non-root user -RUN useradd -ms /bin/bash nvm - -# Set sudoer for "nvm" -RUN echo 'nvm ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers - -# Switch to user "nvm" from now -USER nvm - -# nvm -COPY . /home/nvm/.nvm/ -RUN sudo chown nvm:nvm -R $HOME/.nvm -RUN echo 'export NVM_DIR="$HOME/.nvm"' >> $HOME/.bashrc -RUN echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> $HOME/.bashrc -RUN echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> $HOME/.bashrc - -# nodejs and tools -RUN bash -c 'source $HOME/.nvm/nvm.sh && \ - nvm install node && \ - npm install -g doctoc urchin && \ - npm install --prefix "$HOME/.nvm/"' - -# Set WORKDIR to nvm directory -WORKDIR /home/nvm/.nvm - -ENTRYPOINT /bin/bash diff --git a/buildroot-external/rootfs-overlay/root/.nvm/LICENSE.md b/buildroot-external/rootfs-overlay/root/.nvm/LICENSE.md deleted file mode 100644 index 2b115b16..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2010 Tim Caswell - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/buildroot-external/rootfs-overlay/root/.nvm/Makefile b/buildroot-external/rootfs-overlay/root/.nvm/Makefile deleted file mode 100644 index db0c21fa..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/Makefile +++ /dev/null @@ -1,85 +0,0 @@ - # Since we rely on paths relative to the makefile location, abort if make isn't being run from there. -$(if $(findstring /,$(MAKEFILE_LIST)),$(error Please only invoke this makefile from the directory it resides in)) - # Note: With Travis CI: - # - the path to urchin is passed via the command line. - # - the other utilities are NOT needed, so we skip the test for their existence. -URCHIN := urchin -ifeq ($(findstring /,$(URCHIN)),) # urchin path was NOT passed in. - # Add the local npm packages' bin folder to the PATH, so that `make` can find them, when invoked directly. - # Note that rather than using `$(npm bin)` the 'node_modules/.bin' path component is hard-coded, so that invocation works even from an environment - # where npm is (temporarily) unavailable due to having deactivated an nvm instance loaded into the calling shell in order to avoid interference with tests. - export PATH := $(shell printf '%s' "$$PWD/node_modules/.bin:$$PATH") - # The list of all supporting utilities, installed with `npm install`. - UTILS := $(URCHIN) replace semver - # Make sure that all required utilities can be located. - UTIL_CHECK := $(or $(shell PATH="$(PATH)" which $(UTILS) >/dev/null && echo 'ok'),$(error Did you forget to run `npm install` after cloning the repo? At least one of the required supporting utilities not found: $(UTILS))) -endif - # The files that need updating when incrementing the version number. -VERSIONED_FILES := nvm.sh install.sh README.md package.json - # Define all shells to test with. Can be overridden with `make SHELLS=... `. -SHELLS := sh bash dash zsh # ksh (#574) - # Generate 'test-' target names from specified shells. - # The embedded shell names are extracted on demand inside the recipes. -SHELL_TARGETS := $(addprefix test-,$(SHELLS)) - # Define the default test suite(s). This can be overridden with `make TEST_SUITE=<...> `. - # Test suites are the names of subfolders of './test'. -TEST_SUITE := $(shell find ./test/* -type d -prune -exec basename {} \;) - - -# Default target (by virtue of being the first non '.'-prefixed in the file). -.PHONY: _no-target-specified -_no-target-specified: - $(error Please specify the target to make - `make list` shows targets. Alternatively, use `npm test` to run the default tests; `npm run` shows all tests) - -# Lists all targets defined in this makefile. -.PHONY: list -list: - @$(MAKE) -pRrn : -f $(MAKEFILE_LIST) 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | sort - -# Set of test- targets; each runs the specified test suites for a single shell. -# Note that preexisting NVM_* variables are unset to avoid interfering with tests, except when running the Travis tests (where NVM_DIR must be passed in and the env. is assumed to be pristine). -.PHONY: $(SHELL_TARGETS) -$(SHELL_TARGETS): - @shell='$@'; shell=$${shell##*-}; which "$$shell" >/dev/null || { printf '\033[0;31m%s\033[0m\n' "WARNING: Cannot test with shell '$$shell': not found." >&2; exit 0; } && \ - printf '\n\033[0;34m%s\033[0m\n' "Running tests in $$shell"; \ - [ -z "$$TRAVIS_BUILD_DIR" ] && for v in $$(set | awk -F'=' '$$1 ~ "^NVM_" { print $$1 }'); do unset $$v; done && unset v; \ - for suite in $(TEST_SUITE); do $(URCHIN) -f -s $$shell test/$$suite || exit; done - -# All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS). -.PHONY: test -test: $(SHELL_TARGETS) - -.PHONY: _ensure-tag -_ensure-tag: -ifndef TAG - $(error Please invoke with `make TAG= release`, where is either an increment specifier (patch, minor, major, prepatch, preminor, premajor, prerelease), or an explicit major.minor.patch version number) -endif - -# Ensures there are version tags in repository -.PHONY: _ensure-current-version - -_ensure-current-version: -ifeq ($(shell git tag),$(printf '')) - @git fetch --tags -endif - -# Ensures that the git workspace is clean. -.PHONY: _ensure-clean -_ensure-clean: - @[ -z "$$(git status --porcelain --untracked-files=no || echo err)" ] || { echo "Workspace is not clean; please commit changes first." >&2; exit 2; } - -# Makes a release; invoke with `make TAG= release`. -.PHONY: release -release: _ensure-tag _ensure-clean _ensure-current-version - @old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \ - new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \ - if printf "$$new_ver" | grep -q '^[0-9]'; then \ - semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \ - semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \ - else \ - new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \ - fi; \ - printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \ - replace "$$old_ver" "$$new_ver" -- $(VERSIONED_FILES) && \ - git commit -m "v$$new_ver" $(VERSIONED_FILES) && \ - git tag -a "v$$new_ver" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/README.md b/buildroot-external/rootfs-overlay/root/.nvm/README.md deleted file mode 100644 index 330d1649..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/README.md +++ /dev/null @@ -1,587 +0,0 @@ -# Node Version Manager [![Build Status](https://travis-ci.org/creationix/nvm.svg?branch=master)][3] [![nvm version](https://img.shields.io/badge/version-v0.33.11-yellow.svg)][4] [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684) - - - -## Table of Contents - -- [Installation](#installation) - - [Install script](#install-script) - - [Verify installation](#verify-installation) - - [Important Notes](#important-notes) - - [Git install](#git-install) - - [Manual Install](#manual-install) - - [Manual upgrade](#manual-upgrade) -- [Usage](#usage) - - [Long-term support](#long-term-support) - - [Migrating global packages while installing](#migrating-global-packages-while-installing) - - [Default global packages from file while installing](#default-global-packages-from-file-while-installing) - - [io.js](#iojs) - - [System version of node](#system-version-of-node) - - [Listing versions](#listing-versions) - - [.nvmrc](#nvmrc) - - [Deeper Shell Integration](#deeper-shell-integration) - - [zsh](#zsh) - - [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file) -- [License](#license) -- [Running tests](#running-tests) -- [Bash completion](#bash-completion) - - [Usage](#usage-1) -- [Compatibility Issues](#compatibility-issues) -- [Installing nvm on Alpine Linux](#installing-nvm-on-alpine-linux) -- [Removal](#removal) - - [Manual Uninstall](#manual-uninstall) -- [Docker for development environment](#docker-for-development-environment) -- [Problems](#problems) -- [Mac OS "troubleshooting"](#mac-os-troubleshooting) - - - -## Installation - -### Install script - -To install or update nvm, you can use the [install script][2] using cURL: - -```sh -curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash -``` - -or Wget: - -```sh -wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash -``` - -The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). - -```sh -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -``` - -You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables. -Eg: `curl ... | NVM_DIR="path/to/nvm"`. Ensure that the `NVM_DIR` does not contain a trailing slash. - -*NB. The installer can use `git`, `curl`, or `wget` to download `nvm`, whatever is available.* - -**Note:** On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type: - -```sh -command -v nvm -``` -simply close your current terminal, open a new terminal, and try verifying again. - -**Note:** Since OS X 10.9, `/usr/bin/git` was preset by Xcode command line tools, which caused Git can't be properly detected if it's installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see [#1782](https://github.com/creationix/nvm/issues/1782)) - -**Note:** On OS X, if you get `nvm: command not found` after running the install script, one of the following might be the reason:- - - your system may not have a [`.bash_profile file`] where the command is set up. Simply create one with `touch ~/.bash_profile` and run the install script again - - you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry. - -If the above doesn't fix the problem, open your `.bash_profile` and add the following line of code: - -`source ~/.bashrc` - -- For more information about this issue and possible workarounds, please [refer here](https://github.com/creationix/nvm/issues/576) - -### Verify installation - -To verify that nvm has been installed, do: - -```sh -command -v nvm -``` - -which should output 'nvm' if the installation was successful. Please note that `which nvm` will not work, since `nvm` is a sourced shell function, not an executable binary. - -### Important Notes - -If you're running a system without prepackaged binary available, which means you're going to install nodejs or io.js from its source code, you need to make sure your system has a C++ compiler. For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the `build-essential` and `libssl-dev` packages work. - -**Note:** `nvm` does not support Windows (see [#284](https://github.com/creationix/nvm/issues/284)). Two alternatives exist, which are neither supported nor developed by us: - - [nvm-windows](https://github.com/coreybutler/nvm-windows) - - [nodist](https://github.com/marcelklehr/nodist) - -**Note:** `nvm` does not support [Fish] either (see [#303](https://github.com/creationix/nvm/issues/303)). Alternatives exist, which are neither supported nor developed by us: - - [bass](https://github.com/edc/bass) allows you to use utilities written for Bash in fish shell - - [fast-nvm-fish](https://github.com/brigand/fast-nvm-fish) only works with version numbers (not aliases) but doesn't significantly slow your shell startup - - [plugin-nvm](https://github.com/derekstavis/plugin-nvm) plugin for [Oh My Fish](https://github.com/oh-my-fish/oh-my-fish), which makes nvm and its completions available in fish shell - - [fnm](https://github.com/fisherman/fnm) - [fisherman](https://github.com/fisherman/fisherman)-based version manager for fish - -**Note:** We still have some problems with FreeBSD, because there is no official pre-built binary for FreeBSD, and building from source may need [patches](https://www.freshports.org/www/node/files/patch-deps_v8_src_base_platform_platform-posix.cc); see the issue ticket: - - [[#900] [Bug] nodejs on FreeBSD may need to be patched ](https://github.com/creationix/nvm/issues/900) - - [nodejs/node#3716](https://github.com/nodejs/node/issues/3716) - -**Note:** On OS X, if you do not have Xcode installed and you do not wish to download the ~4.3GB file, you can install the `Command Line Tools`. You can check out this blog post on how to just that: - - [How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/) - -**Note:** On OS X, if you have/had a "system" node installed and want to install modules globally, keep in mind that: - - When using nvm you do not need `sudo` to globally install a module with `npm -g`, so instead of doing `sudo npm install -g grunt`, do instead `npm install -g grunt` - - If you have an `~/.npmrc` file, make sure it does not contain any `prefix` settings (which is not compatible with nvm) - - You can (but should not?) keep your previous "system" node install, but nvm will only be available to your user account (the one used to install nvm). This might cause version mismatches, as other users will be using `/usr/local/lib/node_modules/*` VS your user account using `~/.nvm/versions/node/vX.X.X/lib/node_modules/*` - -Homebrew installation is not supported. If you have issues with homebrew-installed `nvm`, please `brew uninstall` it, and install it using the instructions below, before filing an issue. - -**Note:** If you're using `zsh` you can easily install `nvm` as a zsh plugin. Install [`zsh-nvm`](https://github.com/lukechilds/zsh-nvm) and run `nvm upgrade` to upgrade. - -**Note:** Git versions before v1.7 may face a problem of cloning nvm source from GitHub via https protocol, and there is also different behavior of git before v1.6, and git prior to [v1.17.10](https://github.com/git/git/commit/5a7d5b683f869d3e3884a89775241afa515da9e7) can not clone tags, so the minimum required git version is v1.7.10. If you are interested in the problem we mentioned here, please refer to GitHub's [HTTPS cloning errors](https://help.github.com/articles/https-cloning-errors/) article. - -### Git install - -If you have `git` installed (requires git v1.7.10+): - -1. clone this repo in the root of your user profile - - `cd ~/` from anywhere then `git clone https://github.com/creationix/nvm.git .nvm` -2. `cd ~/.nvm` and check out the latest version with `git checkout v0.33.11` -3. activate nvm by sourcing it from your shell: `. nvm.sh` - -Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login: -(you may have to add to more than one of the above files) - -```sh -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -``` - -### Manual Install - -For a fully manual install, create a folder somewhere in your filesystem with the `nvm.sh` file inside it. I put mine in `~/.nvm` and added the following to the `nvm.sh` file. - -```sh -export NVM_DIR="$HOME/.nvm" && ( - git clone https://github.com/creationix/nvm.git "$NVM_DIR" - cd "$NVM_DIR" - git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` -) && \. "$NVM_DIR/nvm.sh" -``` - -Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login: -(you may have to add to more than one of the above files) - -```sh -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -``` - -### Manual upgrade - -For manual upgrade with `git` (requires git v1.7.10+): - -1. change to the `$NVM_DIR` -1. pull down the latest changes -1. check out the latest version -1. activate the new version - -```sh -( - cd "$NVM_DIR" - git fetch origin - git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` -) && \. "$NVM_DIR/nvm.sh" -``` - -## Usage - -To download, compile, and install the latest release of node, do this: - -```sh -nvm install node -``` - -And then in any new shell just use the installed version: - -```sh -nvm use node -``` - -Or you can just run it: - -```sh -nvm run node --version -``` -Or, you can run any arbitrary command in a subshell with the desired version of node: - -```sh -nvm exec 4.2 node --version -``` - -You can also get the path to the executable to where it was installed: - -```sh -nvm which 5.0 -``` - -In place of a version pointer like "0.10" or "5.0" or "4.2.1", you can use the following special default aliases with `nvm install`, `nvm use`, `nvm run`, `nvm exec`, `nvm which`, etc: - - - `node`: this installs the latest version of [`node`](https://nodejs.org/en/) - - `iojs`: this installs the latest version of [`io.js`](https://iojs.org/en/) - - `stable`: this alias is deprecated, and only truly applies to `node` `v0.12` and earlier. Currently, this is an alias for `node`. - - `unstable`: this alias points to `node` `v0.11` - the last "unstable" node release, since post-1.0, all node versions are stable. (in SemVer, versions communicate breakage, not stability). - -### Long-term support -Node has a [schedule](https://github.com/nodejs/LTS#lts_schedule) for long-term support (LTS) You can reference LTS versions in aliases and `.nvmrc` files with the notation `lts/*` for the latest LTS, and `lts/argon` for LTS releases from the "argon" line, for example. In addition, the following commands support LTS arguments: - - `nvm install --lts` / `nvm install --lts=argon` / `nvm install 'lts/*'` / `nvm install lts/argon` - - `nvm uninstall --lts` / `nvm uninstall --lts=argon` / `nvm uninstall 'lts/*'` / `nvm uninstall lts/argon` - - `nvm use --lts` / `nvm use --lts=argon` / `nvm use 'lts/*'` / `nvm use lts/argon` - - `nvm exec --lts` / `nvm exec --lts=argon` / `nvm exec 'lts/*'` / `nvm exec lts/argon` - - `nvm run --lts` / `nvm run --lts=argon` / `nvm run 'lts/*'` / `nvm run lts/argon` - - `nvm ls-remote --lts` / `nvm ls-remote --lts=argon` `nvm ls-remote 'lts/*'` / `nvm ls-remote lts/argon` - - `nvm version-remote --lts` / `nvm version-remote --lts=argon` / `nvm version-remote 'lts/*'` / `nvm version-remote lts/argon` - -Any time your local copy of `nvm` connects to https://nodejs.org, it will re-create the appropriate local aliases for all available LTS lines. These aliases (stored under `$NVM_DIR/alias/lts`), are managed by `nvm`, and you should not modify, remove, or create these files - expect your changes to be undone, and expect meddling with these files to cause bugs that will likely not be supported. - -### Migrating global packages while installing -If you want to install a new version of Node.js and migrate npm packages from a previous version: - -```sh -nvm install node --reinstall-packages-from=node -``` - -This will first use "nvm version node" to identify the current version you're migrating packages from. Then it resolves the new version to install from the remote server and installs it. Lastly, it runs "nvm reinstall-packages" to reinstall the npm packages from your prior version of Node to the new one. - -You can also install and migrate npm packages from specific versions of Node like this: - -```sh -nvm install 6 --reinstall-packages-from=5 -nvm install v4.2 --reinstall-packages-from=iojs -``` - -### Default global packages from file while installing - -If you have a list of default packages you want installed every time you install a new version we support that too. You can add anything npm would accept as a package argument on the command line. - -```sh -# $NVM_DIR/default-packages - -rimraf -object-inspect@1.0.2 -stevemao/left-pad -``` - -### io.js -If you want to install [io.js](https://github.com/iojs/io.js/): - -```sh -nvm install iojs -``` - -If you want to install a new version of io.js and migrate npm packages from a previous version: - -```sh -nvm install iojs --reinstall-packages-from=iojs -``` - -The same guidelines mentioned for migrating npm packages in Node.js are applicable to io.js. - -### System version of node -If you want to use the system-installed version of node, you can use the special default alias "system": - -```sh -nvm use system -nvm run system --version -``` - -### Listing versions -If you want to see what versions are installed: - -```sh -nvm ls -``` - -If you want to see what versions are available to install: - -```sh -nvm ls-remote -``` - -To restore your PATH, you can deactivate it: - -```sh -nvm deactivate -``` - -To set a default Node version to be used in any new shell, use the alias 'default': - -```sh -nvm alias default node -``` - -To use a mirror of the node binaries, set `$NVM_NODEJS_ORG_MIRROR`: - -```sh -export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist -nvm install node - -NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 4.2 -``` - -To use a mirror of the io.js binaries, set `$NVM_IOJS_ORG_MIRROR`: - -```sh -export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist -nvm install iojs-v1.0.3 - -NVM_IOJS_ORG_MIRROR=https://iojs.org/dist nvm install iojs-v1.0.3 -``` - -`nvm use` will not, by default, create a "current" symlink. Set `$NVM_SYMLINK_CURRENT` to "true" to enable this behavior, which is sometimes useful for IDEs. Note that using `nvm` in multiple shell tabs with this environment variable enabled can cause race conditions. - -### .nvmrc - -You can create a `.nvmrc` file containing a node version number (or any other string that `nvm` understands; see `nvm --help` for details) in the project root directory (or any parent directory). -Afterwards, `nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will use the version specified in the `.nvmrc` file if no version is supplied on the command line. - -For example, to make nvm default to the latest 5.9 release, the latest LTS version, or the latest node version for the current directory: - -```sh -$ echo "5.9" > .nvmrc - -$ echo "lts/*" > .nvmrc # to default to the latest LTS version - -$ echo "node" > .nvmrc # to default to the latest version -``` - -Then when you run nvm: - -```sh -$ nvm use -Found '/path/to/project/.nvmrc' with version <5.9> -Now using node v5.9.1 (npm v3.7.3) -``` - -`nvm use` et. al. will traverse directory structure upwards from the current directory looking for the `.nvmrc` file. In other words, running `nvm use` et. al. in any subdirectory of a directory with an `.nvmrc` will result in that `.nvmrc` being utilized. - -The contents of a `.nvmrc` file **must** be the `` (as described by `nvm --help`) followed by a newline. No trailing spaces are allowed, and the trailing newline is required. - -### Deeper Shell Integration - -You can use [`avn`](https://github.com/wbyoung/avn) to deeply integrate into your shell and automatically invoke `nvm` when changing directories. `avn` is **not** supported by the `nvm` development team. Please [report issues to the `avn` team](https://github.com/wbyoung/avn/issues/new). - -If you prefer a lighter-weight solution, the recipes below have been contributed by `nvm` users. They are **not** supported by the `nvm` development team. We are, however, accepting pull requests for more examples. - -#### zsh - -##### Calling `nvm use` automatically in a directory with a `.nvmrc` file - -Put this into your `$HOME/.zshrc` to call `nvm use` automatically whenever you enter a directory that contains an -`.nvmrc` file with a string telling nvm which node to `use`: - -```zsh -# place this after nvm initialization! -autoload -U add-zsh-hook -load-nvmrc() { - local node_version="$(nvm version)" - local nvmrc_path="$(nvm_find_nvmrc)" - - if [ -n "$nvmrc_path" ]; then - local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") - - if [ "$nvmrc_node_version" = "N/A" ]; then - nvm install - elif [ "$nvmrc_node_version" != "$node_version" ]; then - nvm use - fi - elif [ "$node_version" != "$(nvm version default)" ]; then - echo "Reverting to nvm default version" - nvm use default - fi -} -add-zsh-hook chpwd load-nvmrc -load-nvmrc -``` - -## License - -nvm is released under the MIT license. - - -Copyright (C) 2010 Tim Caswell and Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -## Running tests -Tests are written in [Urchin]. Install Urchin (and other dependencies) like so: - - npm install - -There are slow tests and fast tests. The slow tests do things like install node -and check that the right versions are used. The fast tests fake this to test -things like aliases and uninstalling. From the root of the nvm git repository, -run the fast tests like this: - - npm run test/fast - -Run the slow tests like this: - - npm run test/slow - -Run all of the tests like this: - - npm test - -Nota bene: Avoid running nvm while the tests are running. - -## Bash completion - -To activate, you need to source `bash_completion`: - -```sh -[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion -``` - -Put the above sourcing line just below the sourcing line for nvm in your profile (`.bashrc`, `.bash_profile`). - -### Usage - -nvm: -> $ nvm Tab -``` -alias deactivate install ls run unload -clear-cache exec list ls-remote unalias use -current help list-remote reinstall-packages uninstall version -``` - -nvm alias: -> $ nvm alias Tab -``` -default -``` - -> $ nvm alias my_alias Tab -``` -v0.6.21 v0.8.26 v0.10.28 -``` - -nvm use: -> $ nvm use Tab -``` -my_alias default v0.6.21 v0.8.26 v0.10.28 -``` - -nvm uninstall: -> $ nvm uninstall Tab -``` -my_alias default v0.6.21 v0.8.26 v0.10.28 -``` - -## Compatibility Issues -`nvm` will encounter some issues if you have some non-default settings set. (see [#606](/../../issues/606)) -The following are known to cause issues: - -Inside `~/.npmrc`: -```sh -prefix='some/path' -``` -Environment Variables: -```sh -$NPM_CONFIG_PREFIX -$PREFIX -``` -Shell settings: -```sh -set -e -``` - -## Installing nvm on Alpine Linux -In order to provide the best performance (and other optimisations), nvm will download and install pre-compiled binaries for Node (and npm) when you run `nvm install X`. The Node project compiles, tests and hosts/provides pre-these compiled binaries which are built for mainstream/traditional Linux distributions (such as Debian, Ubuntu, CentOS, RedHat et al). - -Alpine Linux, unlike mainstream/traditional Linux distributions, is based on [BusyBox](https://www.busybox.net/), a very compact (~5MB) Linux distribution. BusyBox (and thus Alpine Linux) uses a different C/C++ stack to most mainstream/traditional Linux distributions - [musl](https://www.musl-libc.org/). This makes binary programs built for such mainstream/traditional incompatible with Alpine Linux, thus we cannot simply `nvm install X` on Alpine Linux and expect the downloaded binary to run correctly - you'll likely see "...does not exist" errors if you try that. - -There is a `-s` flag for `nvm install` which requests nvm download Node source and compile it locally. - -If installing nvm on Alpine Linux *is* still what you want or need to do, you should be able to achieve this by running the following from you Alpine Linux shell: - -```sh -apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils -curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash -``` - -The Node project has some desire but no concrete plans (due to the overheads of building, testing and support) to offer Alpine-compatible binaries. - -As a potential alternative, @mhart (a Node contributor) has some [Docker images for Alpine Linux with Node and optionally, npm, pre-installed](https://github.com/mhart/alpine-node). - -## Removal - -### Manual Uninstall - -To remove nvm manually, execute the following: -```sh -$ rm -rf "$NVM_DIR" -``` - -Edit ~/.bashrc (or other shell resource config) and remove the lines below: -```sh -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion -``` - -## Docker for development environment - -To make the development and testing work easier, we have a Dockerfile for development usage, which is based on Ubuntu 14.04 base image, prepared with essential and useful tools for `nvm` development, to build the docker image of the environment, run the docker command at the root of `nvm` repository: - -```sh -$ docker build -t nvm-dev . -``` - -This will package your current nvm repository with our pre-defined development environment into a docker image named `nvm-dev`, once it's built with success, validate your image via `docker images`: - -```sh -$ docker images - -REPOSITORY TAG IMAGE ID CREATED SIZE -nvm-dev latest 9ca4c57a97d8 7 days ago 650 MB -``` - -If you got no error message, now you can easily involve in: - -```sh -$ docker run -it nvm-dev -h nvm-dev - -nvm@nvm-dev:~/.nvm$ -``` - -Please note that it'll take about 8 minutes to build the image and the image size would be about 650MB, so it's not suitable for production usage. - -For more information and documentation about docker, please refer to its official website: - - https://www.docker.com/ - - https://docs.docker.com/ - -## Problems - - - If you try to install a node version and the installation fails, be sure to delete the node downloads from src (`~/.nvm/src/`) or you might get an error when trying to reinstall them again or you might get an error like the following: - - curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. - - - Where's my `sudo node`? Check out [#43](https://github.com/creationix/nvm/issues/43) - - - After the v0.8.6 release of node, nvm tries to install from binary packages. But in some systems, the official binary packages don't work due to incompatibility of shared libs. In such cases, use `-s` option to force install from source: - -```sh -nvm install -s 0.8.6 -``` - - - If setting the `default` alias does not establish the node version in new shells (i.e. `nvm current` yields `system`), ensure that the system's node `PATH` is set before the `nvm.sh` source line in your shell profile (see [#658](https://github.com/creationix/nvm/issues/658)) - -## Mac OS "troubleshooting" - -**nvm node version not found in vim shell** - -If you set node version to a version other than your system node version `nvm use 6.2.1` and open vim and run `:!node -v` you should see `v6.2.1` if you see your system version `v0.12.7`. You need to run: - -```shell -sudo chmod ugo-x /usr/libexec/path_helper -``` - -More on this issue in [dotphiles/dotzsh](https://github.com/dotphiles/dotzsh#mac-os-x). - -[1]: https://github.com/creationix/nvm.git -[2]: https://github.com/creationix/nvm/blob/v0.33.11/install.sh -[3]: https://travis-ci.org/creationix/nvm -[4]: https://github.com/creationix/nvm/releases/tag/v0.33.11 -[Urchin]: https://github.com/scraperwiki/urchin -[Fish]: http://fishshell.com diff --git a/buildroot-external/rootfs-overlay/root/.nvm/ROADMAP.md b/buildroot-external/rootfs-overlay/root/.nvm/ROADMAP.md deleted file mode 100644 index 80e89b81..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/ROADMAP.md +++ /dev/null @@ -1,9 +0,0 @@ -# nvm Road Map - -This is a list of the primary features planned for `nvm`: - -- [x] Rewriting installation code paths to support installing `io.js` and `node` `v4+` [from source](https://github.com/creationix/nvm/issues/1188). - - This will include [reusing previously downloaded tarballs](https://github.com/creationix/nvm/issues/1193) that match checksums, which is a nice performance and bandwidth bonus. -- [ ] Adding opt-in environment variable support to list, download, and install `node` [release candidates](https://github.com/creationix/nvm/issues/779), and [nightly builds](https://github.com/creationix/nvm/issues/1053). -- [ ] [`nvm update`](https://github.com/creationix/nvm/issues/400): the ability to autoupdate `nvm` itself -- [ ] [v1.0.0](https://github.com/creationix/nvm/milestone/1), including updating the [nvm on npm](https://github.com/creationix/nvm/issues/304) to auto-install nvm properly diff --git a/buildroot-external/rootfs-overlay/root/.nvm/bash_completion b/buildroot-external/rootfs-overlay/root/.nvm/bash_completion deleted file mode 100644 index 43df83ba..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/bash_completion +++ /dev/null @@ -1,98 +0,0 @@ -#!/usr/bin/env bash - -# bash completion for Node Version Manager (NVM) - -if ! command -v nvm &> /dev/null; then - return -fi - -__nvm_generate_completion() -{ - declare current_word - current_word="${COMP_WORDS[COMP_CWORD]}" - # shellcheck disable=SC2207 - COMPREPLY=($(compgen -W "$1" -- "$current_word")) - return 0 -} - -__nvm_commands () -{ - declare current_word - declare command - - current_word="${COMP_WORDS[COMP_CWORD]}" - - COMMANDS=' - help install uninstall use run exec - alias unalias reinstall-packages - current list ls list-remote ls-remote - install-latest-npm - cache deactivate unload - version version-remote which' - - if [ ${#COMP_WORDS[@]} == 4 ]; then - - command="${COMP_WORDS[COMP_CWORD-2]}" - case "${command}" in - alias) __nvm_installed_nodes ;; - esac - - else - - case "${current_word}" in - -*) __nvm_options ;; - *) __nvm_generate_completion "$COMMANDS" ;; - esac - - fi -} - -__nvm_options () -{ - OPTIONS='' - __nvm_generate_completion "$OPTIONS" -} - -__nvm_installed_nodes () -{ - __nvm_generate_completion "$(nvm_ls) $(__nvm_aliases)" -} - -__nvm_aliases () -{ - declare aliases - aliases="" - if [ -d "$NVM_DIR/alias" ]; then - aliases="$(cd "$NVM_DIR/alias" && command find "$PWD" -type f | command sed "s:$PWD/::")" - fi - echo "${aliases} node stable unstable iojs" -} - -__nvm_alias () -{ - __nvm_generate_completion "$(__nvm_aliases)" -} - -__nvm () -{ - declare previous_word - previous_word="${COMP_WORDS[COMP_CWORD-1]}" - - case "$previous_word" in - use|run|exec|ls|list|uninstall) __nvm_installed_nodes ;; - alias|unalias) __nvm_alias ;; - *) __nvm_commands ;; - esac - - return 0 -} - -# complete is a bash builtin, but recent versions of ZSH come with a function -# called bashcompinit that will create a complete in ZSH. If the user is in -# ZSH, load and run bashcompinit before calling the complete function. -if [[ -n ${ZSH_VERSION-} ]]; then - autoload -U +X bashcompinit && bashcompinit - autoload -U +X compinit && compinit -fi - -complete -o default -F __nvm nvm diff --git a/buildroot-external/rootfs-overlay/root/.nvm/install.sh b/buildroot-external/rootfs-overlay/root/.nvm/install.sh deleted file mode 100755 index 77f7f31c..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/install.sh +++ /dev/null @@ -1,400 +0,0 @@ -#!/usr/bin/env bash - -{ # this ensures the entire script is downloaded # - -nvm_has() { - type "$1" > /dev/null 2>&1 -} - -nvm_install_dir() { - command printf %s "${NVM_DIR:-"$HOME/.nvm"}" -} - -nvm_latest_version() { - echo "v0.33.11" -} - -nvm_profile_is_bash_or_zsh() { - local TEST_PROFILE - TEST_PROFILE="${1-}" - case "${TEST_PROFILE-}" in - *"/.bashrc" | *"/.bash_profile" | *"/.zshrc") - return - ;; - *) - return 1 - ;; - esac -} - -# -# Outputs the location to NVM depending on: -# * The availability of $NVM_SOURCE -# * The method used ("script" or "git" in the script, defaults to "git") -# NVM_SOURCE always takes precedence unless the method is "script-nvm-exec" -# -nvm_source() { - local NVM_METHOD - NVM_METHOD="$1" - local NVM_SOURCE_URL - NVM_SOURCE_URL="$NVM_SOURCE" - if [ "_$NVM_METHOD" = "_script-nvm-exec" ]; then - NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/nvm-exec" - elif [ "_$NVM_METHOD" = "_script-nvm-bash-completion" ]; then - NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/bash_completion" - elif [ -z "$NVM_SOURCE_URL" ]; then - if [ "_$NVM_METHOD" = "_script" ]; then - NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/nvm.sh" - elif [ "_$NVM_METHOD" = "_git" ] || [ -z "$NVM_METHOD" ]; then - NVM_SOURCE_URL="https://github.com/creationix/nvm.git" - else - echo >&2 "Unexpected value \"$NVM_METHOD\" for \$NVM_METHOD" - return 1 - fi - fi - echo "$NVM_SOURCE_URL" -} - -# -# Node.js version to install -# -nvm_node_version() { - echo "$NODE_VERSION" -} - -nvm_download() { - if nvm_has "curl"; then - curl --compressed -q "$@" - elif nvm_has "wget"; then - # Emulate curl with wget - ARGS=$(echo "$*" | command sed -e 's/--progress-bar /--progress=bar /' \ - -e 's/-L //' \ - -e 's/--compressed //' \ - -e 's/-I /--server-response /' \ - -e 's/-s /-q /' \ - -e 's/-o /-O /' \ - -e 's/-C - /-c /') - # shellcheck disable=SC2086 - eval wget $ARGS - fi -} - -install_nvm_from_git() { - local INSTALL_DIR - INSTALL_DIR="$(nvm_install_dir)" - - if [ -d "$INSTALL_DIR/.git" ]; then - echo "=> nvm is already installed in $INSTALL_DIR, trying to update using git" - command printf '\r=> ' - command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" fetch origin tag "$(nvm_latest_version)" --depth=1 2> /dev/null || { - echo >&2 "Failed to update nvm, run 'git fetch' in $INSTALL_DIR yourself." - exit 1 - } - else - # Cloning to $INSTALL_DIR - echo "=> Downloading nvm from git to '$INSTALL_DIR'" - command printf '\r=> ' - mkdir -p "${INSTALL_DIR}" - if [ "$(ls -A "${INSTALL_DIR}")" ]; then - command git init "${INSTALL_DIR}" || { - echo >&2 'Failed to initialize nvm repo. Please report this!' - exit 2 - } - command git --git-dir="${INSTALL_DIR}/.git" remote add origin "$(nvm_source)" 2> /dev/null \ - || command git --git-dir="${INSTALL_DIR}/.git" remote set-url origin "$(nvm_source)" || { - echo >&2 'Failed to add remote "origin" (or set the URL). Please report this!' - exit 2 - } - command git --git-dir="${INSTALL_DIR}/.git" fetch origin tag "$(nvm_latest_version)" --depth=1 || { - echo >&2 'Failed to fetch origin with tags. Please report this!' - exit 2 - } - else - command git -c advice.detachedHead=false clone "$(nvm_source)" -b "$(nvm_latest_version)" --depth=1 "${INSTALL_DIR}" || { - echo >&2 'Failed to clone nvm repo. Please report this!' - exit 2 - } - fi - fi - command git -c advice.detachedHead=false --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" checkout -f --quiet "$(nvm_latest_version)" - if [ ! -z "$(command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" show-ref refs/heads/master)" ]; then - if command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch --quiet 2>/dev/null; then - command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch --quiet -D master >/dev/null 2>&1 - else - echo >&2 "Your version of git is out of date. Please update it!" - command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch -D master >/dev/null 2>&1 - fi - fi - - echo "=> Compressing and cleaning up git repository" - if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" reflog expire --expire=now --all; then - echo >&2 "Your version of git is out of date. Please update it!" - fi - if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --auto --aggressive --prune=now ; then - echo >&2 "Your version of git is out of date. Please update it!" - fi - return -} - -# -# Automatically install Node.js -# -nvm_install_node() { - local NODE_VERSION_LOCAL - NODE_VERSION_LOCAL="$(nvm_node_version)" - - if [ -z "$NODE_VERSION_LOCAL" ]; then - return 0 - fi - - echo "=> Installing Node.js version $NODE_VERSION_LOCAL" - nvm install "$NODE_VERSION_LOCAL" - local CURRENT_NVM_NODE - - CURRENT_NVM_NODE="$(nvm_version current)" - if [ "$(nvm_version "$NODE_VERSION_LOCAL")" == "$CURRENT_NVM_NODE" ]; then - echo "=> Node.js version $NODE_VERSION_LOCAL has been successfully installed" - else - echo >&2 "Failed to install Node.js $NODE_VERSION_LOCAL" - fi -} - -install_nvm_as_script() { - local INSTALL_DIR - INSTALL_DIR="$(nvm_install_dir)" - local NVM_SOURCE_LOCAL - NVM_SOURCE_LOCAL="$(nvm_source script)" - local NVM_EXEC_SOURCE - NVM_EXEC_SOURCE="$(nvm_source script-nvm-exec)" - local NVM_BASH_COMPLETION_SOURCE - NVM_BASH_COMPLETION_SOURCE="$(nvm_source script-nvm-bash-completion)" - - # Downloading to $INSTALL_DIR - mkdir -p "$INSTALL_DIR" - if [ -f "$INSTALL_DIR/nvm.sh" ]; then - echo "=> nvm is already installed in $INSTALL_DIR, trying to update the script" - else - echo "=> Downloading nvm as script to '$INSTALL_DIR'" - fi - nvm_download -s "$NVM_SOURCE_LOCAL" -o "$INSTALL_DIR/nvm.sh" || { - echo >&2 "Failed to download '$NVM_SOURCE_LOCAL'" - return 1 - } & - nvm_download -s "$NVM_EXEC_SOURCE" -o "$INSTALL_DIR/nvm-exec" || { - echo >&2 "Failed to download '$NVM_EXEC_SOURCE'" - return 2 - } & - nvm_download -s "$NVM_BASH_COMPLETION_SOURCE" -o "$INSTALL_DIR/bash_completion" || { - echo >&2 "Failed to download '$NVM_BASH_COMPLETION_SOURCE'" - return 2 - } & - for job in $(jobs -p | command sort) - do - wait "$job" || return $? - done - chmod a+x "$INSTALL_DIR/nvm-exec" || { - echo >&2 "Failed to mark '$INSTALL_DIR/nvm-exec' as executable" - return 3 - } -} - -nvm_try_profile() { - if [ -z "${1-}" ] || [ ! -f "${1}" ]; then - return 1 - fi - echo "${1}" -} - -# -# Detect profile file if not specified as environment variable -# (eg: PROFILE=~/.myprofile) -# The echo'ed path is guaranteed to be an existing file -# Otherwise, an empty string is returned -# -nvm_detect_profile() { - if [ -n "${PROFILE}" ] && [ -f "${PROFILE}" ]; then - echo "${PROFILE}" - return - fi - - local DETECTED_PROFILE - DETECTED_PROFILE='' - - if [ -n "${BASH_VERSION-}" ]; then - if [ -f "$HOME/.bashrc" ]; then - DETECTED_PROFILE="$HOME/.bashrc" - elif [ -f "$HOME/.bash_profile" ]; then - DETECTED_PROFILE="$HOME/.bash_profile" - fi - elif [ -n "${ZSH_VERSION-}" ]; then - DETECTED_PROFILE="$HOME/.zshrc" - fi - - if [ -z "$DETECTED_PROFILE" ]; then - for EACH_PROFILE in ".profile" ".bashrc" ".bash_profile" ".zshrc" - do - if DETECTED_PROFILE="$(nvm_try_profile "${HOME}/${EACH_PROFILE}")"; then - break - fi - done - fi - - if [ ! -z "$DETECTED_PROFILE" ]; then - echo "$DETECTED_PROFILE" - fi -} - -# -# Check whether the user has any globally-installed npm modules in their system -# Node, and warn them if so. -# -nvm_check_global_modules() { - command -v npm >/dev/null 2>&1 || return 0 - - local NPM_VERSION - NPM_VERSION="$(npm --version)" - NPM_VERSION="${NPM_VERSION:--1}" - [ "${NPM_VERSION%%[!-0-9]*}" -gt 0 ] || return 0 - - local NPM_GLOBAL_MODULES - NPM_GLOBAL_MODULES="$( - npm list -g --depth=0 | - command sed -e '/ npm@/d' -e '/ (empty)$/d' - )" - - local MODULE_COUNT - MODULE_COUNT="$( - command printf %s\\n "$NPM_GLOBAL_MODULES" | - command sed -ne '1!p' | # Remove the first line - wc -l | command tr -d ' ' # Count entries - )" - - if [ "${MODULE_COUNT}" != '0' ]; then - # shellcheck disable=SC2016 - echo '=> You currently have modules installed globally with `npm`. These will no' - # shellcheck disable=SC2016 - echo '=> longer be linked to the active version of Node when you install a new node' - # shellcheck disable=SC2016 - echo '=> with `nvm`; and they may (depending on how you construct your `$PATH`)' - # shellcheck disable=SC2016 - echo '=> override the binaries of modules installed with `nvm`:' - echo - - command printf %s\\n "$NPM_GLOBAL_MODULES" - echo '=> If you wish to uninstall them at a later point (or re-install them under your' - # shellcheck disable=SC2016 - echo '=> `nvm` Nodes), you can remove them from the system Node as follows:' - echo - echo ' $ nvm use system' - echo ' $ npm uninstall -g a_module' - echo - fi -} - -nvm_do_install() { - if [ -n "${NVM_DIR-}" ] && ! [ -d "${NVM_DIR}" ]; then - echo >&2 "You have \$NVM_DIR set to \"${NVM_DIR}\", but that directory does not exist. Check your profile files and environment." - exit 1 - fi - if [ -z "${METHOD}" ]; then - # Autodetect install method - if nvm_has git; then - install_nvm_from_git - elif nvm_has nvm_download; then - install_nvm_as_script - else - echo >&2 'You need git, curl, or wget to install nvm' - exit 1 - fi - elif [ "${METHOD}" = 'git' ]; then - if ! nvm_has git; then - echo >&2 "You need git to install nvm" - exit 1 - fi - install_nvm_from_git - elif [ "${METHOD}" = 'script' ]; then - if ! nvm_has nvm_download; then - echo >&2 "You need curl or wget to install nvm" - exit 1 - fi - install_nvm_as_script - fi - - echo - - local NVM_PROFILE - NVM_PROFILE="$(nvm_detect_profile)" - local PROFILE_INSTALL_DIR - PROFILE_INSTALL_DIR="$(nvm_install_dir | command sed "s:^$HOME:\$HOME:")" - - SOURCE_STR="\\nexport NVM_DIR=\"${PROFILE_INSTALL_DIR}\"\\n[ -s \"\$NVM_DIR/nvm.sh\" ] && \\. \"\$NVM_DIR/nvm.sh\" # This loads nvm\\n" - - # shellcheck disable=SC2016 - COMPLETION_STR='[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion\n' - BASH_OR_ZSH=false - - if [ -z "${NVM_PROFILE-}" ] ; then - local TRIED_PROFILE - if [ -n "${PROFILE}" ]; then - TRIED_PROFILE="${NVM_PROFILE} (as defined in \$PROFILE), " - fi - echo "=> Profile not found. Tried ${TRIED_PROFILE-}~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile." - echo "=> Create one of them and run this script again" - echo " OR" - echo "=> Append the following lines to the correct file yourself:" - command printf "${SOURCE_STR}" - echo - else - if nvm_profile_is_bash_or_zsh "${NVM_PROFILE-}"; then - BASH_OR_ZSH=true - fi - if ! command grep -qc '/nvm.sh' "$NVM_PROFILE"; then - echo "=> Appending nvm source string to $NVM_PROFILE" - command printf "${SOURCE_STR}" >> "$NVM_PROFILE" - else - echo "=> nvm source string already in ${NVM_PROFILE}" - fi - # shellcheck disable=SC2016 - if ${BASH_OR_ZSH} && ! command grep -qc '$NVM_DIR/bash_completion' "$NVM_PROFILE"; then - echo "=> Appending bash_completion source string to $NVM_PROFILE" - command printf "$COMPLETION_STR" >> "$NVM_PROFILE" - else - echo "=> bash_completion source string already in ${NVM_PROFILE}" - fi - fi - if ${BASH_OR_ZSH} && [ -z "${NVM_PROFILE-}" ] ; then - echo "=> Please also append the following lines to the if you are using bash/zsh shell:" - command printf "${COMPLETION_STR}" - fi - - # Source nvm - # shellcheck source=/dev/null - \. "$(nvm_install_dir)/nvm.sh" - - nvm_check_global_modules - - nvm_install_node - - nvm_reset - - echo "=> Close and reopen your terminal to start using nvm or run the following to use it now:" - command printf "${SOURCE_STR}" - if ${BASH_OR_ZSH} ; then - command printf "${COMPLETION_STR}" - fi -} - -# -# Unsets the various functions defined -# during the execution of the install script -# -nvm_reset() { - unset -f nvm_has nvm_install_dir nvm_latest_version nvm_profile_is_bash_or_zsh \ - nvm_source nvm_node_version nvm_download install_nvm_from_git nvm_install_node \ - install_nvm_as_script nvm_try_profile nvm_detect_profile nvm_check_global_modules \ - nvm_do_install nvm_reset -} - -[ "_$NVM_ENV" = "_testing" ] || nvm_do_install - -} # this ensures the entire script is downloaded # diff --git a/buildroot-external/rootfs-overlay/root/.nvm/nvm-exec b/buildroot-external/rootfs-overlay/root/.nvm/nvm-exec deleted file mode 100755 index c47cd066..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/nvm-exec +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -# shellcheck disable=SC1090 -\. "$DIR/nvm.sh" --no-use - -if [ -n "$NODE_VERSION" ]; then - nvm use "$NODE_VERSION" > /dev/null || exit 127 -elif ! nvm use >/dev/null 2>&1; then - echo "No NODE_VERSION provided; no .nvmrc file found" >&2 - exit 127 -fi - -exec "$@" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/nvm.sh b/buildroot-external/rootfs-overlay/root/.nvm/nvm.sh deleted file mode 100644 index a039ce39..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/nvm.sh +++ /dev/null @@ -1,3581 +0,0 @@ -# Node Version Manager -# Implemented as a POSIX-compliant function -# Should work on sh, dash, bash, ksh, zsh -# To use source this file from your bash profile -# -# Implemented by Tim Caswell -# with much bash help from Matthew Ranney - -# "local" warning, quote expansion warning -# shellcheck disable=SC2039,SC2016,SC2001 -{ # this ensures the entire script is downloaded # - -NVM_SCRIPT_SOURCE="$_" - -nvm_echo() { - command printf %s\\n "$*" 2>/dev/null -} - -nvm_cd() { - # shellcheck disable=SC1001,SC2164 - \cd "$@" -} - -nvm_err() { - >&2 nvm_echo "$@" -} - -nvm_grep() { - GREP_OPTIONS='' command grep "$@" -} - -nvm_has() { - type "${1-}" > /dev/null 2>&1 -} - -nvm_has_non_aliased() { - nvm_has "${1-}" && ! nvm_is_alias "${1-}" -} - -nvm_is_alias() { - # this is intentionally not "command alias" so it works in zsh. - # shellcheck disable=SC1001 - \alias "${1-}" > /dev/null 2>&1 -} - -nvm_command_info() { - local COMMAND - local INFO - COMMAND="${1}" - if type "${COMMAND}" | nvm_grep -q hashed; then - INFO="$(type "${COMMAND}" | command sed -E 's/\(|)//g' | command awk '{print $4}')" - elif type "${COMMAND}" | nvm_grep -q aliased; then - INFO="$(which "${COMMAND}") ($(type "${COMMAND}" | command awk '{ $1=$2=$3=$4="" ;print }' | command sed -e 's/^\ *//g' -Ee "s/\`|'//g" ))" - elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is an alias for"; then - INFO="$(which "${COMMAND}") ($(type "${COMMAND}" | command awk '{ $1=$2=$3=$4=$5="" ;print }' | command sed 's/^\ *//g'))" - elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is \\/"; then - INFO="$(type "${COMMAND}" | command awk '{print $3}')" - else - INFO="$(type "${COMMAND}")" - fi - nvm_echo "${INFO}" -} - -nvm_has_colors() { - local NVM_COLORS - if nvm_has tput; then - NVM_COLORS="$(tput -T "${TERM:-vt100}" colors)" - fi - [ "${NVM_COLORS:--1}" -ge 8 ] -} - -nvm_curl_libz_support() { - curl -V 2>/dev/null | nvm_grep "^Features:" | nvm_grep -q "libz" -} - -nvm_curl_use_compression() { - nvm_curl_libz_support && nvm_version_greater_than_or_equal_to "$(nvm_curl_version)" 7.21.0; -} - -nvm_get_latest() { - local NVM_LATEST_URL - local CURL_COMPRESSED_FLAG - if nvm_has "curl"; then - if nvm_curl_use_compression; then - CURL_COMPRESSED_FLAG="--compressed" - fi - NVM_LATEST_URL="$(curl ${CURL_COMPRESSED_FLAG:-} -q -w "%{url_effective}\\n" -L -s -S http://latest.nvm.sh -o /dev/null)" - elif nvm_has "wget"; then - NVM_LATEST_URL="$(wget -q http://latest.nvm.sh --server-response -O /dev/null 2>&1 | command awk '/^ Location: /{DEST=$2} END{ print DEST }')" - else - nvm_err 'nvm needs curl or wget to proceed.' - return 1 - fi - if [ -z "${NVM_LATEST_URL}" ]; then - nvm_err "http://latest.nvm.sh did not redirect to the latest release on GitHub" - return 2 - fi - nvm_echo "${NVM_LATEST_URL##*/}" -} - -nvm_download() { - local CURL_COMPRESSED_FLAG - if nvm_has "curl"; then - if nvm_curl_use_compression; then - CURL_COMPRESSED_FLAG="--compressed" - fi - curl --fail ${CURL_COMPRESSED_FLAG:-} -q "$@" - elif nvm_has "wget"; then - # Emulate curl with wget - ARGS=$(nvm_echo "$@" | command sed -e 's/--progress-bar /--progress=bar /' \ - -e 's/--compressed //' \ - -e 's/--fail //' \ - -e 's/-L //' \ - -e 's/-I /--server-response /' \ - -e 's/-s /-q /' \ - -e 's/-o /-O /' \ - -e 's/-C - /-c /') - # shellcheck disable=SC2086 - eval wget $ARGS - fi -} - -nvm_has_system_node() { - [ "$(nvm deactivate >/dev/null 2>&1 && command -v node)" != '' ] -} - -nvm_has_system_iojs() { - [ "$(nvm deactivate >/dev/null 2>&1 && command -v iojs)" != '' ] -} - -nvm_is_version_installed() { - [ -n "${1-}" ] && [ -d "$(nvm_version_path "${1-}" 2> /dev/null)" ] -} - -nvm_print_npm_version() { - if nvm_has "npm"; then - command printf " (npm v$(npm --version 2>/dev/null))" - fi -} - -nvm_install_latest_npm() { - nvm_echo 'Attempting to upgrade to the latest working version of npm...' - local NODE_VERSION - NODE_VERSION="$(nvm_strip_iojs_prefix "$(nvm_ls_current)")" - if [ "${NODE_VERSION}" = 'system' ]; then - NODE_VERSION="$(node --version)" - elif [ "${NODE_VERSION}" = 'none' ]; then - nvm_echo "Detected node version ${NODE_VERSION}, npm version v${NPM_VERSION}" - NODE_VERSION='' - fi - if [ -z "${NODE_VERSION}" ]; then - nvm_err 'Unable to obtain node version.' - return 1 - fi - local NPM_VERSION - NPM_VERSION="$(npm --version 2>/dev/null)" - if [ -z "${NPM_VERSION}" ]; then - nvm_err 'Unable to obtain npm version.' - return 2 - fi - - local NVM_NPM_CMD - NVM_NPM_CMD='npm' - if [ "${NVM_DEBUG-}" = 1 ]; then - nvm_echo "Detected node version ${NODE_VERSION}, npm version v${NPM_VERSION}" - NVM_NPM_CMD='nvm_echo npm' - fi - - local NVM_IS_0_6 - NVM_IS_0_6=0 - if nvm_version_greater_than_or_equal_to "${NODE_VERSION}" 0.6.0 && nvm_version_greater 0.7.0 "${NODE_VERSION}"; then - NVM_IS_0_6=1 - fi - local NVM_IS_0_9 - NVM_IS_0_9=0 - if nvm_version_greater_than_or_equal_to "${NODE_VERSION}" 0.9.0 && nvm_version_greater 0.10.0 "${NODE_VERSION}"; then - NVM_IS_0_9=1 - fi - - if [ $NVM_IS_0_6 -eq 1 ]; then - nvm_echo '* `node` v0.6.x can only upgrade to `npm` v1.3.x' - $NVM_NPM_CMD install -g npm@1.3 - elif [ $NVM_IS_0_9 -eq 0 ]; then - # node 0.9 breaks here, for some reason - if nvm_version_greater_than_or_equal_to "${NPM_VERSION}" 1.0.0 && nvm_version_greater 2.0.0 "${NPM_VERSION}"; then - nvm_echo '* `npm` v1.x needs to first jump to `npm` v1.4.28 to be able to upgrade further' - $NVM_NPM_CMD install -g npm@1.4.28 - elif nvm_version_greater_than_or_equal_to "${NPM_VERSION}" 2.0.0 && nvm_version_greater 3.0.0 "${NPM_VERSION}"; then - nvm_echo '* `npm` v2.x needs to first jump to the latest v2 to be able to upgrade further' - $NVM_NPM_CMD install -g npm@2 - fi - fi - - if [ $NVM_IS_0_9 -eq 1 ] || [ $NVM_IS_0_6 -eq 1 ]; then - nvm_echo '* node v0.6 and v0.9 are unable to upgrade further' - elif nvm_version_greater 1.1.0 "${NODE_VERSION}"; then - nvm_echo '* `npm` v4.5.x is the last version that works on `node` versions < v1.1.0' - $NVM_NPM_CMD install -g npm@4.5 - elif nvm_version_greater 4.0.0 "${NODE_VERSION}"; then - nvm_echo '* `npm` v5 and higher do not work on `node` versions below v4.0.0' - $NVM_NPM_CMD install -g npm@4 - elif [ $NVM_IS_0_9 -eq 0 ] && [ $NVM_IS_0_6 -eq 0 ]; then - local NVM_IS_4_4_OR_BELOW - NVM_IS_4_4_OR_BELOW=0 - if nvm_version_greater 4.5.0 "${NODE_VERSION}"; then - NVM_IS_4_4_OR_BELOW=1 - fi - - local NVM_IS_5_OR_ABOVE - NVM_IS_5_OR_ABOVE=0 - if [ $NVM_IS_4_4_OR_BELOW -eq 0 ] && nvm_version_greater_than_or_equal_to "${NODE_VERSION}" 5.0.0; then - NVM_IS_5_OR_ABOVE=1 - fi - - local NVM_IS_6_OR_ABOVE - NVM_IS_6_OR_ABOVE=0 - if [ $NVM_IS_5_OR_ABOVE -eq 1 ] && nvm_version_greater_than_or_equal_to "${NODE_VERSION}" 6.0.0; then - NVM_IS_6_OR_ABOVE=1 - fi - - if [ $NVM_IS_4_4_OR_BELOW -eq 1 ] || (\ - [ $NVM_IS_5_OR_ABOVE -eq 1 ] && nvm_version_greater 5.10.0 "${NODE_VERSION}"\ - ); then - nvm_echo '* `npm` `v5.3.x` is the last version that works on `node` 4.x versions below v4.4, or 5.x versions below v5.10, due to `Buffer.alloc`' - $NVM_NPM_CMD install -g npm@5.3 - elif [ $NVM_IS_4_4_OR_BELOW -eq 0 ] && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then - nvm_echo '* `npm` `v5.4.1` is the last version that works on `node` `v4.5` and `v4.6`' - $NVM_NPM_CMD install -g npm@5.4.1 - elif [ $NVM_IS_6_OR_ABOVE -eq 0 ]; then - nvm_echo '* `npm` `v5.x` is the last version that works on `node` below `v6.0.0`' - $NVM_NPM_CMD install -g npm@5 - else - nvm_echo '* Installing latest `npm`; if this does not work on your node version, please report a bug!' - $NVM_NPM_CMD install -g npm - fi - fi - nvm_echo "* npm upgraded to: v$(npm --version 2>/dev/null)" -} - -# Make zsh glob matching behave same as bash -# This fixes the "zsh: no matches found" errors -if [ -z "${NVM_CD_FLAGS-}" ]; then - export NVM_CD_FLAGS='' -fi -if nvm_has "unsetopt"; then - unsetopt nomatch 2>/dev/null - NVM_CD_FLAGS="-q" -fi - -# Auto detect the NVM_DIR when not set -if [ -z "${NVM_DIR-}" ]; then - # shellcheck disable=SC2128 - if [ -n "${BASH_SOURCE-}" ]; then - # shellcheck disable=SC2169 - NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}" - fi - # shellcheck disable=SC1001 - NVM_DIR="$(nvm_cd ${NVM_CD_FLAGS} "$(dirname "${NVM_SCRIPT_SOURCE:-$0}")" > /dev/null && \pwd)" - export NVM_DIR -fi -unset NVM_SCRIPT_SOURCE 2> /dev/null - -nvm_tree_contains_path() { - local tree - tree="${1-}" - local node_path - node_path="${2-}" - - if [ "@${tree}@" = "@@" ] || [ "@${node_path}@" = "@@" ]; then - nvm_err "both the tree and the node path are required" - return 2 - fi - - local pathdir - pathdir=$(dirname "${node_path}") - while [ "${pathdir}" != "" ] && [ "${pathdir}" != "." ] && [ "${pathdir}" != "/" ] && [ "${pathdir}" != "${tree}" ]; do - pathdir=$(dirname "${pathdir}") - done - [ "${pathdir}" = "${tree}" ] -} - -# Traverse up in directory tree to find containing folder -nvm_find_up() { - local path_ - path_="${PWD}" - while [ "${path_}" != "" ] && [ ! -f "${path_}/${1-}" ]; do - path_=${path_%/*} - done - nvm_echo "${path_}" -} - - -nvm_find_nvmrc() { - local dir - dir="$(nvm_find_up '.nvmrc')" - if [ -e "${dir}/.nvmrc" ]; then - nvm_echo "${dir}/.nvmrc" - fi -} - -# Obtain nvm version from rc file -nvm_rc_version() { - export NVM_RC_VERSION='' - local NVMRC_PATH - NVMRC_PATH="$(nvm_find_nvmrc)" - if [ ! -e "${NVMRC_PATH}" ]; then - nvm_err "No .nvmrc file found" - return 1 - fi - read -r NVM_RC_VERSION < "${NVMRC_PATH}" || command printf '' - if [ ! -n "${NVM_RC_VERSION}" ]; then - nvm_err "Warning: empty .nvmrc file found at \"${NVMRC_PATH}\"" - return 2 - fi - nvm_echo "Found '${NVMRC_PATH}' with version <${NVM_RC_VERSION}>" -} - -nvm_clang_version() { - clang --version | command awk '{ if ($2 == "version") print $3; else if ($3 == "version") print $4 }' | command sed 's/-.*$//g' -} - -nvm_curl_version() { - curl -V | command awk '{ if ($1 == "curl") print $2 }' | command sed 's/-.*$//g' -} - -nvm_version_greater() { - command awk 'BEGIN { - if (ARGV[1] == "" || ARGV[2] == "") exit(1) - split(ARGV[1], a, /\./); - split(ARGV[2], b, /\./); - for (i=1; i<=3; i++) { - if (a[i] && a[i] !~ /^[0-9]+$/) exit(2); - if (b[i] && b[i] !~ /^[0-9]+$/) { exit(0); } - if (a[i] < b[i]) exit(3); - else if (a[i] > b[i]) exit(0); - } - exit(4) - }' "${1#v}" "${2#v}"; -} - -nvm_version_greater_than_or_equal_to() { - command awk 'BEGIN { - if (ARGV[1] == "" || ARGV[2] == "") exit(1) - split(ARGV[1], a, /\./); - split(ARGV[2], b, /\./); - for (i=1; i<=3; i++) { - if (a[i] && a[i] !~ /^[0-9]+$/) exit(2); - if (a[i] < b[i]) exit(3); - else if (a[i] > b[i]) exit(0); - } - exit(0) - }' "${1#v}" "${2#v}"; -} - -nvm_version_dir() { - local NVM_WHICH_DIR - NVM_WHICH_DIR="${1-}" - if [ -z "${NVM_WHICH_DIR}" ] || [ "${NVM_WHICH_DIR}" = "new" ]; then - nvm_echo "${NVM_DIR}/versions/node" - elif [ "_${NVM_WHICH_DIR}" = "_iojs" ]; then - nvm_echo "${NVM_DIR}/versions/io.js" - elif [ "_${NVM_WHICH_DIR}" = "_old" ]; then - nvm_echo "${NVM_DIR}" - else - nvm_err 'unknown version dir' - return 3 - fi -} - -nvm_alias_path() { - nvm_echo "$(nvm_version_dir old)/alias" -} - -nvm_version_path() { - local VERSION - VERSION="${1-}" - if [ -z "${VERSION}" ]; then - nvm_err 'version is required' - return 3 - elif nvm_is_iojs_version "${VERSION}"; then - nvm_echo "$(nvm_version_dir iojs)/$(nvm_strip_iojs_prefix "${VERSION}")" - elif nvm_version_greater 0.12.0 "${VERSION}"; then - nvm_echo "$(nvm_version_dir old)/${VERSION}" - else - nvm_echo "$(nvm_version_dir new)/${VERSION}" - fi -} - -nvm_ensure_version_installed() { - local PROVIDED_VERSION - PROVIDED_VERSION="${1-}" - if [ "${PROVIDED_VERSION}" = 'system' ]; then - if nvm_has_system_iojs || nvm_has_system_node; then - return 0 - fi - nvm_err "N/A: no system version of node/io.js is installed." - return 1 - fi - local LOCAL_VERSION - local EXIT_CODE - LOCAL_VERSION="$(nvm_version "${PROVIDED_VERSION}")" - EXIT_CODE="$?" - local NVM_VERSION_DIR - if [ "${EXIT_CODE}" != "0" ] || ! nvm_is_version_installed "${LOCAL_VERSION}"; then - if VERSION="$(nvm_resolve_alias "${PROVIDED_VERSION}")"; then - nvm_err "N/A: version \"${PROVIDED_VERSION} -> ${VERSION}\" is not yet installed." - else - local PREFIXED_VERSION - PREFIXED_VERSION="$(nvm_ensure_version_prefix "${PROVIDED_VERSION}")" - nvm_err "N/A: version \"${PREFIXED_VERSION:-$PROVIDED_VERSION}\" is not yet installed." - fi - nvm_err "" - nvm_err "You need to run \"nvm install ${PROVIDED_VERSION}\" to install it before using it." - return 1 - fi -} - -# Expand a version using the version cache -nvm_version() { - local PATTERN - PATTERN="${1-}" - local VERSION - # The default version is the current one - if [ -z "${PATTERN}" ]; then - PATTERN='current' - fi - - if [ "${PATTERN}" = "current" ]; then - nvm_ls_current - return $? - fi - - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - case "_${PATTERN}" in - "_${NVM_NODE_PREFIX}" | "_${NVM_NODE_PREFIX}-") - PATTERN="stable" - ;; - esac - VERSION="$(nvm_ls "${PATTERN}" | command tail -1)" - if [ -z "${VERSION}" ] || [ "_${VERSION}" = "_N/A" ]; then - nvm_echo "N/A" - return 3; - fi - nvm_echo "${VERSION}" -} - -nvm_remote_version() { - local PATTERN - PATTERN="${1-}" - local VERSION - if nvm_validate_implicit_alias "${PATTERN}" 2> /dev/null ; then - case "${PATTERN}" in - "$(nvm_iojs_prefix)") - VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote_iojs | command tail -1)" &&: - ;; - *) - VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote "${PATTERN}")" &&: - ;; - esac - else - VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_remote_versions "${PATTERN}" | command tail -1)" - fi - if [ -n "${NVM_VERSION_ONLY-}" ]; then - command awk 'BEGIN { - n = split(ARGV[1], a); - print a[1] - }' "${VERSION}" - else - nvm_echo "${VERSION}" - fi - if [ "${VERSION}" = 'N/A' ]; then - return 3 - fi -} - -nvm_remote_versions() { - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - - local PATTERN - PATTERN="${1-}" - - local NVM_FLAVOR - if [ -n "${NVM_LTS-}" ]; then - NVM_FLAVOR="${NVM_NODE_PREFIX}" - fi - - case "${PATTERN}" in - "${NVM_IOJS_PREFIX}" | "io.js") - NVM_FLAVOR="${NVM_IOJS_PREFIX}" - unset PATTERN - ;; - "${NVM_NODE_PREFIX}") - NVM_FLAVOR="${NVM_NODE_PREFIX}" - unset PATTERN - ;; - esac - - if nvm_validate_implicit_alias "${PATTERN-}" 2> /dev/null ; then - nvm_err 'Implicit aliases are not supported in nvm_remote_versions.' - return 1 - fi - - local NVM_LS_REMOTE_EXIT_CODE - NVM_LS_REMOTE_EXIT_CODE=0 - local NVM_LS_REMOTE_PRE_MERGED_OUTPUT - NVM_LS_REMOTE_PRE_MERGED_OUTPUT='' - local NVM_LS_REMOTE_POST_MERGED_OUTPUT - NVM_LS_REMOTE_POST_MERGED_OUTPUT='' - if [ -z "${NVM_FLAVOR-}" ] || [ "${NVM_FLAVOR-}" = "${NVM_NODE_PREFIX}" ]; then - local NVM_LS_REMOTE_OUTPUT - NVM_LS_REMOTE_OUTPUT=$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote "${PATTERN-}") &&: - NVM_LS_REMOTE_EXIT_CODE=$? - # split output into two - NVM_LS_REMOTE_PRE_MERGED_OUTPUT="${NVM_LS_REMOTE_OUTPUT%%v4\.0\.0*}" - NVM_LS_REMOTE_POST_MERGED_OUTPUT="${NVM_LS_REMOTE_OUTPUT#$NVM_LS_REMOTE_PRE_MERGED_OUTPUT}" - fi - - local NVM_LS_REMOTE_IOJS_EXIT_CODE - NVM_LS_REMOTE_IOJS_EXIT_CODE=0 - local NVM_LS_REMOTE_IOJS_OUTPUT - NVM_LS_REMOTE_IOJS_OUTPUT='' - if [ -z "${NVM_LTS-}" ] && ( \ - [ -z "${NVM_FLAVOR-}" ] || [ "${NVM_FLAVOR-}" = "${NVM_IOJS_PREFIX}" ] \ - ); then - NVM_LS_REMOTE_IOJS_OUTPUT=$(nvm_ls_remote_iojs "${PATTERN-}") &&: - NVM_LS_REMOTE_IOJS_EXIT_CODE=$? - fi - - VERSIONS="$(nvm_echo "${NVM_LS_REMOTE_PRE_MERGED_OUTPUT} -${NVM_LS_REMOTE_IOJS_OUTPUT} -${NVM_LS_REMOTE_POST_MERGED_OUTPUT}" | nvm_grep -v "N/A" | command sed '/^$/d')" - - if [ -z "${VERSIONS}" ]; then - nvm_echo 'N/A' - return 3 - fi - nvm_echo "${VERSIONS}" - return $NVM_LS_REMOTE_EXIT_CODE || $NVM_LS_REMOTE_IOJS_EXIT_CODE -} - -nvm_is_valid_version() { - if nvm_validate_implicit_alias "${1-}" 2> /dev/null; then - return 0 - fi - case "${1-}" in - "$(nvm_iojs_prefix)" | \ - "$(nvm_node_prefix)") - return 0 - ;; - *) - local VERSION - VERSION="$(nvm_strip_iojs_prefix "${1-}")" - nvm_version_greater_than_or_equal_to "${VERSION}" 0 - ;; - esac -} - -nvm_normalize_version() { - command awk 'BEGIN { - split(ARGV[1], a, /\./); - printf "%d%06d%06d\n", a[1], a[2], a[3]; - exit; - }' "${1#v}" -} - -nvm_ensure_version_prefix() { - local NVM_VERSION - NVM_VERSION="$(nvm_strip_iojs_prefix "${1-}" | command sed -e 's/^\([0-9]\)/v\1/g')" - if nvm_is_iojs_version "${1-}"; then - nvm_add_iojs_prefix "${NVM_VERSION}" - else - nvm_echo "${NVM_VERSION}" - fi -} - -nvm_format_version() { - local VERSION - VERSION="$(nvm_ensure_version_prefix "${1-}")" - local NUM_GROUPS - NUM_GROUPS="$(nvm_num_version_groups "${VERSION}")" - if [ "${NUM_GROUPS}" -lt 3 ]; then - nvm_format_version "${VERSION%.}.0" - else - nvm_echo "${VERSION}" | command cut -f1-3 -d. - fi -} - -nvm_num_version_groups() { - local VERSION - VERSION="${1-}" - VERSION="${VERSION#v}" - VERSION="${VERSION%.}" - if [ -z "${VERSION}" ]; then - nvm_echo "0" - return - fi - local NVM_NUM_DOTS - NVM_NUM_DOTS=$(nvm_echo "${VERSION}" | command sed -e 's/[^\.]//g') - local NVM_NUM_GROUPS - NVM_NUM_GROUPS=".${NVM_NUM_DOTS}" # add extra dot, since it's (n - 1) dots at this point - nvm_echo "${#NVM_NUM_GROUPS}" -} - -nvm_strip_path() { - if [ -z "${NVM_DIR-}" ]; then - nvm_err '${NVM_DIR} not set!' - return 1 - fi - nvm_echo "${1-}" | command sed \ - -e "s#${NVM_DIR}/[^/]*${2-}[^:]*:##g" \ - -e "s#:${NVM_DIR}/[^/]*${2-}[^:]*##g" \ - -e "s#${NVM_DIR}/[^/]*${2-}[^:]*##g" \ - -e "s#${NVM_DIR}/versions/[^/]*/[^/]*${2-}[^:]*:##g" \ - -e "s#:${NVM_DIR}/versions/[^/]*/[^/]*${2-}[^:]*##g" \ - -e "s#${NVM_DIR}/versions/[^/]*/[^/]*${2-}[^:]*##g" -} - -nvm_change_path() { - # if there’s no initial path, just return the supplementary path - if [ -z "${1-}" ]; then - nvm_echo "${3-}${2-}" - # if the initial path doesn’t contain an nvm path, prepend the supplementary - # path - elif ! nvm_echo "${1-}" | nvm_grep -q "${NVM_DIR}/[^/]*${2-}" \ - && ! nvm_echo "${1-}" | nvm_grep -q "${NVM_DIR}/versions/[^/]*/[^/]*${2-}"; then - nvm_echo "${3-}${2-}:${1-}" - # use sed to replace the existing nvm path with the supplementary path. This - # preserves the order of the path. - else - nvm_echo "${1-}" | command sed \ - -e "s#${NVM_DIR}/[^/]*${2-}[^:]*#${3-}${2-}#g" \ - -e "s#${NVM_DIR}/versions/[^/]*/[^/]*${2-}[^:]*#${3-}${2-}#g" - fi -} - -nvm_binary_available() { - # binaries started with node 0.8.6 - nvm_version_greater_than_or_equal_to "$(nvm_strip_iojs_prefix "${1-}")" v0.8.6 -} - -nvm_print_formatted_alias() { - local ALIAS - ALIAS="${1-}" - local DEST - DEST="${2-}" - local VERSION - VERSION="${3-}" - if [ -z "${VERSION}" ]; then - VERSION="$(nvm_version "${DEST}")" ||: - fi - local VERSION_FORMAT - local ALIAS_FORMAT - local DEST_FORMAT - ALIAS_FORMAT='%s' - DEST_FORMAT='%s' - VERSION_FORMAT='%s' - local NEWLINE - NEWLINE='\n' - if [ "_${DEFAULT}" = '_true' ]; then - NEWLINE=' (default)\n' - fi - local ARROW - ARROW='->' - if [ -z "${NVM_NO_COLORS}" ] && nvm_has_colors; then - ARROW='\033[0;90m->\033[0m' - if [ "_${DEFAULT}" = '_true' ]; then - NEWLINE=' \033[0;37m(default)\033[0m\n' - fi - if [ "_${VERSION}" = "_${NVM_CURRENT-}" ]; then - ALIAS_FORMAT='\033[0;32m%s\033[0m' - DEST_FORMAT='\033[0;32m%s\033[0m' - VERSION_FORMAT='\033[0;32m%s\033[0m' - elif nvm_is_version_installed "${VERSION}"; then - ALIAS_FORMAT='\033[0;34m%s\033[0m' - DEST_FORMAT='\033[0;34m%s\033[0m' - VERSION_FORMAT='\033[0;34m%s\033[0m' - elif [ "${VERSION}" = '∞' ] || [ "${VERSION}" = 'N/A' ]; then - ALIAS_FORMAT='\033[1;31m%s\033[0m' - DEST_FORMAT='\033[1;31m%s\033[0m' - VERSION_FORMAT='\033[1;31m%s\033[0m' - fi - if [ "_${NVM_LTS-}" = '_true' ]; then - ALIAS_FORMAT='\033[1;33m%s\033[0m' - fi - if [ "_${DEST%/*}" = "_lts" ]; then - DEST_FORMAT='\033[1;33m%s\033[0m' - fi - elif [ "_$VERSION" != '_∞' ] && [ "_$VERSION" != '_N/A' ]; then - VERSION_FORMAT='%s *' - fi - if [ "${DEST}" = "${VERSION}" ]; then - command printf -- "${ALIAS_FORMAT} ${ARROW} ${VERSION_FORMAT}${NEWLINE}" "${ALIAS}" "${DEST}" - else - command printf -- "${ALIAS_FORMAT} ${ARROW} ${DEST_FORMAT} (${ARROW} ${VERSION_FORMAT})${NEWLINE}" "${ALIAS}" "${DEST}" "${VERSION}" - fi -} - -nvm_print_alias_path() { - local NVM_ALIAS_DIR - NVM_ALIAS_DIR="${1-}" - if [ -z "${NVM_ALIAS_DIR}" ]; then - nvm_err 'An alias dir is required.' - return 1 - fi - local ALIAS_PATH - ALIAS_PATH="${2-}" - if [ -z "${ALIAS_PATH}" ]; then - nvm_err 'An alias path is required.' - return 2 - fi - local ALIAS - ALIAS="${ALIAS_PATH##${NVM_ALIAS_DIR}\/}" - local DEST - DEST="$(nvm_alias "${ALIAS}" 2> /dev/null)" ||: - if [ -n "${DEST}" ]; then - NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_LTS="${NVM_LTS-}" DEFAULT=false nvm_print_formatted_alias "${ALIAS}" "${DEST}" - fi -} - -nvm_print_default_alias() { - local ALIAS - ALIAS="${1-}" - if [ -z "${ALIAS}" ]; then - nvm_err 'A default alias is required.' - return 1 - fi - local DEST - DEST="$(nvm_print_implicit_alias local "${ALIAS}")" - if [ -n "${DEST}" ]; then - NVM_NO_COLORS="${NVM_NO_COLORS-}" DEFAULT=true nvm_print_formatted_alias "${ALIAS}" "${DEST}" - fi -} - -nvm_make_alias() { - local ALIAS - ALIAS="${1-}" - if [ -z "${ALIAS}" ]; then - nvm_err "an alias name is required" - return 1 - fi - local VERSION - VERSION="${2-}" - if [ -z "${VERSION}" ]; then - nvm_err "an alias target version is required" - return 2 - fi - nvm_echo "${VERSION}" | tee "$(nvm_alias_path)/${ALIAS}" >/dev/null -} - -nvm_list_aliases() { - local ALIAS - ALIAS="${1-}" - - local NVM_CURRENT - NVM_CURRENT="$(nvm_ls_current)" - local NVM_ALIAS_DIR - NVM_ALIAS_DIR="$(nvm_alias_path)" - command mkdir -p "${NVM_ALIAS_DIR}/lts" - - local ALIAS_PATH - for ALIAS_PATH in "${NVM_ALIAS_DIR}/${ALIAS}"*; do - NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT}" nvm_print_alias_path "${NVM_ALIAS_DIR}" "${ALIAS_PATH}" - done - - local ALIAS_NAME - for ALIAS_NAME in "$(nvm_node_prefix)" "stable" "unstable" "$(nvm_iojs_prefix)"; do - if [ ! -f "${NVM_ALIAS_DIR}/${ALIAS_NAME}" ] && ([ -z "${ALIAS}" ] || [ "${ALIAS_NAME}" = "${ALIAS}" ]); then - NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT}" nvm_print_default_alias "${ALIAS_NAME}" - fi - done - - local LTS_ALIAS - for ALIAS_PATH in "${NVM_ALIAS_DIR}/lts/${ALIAS}"*; do - LTS_ALIAS="$(NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_LTS=true nvm_print_alias_path "${NVM_ALIAS_DIR}" "${ALIAS_PATH}")" - if [ -n "${LTS_ALIAS}" ]; then - nvm_echo "${LTS_ALIAS}" - fi - done - return -} - -nvm_alias() { - local ALIAS - ALIAS="${1-}" - if [ -z "${ALIAS}" ]; then - nvm_err 'An alias is required.' - return 1 - fi - - local NVM_ALIAS_PATH - NVM_ALIAS_PATH="$(nvm_alias_path)/${ALIAS}" - if [ ! -f "${NVM_ALIAS_PATH}" ]; then - nvm_err 'Alias does not exist.' - return 2 - fi - - command cat "${NVM_ALIAS_PATH}" -} - -nvm_ls_current() { - local NVM_LS_CURRENT_NODE_PATH - if ! NVM_LS_CURRENT_NODE_PATH="$(command which node 2> /dev/null)"; then - nvm_echo 'none' - elif nvm_tree_contains_path "$(nvm_version_dir iojs)" "${NVM_LS_CURRENT_NODE_PATH}"; then - nvm_add_iojs_prefix "$(iojs --version 2>/dev/null)" - elif nvm_tree_contains_path "${NVM_DIR}" "${NVM_LS_CURRENT_NODE_PATH}"; then - local VERSION - VERSION="$(node --version 2>/dev/null)" - if [ "${VERSION}" = "v0.6.21-pre" ]; then - nvm_echo 'v0.6.21' - else - nvm_echo "${VERSION}" - fi - else - nvm_echo 'system' - fi -} - -nvm_resolve_alias() { - if [ -z "${1-}" ]; then - return 1 - fi - - local PATTERN - PATTERN="${1-}" - - local ALIAS - ALIAS="${PATTERN}" - local ALIAS_TEMP - - local SEEN_ALIASES - SEEN_ALIASES="${ALIAS}" - while true; do - ALIAS_TEMP="$(nvm_alias "${ALIAS}" 2> /dev/null || nvm_echo)" - - if [ -z "${ALIAS_TEMP}" ]; then - break - fi - - if command printf "${SEEN_ALIASES}" | nvm_grep -q -e "^${ALIAS_TEMP}$" ; then - ALIAS="∞" - break - fi - - SEEN_ALIASES="${SEEN_ALIASES}\\n${ALIAS_TEMP}" - ALIAS="${ALIAS_TEMP}" - done - - if [ -n "${ALIAS}" ] && [ "_${ALIAS}" != "_${PATTERN}" ]; then - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - case "${ALIAS}" in - '∞' | \ - "${NVM_IOJS_PREFIX}" | "${NVM_IOJS_PREFIX}-" | \ - "${NVM_NODE_PREFIX}" ) - nvm_echo "${ALIAS}" - ;; - *) - nvm_ensure_version_prefix "${ALIAS}" - ;; - esac - return 0 - fi - - if nvm_validate_implicit_alias "${PATTERN}" 2> /dev/null ; then - local IMPLICIT - IMPLICIT="$(nvm_print_implicit_alias local "${PATTERN}" 2> /dev/null)" - if [ -n "${IMPLICIT}" ]; then - nvm_ensure_version_prefix "${IMPLICIT}" - fi - fi - - return 2 -} - -nvm_resolve_local_alias() { - if [ -z "${1-}" ]; then - return 1 - fi - - local VERSION - local EXIT_CODE - VERSION="$(nvm_resolve_alias "${1-}")" - EXIT_CODE=$? - if [ -z "${VERSION}" ]; then - return $EXIT_CODE - fi - if [ "_${VERSION}" != '_∞' ]; then - nvm_version "${VERSION}" - else - nvm_echo "${VERSION}" - fi -} - -nvm_iojs_prefix() { - nvm_echo 'iojs' -} -nvm_node_prefix() { - nvm_echo 'node' -} - -nvm_is_iojs_version() { - case "${1-}" in iojs-*) return 0 ;; esac - return 1 -} - -nvm_add_iojs_prefix() { - nvm_echo "$(nvm_iojs_prefix)-$(nvm_ensure_version_prefix "$(nvm_strip_iojs_prefix "${1-}")")" -} - -nvm_strip_iojs_prefix() { - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - if [ "${1-}" = "${NVM_IOJS_PREFIX}" ]; then - nvm_echo - else - nvm_echo "${1#${NVM_IOJS_PREFIX}-}" - fi -} - -nvm_ls() { - local PATTERN - PATTERN="${1-}" - local VERSIONS - VERSIONS='' - if [ "${PATTERN}" = 'current' ]; then - nvm_ls_current - return - fi - - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - local NVM_VERSION_DIR_IOJS - NVM_VERSION_DIR_IOJS="$(nvm_version_dir "${NVM_IOJS_PREFIX}")" - local NVM_VERSION_DIR_NEW - NVM_VERSION_DIR_NEW="$(nvm_version_dir new)" - local NVM_VERSION_DIR_OLD - NVM_VERSION_DIR_OLD="$(nvm_version_dir old)" - - case "${PATTERN}" in - "${NVM_IOJS_PREFIX}" | "${NVM_NODE_PREFIX}" ) - PATTERN="${PATTERN}-" - ;; - *) - if nvm_resolve_local_alias "${PATTERN}"; then - return - fi - PATTERN="$(nvm_ensure_version_prefix "${PATTERN}")" - ;; - esac - if [ "${PATTERN}" = 'N/A' ]; then - return - fi - # If it looks like an explicit version, don't do anything funny - local NVM_PATTERN_STARTS_WITH_V - case $PATTERN in - v*) NVM_PATTERN_STARTS_WITH_V=true ;; - *) NVM_PATTERN_STARTS_WITH_V=false ;; - esac - if [ $NVM_PATTERN_STARTS_WITH_V = true ] && [ "_$(nvm_num_version_groups "${PATTERN}")" = "_3" ]; then - if nvm_is_version_installed "${PATTERN}"; then - VERSIONS="${PATTERN}" - elif nvm_is_version_installed "$(nvm_add_iojs_prefix "${PATTERN}")"; then - VERSIONS="$(nvm_add_iojs_prefix "${PATTERN}")" - fi - else - case "${PATTERN}" in - "${NVM_IOJS_PREFIX}-" | "${NVM_NODE_PREFIX}-" | "system") ;; - *) - local NUM_VERSION_GROUPS - NUM_VERSION_GROUPS="$(nvm_num_version_groups "${PATTERN}")" - if [ "${NUM_VERSION_GROUPS}" = "2" ] || [ "${NUM_VERSION_GROUPS}" = "1" ]; then - PATTERN="${PATTERN%.}." - fi - ;; - esac - - local ZSH_HAS_SHWORDSPLIT_UNSET - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - - local NVM_DIRS_TO_SEARCH1 - NVM_DIRS_TO_SEARCH1='' - local NVM_DIRS_TO_SEARCH2 - NVM_DIRS_TO_SEARCH2='' - local NVM_DIRS_TO_SEARCH3 - NVM_DIRS_TO_SEARCH3='' - local NVM_ADD_SYSTEM - NVM_ADD_SYSTEM=false - if nvm_is_iojs_version "${PATTERN}"; then - NVM_DIRS_TO_SEARCH1="${NVM_VERSION_DIR_IOJS}" - PATTERN="$(nvm_strip_iojs_prefix "${PATTERN}")" - if nvm_has_system_iojs; then - NVM_ADD_SYSTEM=true - fi - elif [ "${PATTERN}" = "${NVM_NODE_PREFIX}-" ]; then - NVM_DIRS_TO_SEARCH1="${NVM_VERSION_DIR_OLD}" - NVM_DIRS_TO_SEARCH2="${NVM_VERSION_DIR_NEW}" - PATTERN='' - if nvm_has_system_node; then - NVM_ADD_SYSTEM=true - fi - else - NVM_DIRS_TO_SEARCH1="${NVM_VERSION_DIR_OLD}" - NVM_DIRS_TO_SEARCH2="${NVM_VERSION_DIR_NEW}" - NVM_DIRS_TO_SEARCH3="${NVM_VERSION_DIR_IOJS}" - if nvm_has_system_iojs || nvm_has_system_node; then - NVM_ADD_SYSTEM=true - fi - fi - - if ! [ -d "${NVM_DIRS_TO_SEARCH1}" ] || ! (command ls -1qA "${NVM_DIRS_TO_SEARCH1}" | nvm_grep -q .); then - NVM_DIRS_TO_SEARCH1='' - fi - if ! [ -d "${NVM_DIRS_TO_SEARCH2}" ] || ! (command ls -1qA "${NVM_DIRS_TO_SEARCH2}" | nvm_grep -q .); then - NVM_DIRS_TO_SEARCH2="${NVM_DIRS_TO_SEARCH1}" - fi - if ! [ -d "${NVM_DIRS_TO_SEARCH3}" ] || ! (command ls -1qA "${NVM_DIRS_TO_SEARCH3}" | nvm_grep -q .); then - NVM_DIRS_TO_SEARCH3="${NVM_DIRS_TO_SEARCH2}" - fi - - local SEARCH_PATTERN - if [ -z "${PATTERN}" ]; then - PATTERN='v' - SEARCH_PATTERN='.*' - else - SEARCH_PATTERN="$(nvm_echo "${PATTERN}" | command sed 's#\.#\\\.#g;')" - fi - if [ -n "${NVM_DIRS_TO_SEARCH1}${NVM_DIRS_TO_SEARCH2}${NVM_DIRS_TO_SEARCH3}" ]; then - VERSIONS="$(command find "${NVM_DIRS_TO_SEARCH1}"/* "${NVM_DIRS_TO_SEARCH2}"/* "${NVM_DIRS_TO_SEARCH3}"/* -name . -o -type d -prune -o -path "${PATTERN}*" \ - | command sed -e " - s#${NVM_VERSION_DIR_IOJS}/#versions/${NVM_IOJS_PREFIX}/#; - s#^${NVM_DIR}/##; - \\#^[^v]# d; - \\#^versions\$# d; - s#^versions/##; - s#^v#${NVM_NODE_PREFIX}/v#; - \\#${SEARCH_PATTERN}# !d; - " \ - -e 's#^\([^/]\{1,\}\)/\(.*\)$#\2.\1#;' \ - | command sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n \ - | command sed -e 's#\(.*\)\.\([^\.]\{1,\}\)$#\2-\1#;' \ - -e "s#^${NVM_NODE_PREFIX}-##;" \ - )" - fi - - if [ "${ZSH_HAS_SHWORDSPLIT_UNSET}" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - fi - - if [ "${NVM_ADD_SYSTEM-}" = true ]; then - if [ -z "${PATTERN}" ] || [ "${PATTERN}" = 'v' ]; then - VERSIONS="${VERSIONS}$(command printf '\n%s' 'system')" - elif [ "${PATTERN}" = 'system' ]; then - VERSIONS="$(command printf '%s' 'system')" - fi - fi - - if [ -z "${VERSIONS}" ]; then - nvm_echo 'N/A' - return 3 - fi - - nvm_echo "${VERSIONS}" -} - -nvm_ls_remote() { - local PATTERN - PATTERN="${1-}" - if nvm_validate_implicit_alias "${PATTERN}" 2> /dev/null ; then - PATTERN="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote "$(nvm_print_implicit_alias remote "${PATTERN}")" | command tail -1 | command awk '{ print $1 }')" - elif [ -n "${PATTERN}" ]; then - PATTERN="$(nvm_ensure_version_prefix "${PATTERN}")" - else - PATTERN=".*" - fi - NVM_LTS="${NVM_LTS-}" nvm_ls_remote_index_tab node std "${PATTERN}" -} - -nvm_ls_remote_iojs() { - NVM_LTS="${NVM_LTS-}" nvm_ls_remote_index_tab iojs std "${1-}" -} - -# args flavor, type, version -nvm_ls_remote_index_tab() { - local LTS - LTS="${NVM_LTS-}" - if [ "$#" -lt 3 ]; then - nvm_err 'not enough arguments' - return 5 - fi - - local FLAVOR - FLAVOR="${1-}" - - local TYPE - TYPE="${2-}" - - local MIRROR - MIRROR="$(nvm_get_mirror "${FLAVOR}" "${TYPE}")" - if [ -z "${MIRROR}" ]; then - return 3 - fi - - local PREFIX - PREFIX='' - case "${FLAVOR}-${TYPE}" in - iojs-std) PREFIX="$(nvm_iojs_prefix)-" ;; - node-std) PREFIX='' ;; - iojs-*) - nvm_err 'unknown type of io.js release' - return 4 - ;; - *) - nvm_err 'unknown type of node.js release' - return 4 - ;; - esac - local SORT_COMMAND - SORT_COMMAND='command sort' - case "${FLAVOR}" in - node) SORT_COMMAND='command sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n' ;; - esac - - local PATTERN - PATTERN="${3-}" - - local VERSIONS - if [ -n "${PATTERN}" ]; then - if [ "${FLAVOR}" = 'iojs' ]; then - PATTERN="$(nvm_ensure_version_prefix "$(nvm_strip_iojs_prefix "${PATTERN}")")" - else - PATTERN="$(nvm_ensure_version_prefix "${PATTERN}")" - fi - else - unset PATTERN - fi - - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - local VERSION_LIST - VERSION_LIST="$(nvm_download -L -s "${MIRROR}/index.tab" -o - \ - | command sed " - 1d; - s/^/${PREFIX}/; - " \ - )" - local LTS_ALIAS - local LTS_VERSION - command mkdir -p "$(nvm_alias_path)/lts" - nvm_echo "${VERSION_LIST}" \ - | command awk '{ - if ($10 ~ /^\-?$/) { next } - if ($10 && !a[tolower($10)]++) { - if (alias) { print alias, version } - alias_name = "lts/" tolower($10) - if (!alias) { print "lts/*", alias_name } - alias = alias_name - version = $1 - } - } - END { - if (alias) { - print alias, version - } - }' \ - | while read -r LTS_ALIAS_LINE; do - LTS_ALIAS="${LTS_ALIAS_LINE%% *}" - LTS_VERSION="${LTS_ALIAS_LINE#* }" - nvm_make_alias "$LTS_ALIAS" "$LTS_VERSION" >/dev/null 2>&1 - done - - VERSIONS="$(nvm_echo "${VERSION_LIST}" \ - | command awk -v pattern="${PATTERN-}" -v lts="${LTS-}" '{ - if (!$1) { next } - if (pattern && tolower($1) !~ tolower(pattern)) { next } - if (lts == "*" && $10 ~ /^\-?$/) { next } - if (lts && lts != "*" && tolower($10) !~ tolower(lts)) { next } - if ($10 !~ /^\-?$/) print $1, $10; else print $1 - }' \ - | nvm_grep -w "${PATTERN:-.*}" \ - | $SORT_COMMAND)" - if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - if [ -z "${VERSIONS}" ]; then - nvm_echo 'N/A' - return 3 - fi - nvm_echo "${VERSIONS}" -} - -nvm_get_checksum_alg() { - if nvm_has_non_aliased "sha256sum"; then - nvm_echo 'sha-256' - elif nvm_has_non_aliased "shasum"; then - nvm_echo 'sha-256' - elif nvm_has_non_aliased "sha256"; then - nvm_echo 'sha-256' - elif nvm_has_non_aliased "gsha256sum"; then - nvm_echo 'sha-256' - elif nvm_has_non_aliased "openssl"; then - nvm_echo 'sha-256' - elif nvm_has_non_aliased "bssl"; then - nvm_echo 'sha-256' - elif nvm_has_non_aliased "sha1sum"; then - nvm_echo 'sha-1' - elif nvm_has_non_aliased "sha1"; then - nvm_echo 'sha-1' - elif nvm_has_non_aliased "shasum"; then - nvm_echo 'sha-1' - else - nvm_err 'Unaliased sha256sum, shasum, sha256, gsha256sum, openssl, or bssl not found.' - nvm_err 'Unaliased sha1sum, sha1, or shasum not found.' - return 1 - fi -} - -nvm_compute_checksum() { - local FILE - FILE="${1-}" - if [ -z "${FILE}" ]; then - nvm_err 'Provided file to checksum is empty.' - return 2 - elif ! [ -f "${FILE}" ]; then - nvm_err 'Provided file to checksum does not exist.' - return 1 - fi - - if nvm_has_non_aliased "sha256sum"; then - nvm_err 'Computing checksum with sha256sum' - command sha256sum "${FILE}" | command awk '{print $1}' - elif nvm_has_non_aliased "shasum"; then - nvm_err 'Computing checksum with shasum -a 256' - command shasum -a 256 "${FILE}" | command awk '{print $1}' - elif nvm_has_non_aliased "sha256"; then - nvm_err 'Computing checksum with sha256 -q' - command sha256 -q "${FILE}" | command awk '{print $1}' - elif nvm_has_non_aliased "gsha256sum"; then - nvm_err 'Computing checksum with gsha256sum' - command gsha256sum "${FILE}" | command awk '{print $1}' - elif nvm_has_non_aliased "openssl"; then - nvm_err 'Computing checksum with openssl dgst -sha256' - command openssl dgst -sha256 "${FILE}" | command awk '{print $NF}' - elif nvm_has_non_aliased "bssl"; then - nvm_err 'Computing checksum with bssl sha256sum' - command bssl sha256sum "${FILE}" | command awk '{print $1}' - elif nvm_has_non_aliased "sha1sum"; then - nvm_err 'Computing checksum with sha1sum' - command sha1sum "${FILE}" | command awk '{print $1}' - elif nvm_has_non_aliased "sha1"; then - nvm_err 'Computing checksum with sha1 -q' - command sha1 -q "${FILE}" - elif nvm_has_non_aliased "shasum"; then - nvm_err 'Computing checksum with shasum' - command shasum "${FILE}" | command awk '{print $1}' - fi -} - -nvm_compare_checksum() { - local FILE - FILE="${1-}" - if [ -z "${FILE}" ]; then - nvm_err 'Provided file to checksum is empty.' - return 4 - elif ! [ -f "${FILE}" ]; then - nvm_err 'Provided file to checksum does not exist.' - return 3 - fi - - local COMPUTED_SUM - COMPUTED_SUM="$(nvm_compute_checksum "${FILE}")" - - local CHECKSUM - CHECKSUM="${2-}" - if [ -z "${CHECKSUM}" ]; then - nvm_err 'Provided checksum to compare to is empty.' - return 2 - fi - - if [ -z "${COMPUTED_SUM}" ]; then - nvm_err "Computed checksum of '${FILE}' is empty." # missing in raspberry pi binary - nvm_err 'WARNING: Continuing *without checksum verification*' - return - elif [ "${COMPUTED_SUM}" != "${CHECKSUM}" ]; then - nvm_err "Checksums do not match: '${COMPUTED_SUM}' found, '${CHECKSUM}' expected." - return 1 - fi - nvm_err 'Checksums matched!' -} - -# args: flavor, type, version, slug, compression -nvm_get_checksum() { - local FLAVOR - case "${1-}" in - node | iojs) FLAVOR="${1}" ;; - *) - nvm_err 'supported flavors: node, iojs' - return 2 - ;; - esac - - local MIRROR - MIRROR="$(nvm_get_mirror "${FLAVOR}" "${2-}")" - if [ -z "${MIRROR}" ]; then - return 1 - fi - - local SHASUMS_URL - if [ "$(nvm_get_checksum_alg)" = 'sha-256' ]; then - SHASUMS_URL="${MIRROR}/${3}/SHASUMS256.txt" - else - SHASUMS_URL="${MIRROR}/${3}/SHASUMS.txt" - fi - - nvm_download -L -s "${SHASUMS_URL}" -o - | command awk "{ if (\"${4}.tar.${5}\" == \$2) print \$1}" -} - -nvm_checksum() { - local NVM_CHECKSUM - if [ -z "${3-}" ] || [ "${3-}" = 'sha1' ]; then - if nvm_has_non_aliased "sha1sum"; then - NVM_CHECKSUM="$(command sha1sum "${1-}" | command awk '{print $1}')" - elif nvm_has_non_aliased "sha1"; then - NVM_CHECKSUM="$(command sha1 -q "${1-}")" - elif nvm_has_non_aliased "shasum"; then - NVM_CHECKSUM="$(command shasum "${1-}" | command awk '{print $1}')" - else - nvm_err 'Unaliased sha1sum, sha1, or shasum not found.' - return 2 - fi - else - if nvm_has_non_aliased "sha256sum"; then - NVM_CHECKSUM="$(command sha256sum "${1-}" | command awk '{print $1}')" - elif nvm_has_non_aliased "shasum"; then - NVM_CHECKSUM="$(command shasum -a 256 "${1-}" | command awk '{print $1}')" - elif nvm_has_non_aliased "sha256"; then - NVM_CHECKSUM="$(command sha256 -q "${1-}" | command awk '{print $1}')" - elif nvm_has_non_aliased "gsha256sum"; then - NVM_CHECKSUM="$(command gsha256sum "${1-}" | command awk '{print $1}')" - elif nvm_has_non_aliased "openssl"; then - NVM_CHECKSUM="$(command openssl dgst -sha256 "${1-}" | command awk '{print $NF}')" - elif nvm_has_non_aliased "bssl"; then - NVM_CHECKSUM="$(command bssl sha256sum "${1-}" | command awk '{print $1}')" - else - nvm_err 'Unaliased sha256sum, shasum, sha256, gsha256sum, openssl, or bssl not found.' - nvm_err 'WARNING: Continuing *without checksum verification*' - return - fi - fi - - if [ "_${NVM_CHECKSUM}" = "_${2-}" ]; then - return - elif [ -z "${2-}" ]; then - nvm_echo 'Checksums empty' #missing in raspberry pi binary - return - fi - nvm_err 'Checksums do not match.' - return 1 -} - -nvm_print_versions() { - local VERSION - local LTS - local FORMAT - local NVM_CURRENT - NVM_CURRENT=$(nvm_ls_current) - local NVM_HAS_COLORS - if [ -z "${NVM_NO_COLORS-}" ] && nvm_has_colors; then - NVM_HAS_COLORS=1 - fi - local LTS_LENGTH - local LTS_FORMAT - nvm_echo "${1-}" \ - | command sed '1!G;h;$!d' \ - | command awk '{ if ($2 && a[$2]++) { print $1, "(LTS: " $2 ")" } else if ($2) { print $1, "(Latest LTS: " $2 ")" } else { print $0 } }' \ - | command sed '1!G;h;$!d' \ - | while read -r VERSION_LINE; do - VERSION="${VERSION_LINE%% *}" - LTS="${VERSION_LINE#* }" - FORMAT='%15s' - if [ "_$VERSION" = "_$NVM_CURRENT" ]; then - if [ "${NVM_HAS_COLORS-}" = '1' ]; then - FORMAT='\033[0;32m-> %12s\033[0m' - else - FORMAT='-> %12s *' - fi - elif [ "$VERSION" = "system" ]; then - if [ "${NVM_HAS_COLORS-}" = '1' ]; then - FORMAT='\033[0;33m%15s\033[0m' - fi - elif nvm_is_version_installed "$VERSION"; then - if [ "${NVM_HAS_COLORS-}" = '1' ]; then - FORMAT='\033[0;34m%15s\033[0m' - else - FORMAT='%15s *' - fi - fi - if [ "${LTS}" != "${VERSION}" ]; then - case "${LTS}" in - *Latest*) - LTS="${LTS##Latest }" - LTS_LENGTH="${#LTS}" - if [ "${NVM_HAS_COLORS-}" = '1' ]; then - LTS_FORMAT=" \\033[1;32m%${LTS_LENGTH}s\\033[0m" - else - LTS_FORMAT=" %${LTS_LENGTH}s" - fi - ;; - *) - LTS_LENGTH="${#LTS}" - if [ "${NVM_HAS_COLORS-}" = '1' ]; then - LTS_FORMAT=" \\033[0;37m%${LTS_LENGTH}s\\033[0m" - else - LTS_FORMAT=" %${LTS_LENGTH}s" - fi - ;; - esac - command printf -- "${FORMAT}${LTS_FORMAT}\\n" "$VERSION" " $LTS" - else - command printf -- "${FORMAT}\\n" "$VERSION" - fi - done -} - -nvm_validate_implicit_alias() { - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - - case "$1" in - "stable" | "unstable" | "$NVM_IOJS_PREFIX" | "$NVM_NODE_PREFIX" ) - return - ;; - *) - nvm_err "Only implicit aliases 'stable', 'unstable', '$NVM_IOJS_PREFIX', and '$NVM_NODE_PREFIX' are supported." - return 1 - ;; - esac -} - -nvm_print_implicit_alias() { - if [ "_$1" != "_local" ] && [ "_$1" != "_remote" ]; then - nvm_err "nvm_print_implicit_alias must be specified with local or remote as the first argument." - return 1 - fi - - local NVM_IMPLICIT - NVM_IMPLICIT="$2" - if ! nvm_validate_implicit_alias "$NVM_IMPLICIT"; then - return 2 - fi - - local ZSH_HAS_SHWORDSPLIT_UNSET - - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - local NVM_COMMAND - local NVM_ADD_PREFIX_COMMAND - local LAST_TWO - case "$NVM_IMPLICIT" in - "$NVM_IOJS_PREFIX") - NVM_COMMAND="nvm_ls_remote_iojs" - NVM_ADD_PREFIX_COMMAND="nvm_add_iojs_prefix" - if [ "_$1" = "_local" ]; then - NVM_COMMAND="nvm_ls $NVM_IMPLICIT" - fi - - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - - local NVM_IOJS_VERSION - local EXIT_CODE - NVM_IOJS_VERSION="$($NVM_COMMAND)" &&: - EXIT_CODE="$?" - if [ "_$EXIT_CODE" = "_0" ]; then - NVM_IOJS_VERSION="$(nvm_echo "$NVM_IOJS_VERSION" | command sed "s/^$NVM_IMPLICIT-//" | nvm_grep -e '^v' | command cut -c2- | command cut -d . -f 1,2 | uniq | command tail -1)" - fi - - if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - - if [ "_$NVM_IOJS_VERSION" = "_N/A" ]; then - nvm_echo 'N/A' - else - $NVM_ADD_PREFIX_COMMAND "$NVM_IOJS_VERSION" - fi - return $EXIT_CODE - ;; - "$NVM_NODE_PREFIX") - nvm_echo 'stable' - return - ;; - *) - NVM_COMMAND="nvm_ls_remote" - if [ "_$1" = "_local" ]; then - NVM_COMMAND="nvm_ls node" - fi - - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - - LAST_TWO=$($NVM_COMMAND | nvm_grep -e '^v' | command cut -c2- | command cut -d . -f 1,2 | uniq) - - if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - ;; - esac - local MINOR - local STABLE - local UNSTABLE - local MOD - local NORMALIZED_VERSION - - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - for MINOR in $LAST_TWO; do - NORMALIZED_VERSION="$(nvm_normalize_version "$MINOR")" - if [ "_0${NORMALIZED_VERSION#?}" != "_$NORMALIZED_VERSION" ]; then - STABLE="$MINOR" - else - MOD="$(awk 'BEGIN { print int(ARGV[1] / 1000000) % 2 ; exit(0) }' "$NORMALIZED_VERSION")" - if [ "$MOD" -eq 0 ]; then - STABLE="$MINOR" - elif [ "$MOD" -eq 1 ]; then - UNSTABLE="$MINOR" - fi - fi - done - if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - - if [ "_$2" = '_stable' ]; then - nvm_echo "${STABLE}" - elif [ "_$2" = '_unstable' ]; then - nvm_echo "${UNSTABLE}" - fi -} - -nvm_get_os() { - local NVM_UNAME - NVM_UNAME="$(command uname -a)" - local NVM_OS - case "$NVM_UNAME" in - Linux\ *) NVM_OS=linux ;; - Darwin\ *) NVM_OS=darwin ;; - SunOS\ *) NVM_OS=sunos ;; - FreeBSD\ *) NVM_OS=freebsd ;; - AIX\ *) NVM_OS=aix ;; - esac - nvm_echo "${NVM_OS-}" -} - -nvm_get_arch() { - local HOST_ARCH - local NVM_OS - local EXIT_CODE - - NVM_OS="$(nvm_get_os)" - # If the OS is SunOS, first try to use pkgsrc to guess - # the most appropriate arch. If it's not available, use - # isainfo to get the instruction set supported by the - # kernel. - if [ "_$NVM_OS" = "_sunos" ]; then - if HOST_ARCH=$(pkg_info -Q MACHINE_ARCH pkg_install); then - HOST_ARCH=$(nvm_echo "${HOST_ARCH}" | command tail -1) - else - HOST_ARCH=$(isainfo -n) - fi - elif [ "_$NVM_OS" = "_aix" ]; then - HOST_ARCH=ppc64 - else - HOST_ARCH="$(command uname -m)" - fi - - local NVM_ARCH - case "$HOST_ARCH" in - x86_64 | amd64) NVM_ARCH="x64" ;; - i*86) NVM_ARCH="x86" ;; - aarch64) NVM_ARCH="arm64" ;; - *) NVM_ARCH="$HOST_ARCH" ;; - esac - nvm_echo "${NVM_ARCH}" -} - -nvm_get_minor_version() { - local VERSION - VERSION="$1" - - if [ -z "$VERSION" ]; then - nvm_err 'a version is required' - return 1 - fi - - case "$VERSION" in - v | .* | *..* | v*[!.0123456789]* | [!v]*[!.0123456789]* | [!v0123456789]* | v[!0123456789]*) - nvm_err 'invalid version number' - return 2 - ;; - esac - - local PREFIXED_VERSION - PREFIXED_VERSION="$(nvm_format_version "$VERSION")" - - local MINOR - MINOR="$(nvm_echo "$PREFIXED_VERSION" | nvm_grep -e '^v' | command cut -c2- | command cut -d . -f 1,2)" - if [ -z "$MINOR" ]; then - nvm_err 'invalid version number! (please report this)' - return 3 - fi - nvm_echo "${MINOR}" -} - -nvm_ensure_default_set() { - local VERSION - VERSION="$1" - if [ -z "$VERSION" ]; then - nvm_err 'nvm_ensure_default_set: a version is required' - return 1 - elif nvm_alias default >/dev/null 2>&1; then - # default already set - return 0 - fi - local OUTPUT - OUTPUT="$(nvm alias default "$VERSION")" - local EXIT_CODE - EXIT_CODE="$?" - nvm_echo "Creating default alias: $OUTPUT" - return $EXIT_CODE -} - -nvm_is_merged_node_version() { - nvm_version_greater_than_or_equal_to "$1" v4.0.0 -} - -nvm_get_mirror() { - case "${1}-${2}" in - node-std) nvm_echo "${NVM_NODEJS_ORG_MIRROR:-https://nodejs.org/dist}" ;; - iojs-std) nvm_echo "${NVM_IOJS_ORG_MIRROR:-https://iojs.org/dist}" ;; - *) - nvm_err 'unknown type of node.js or io.js release' - return 1 - ;; - esac -} - -# args: flavor, type, version, reinstall -nvm_install_binary() { - local FLAVOR - case "${1-}" in - node | iojs) FLAVOR="${1}" ;; - *) - nvm_err 'supported flavors: node, iojs' - return 4 - ;; - esac - - local TYPE - TYPE="${2-}" - - local PREFIXED_VERSION - PREFIXED_VERSION="${3-}" - if [ -z "${PREFIXED_VERSION}" ]; then - nvm_err 'A version number is required.' - return 3 - fi - - local VERSION - VERSION="$(nvm_strip_iojs_prefix "${PREFIXED_VERSION}")" - - if [ -z "$(nvm_get_os)" ]; then - return 2 - fi - - local tar_compression_flag - tar_compression_flag='z' - if nvm_supports_xz "${VERSION}"; then - tar_compression_flag='J' - fi - - local TARBALL - local TMPDIR - local VERSION_PATH - - local NODE_OR_IOJS - if [ "${FLAVOR}" = 'node' ]; then - NODE_OR_IOJS="${FLAVOR}" - fi - nvm_echo "Downloading and installing ${NODE_OR_IOJS-} ${VERSION}..." - TARBALL="$(nvm_download_artifact "${FLAVOR}" binary "${TYPE-}" "${VERSION}" | command tail -1)" - if [ -f "${TARBALL}" ]; then - TMPDIR="$(dirname "${TARBALL}")/files" - fi - local tar - tar='tar' - if [ "${NVM_OS}" = 'aix' ]; then - tar='gtar' - fi - if ( - [ -n "${TMPDIR-}" ] && \ - command mkdir -p "${TMPDIR}" && \ - command "${tar}" -x${tar_compression_flag}f "${TARBALL}" -C "${TMPDIR}" --strip-components 1 && \ - VERSION_PATH="$(nvm_version_path "${PREFIXED_VERSION}")" && \ - command mkdir -p "${VERSION_PATH}" && \ - command mv "${TMPDIR}/"* "${VERSION_PATH}" && \ - command rm -rf "${TMPDIR}" - ); then - return 0 - fi - - nvm_err 'Binary download failed, trying source.' - if [ -n "${TMPDIR-}" ]; then - command rm -rf "${TMPDIR}" - fi - return 1 -} - -# args: flavor, kind, version -nvm_get_download_slug() { - local FLAVOR - case "${1-}" in - node | iojs) FLAVOR="${1}" ;; - *) - nvm_err 'supported flavors: node, iojs' - return 1 - ;; - esac - - local KIND - case "${2-}" in - binary | source) KIND="${2}" ;; - *) - nvm_err 'supported kinds: binary, source' - return 2 - ;; - esac - - local VERSION - VERSION="${3-}" - - local NVM_OS - NVM_OS="$(nvm_get_os)" - - local NVM_ARCH - NVM_ARCH="$(nvm_get_arch)" - if ! nvm_is_merged_node_version "${VERSION}"; then - if [ "${NVM_ARCH}" = 'armv6l' ] || [ "${NVM_ARCH}" = 'armv7l' ]; then - NVM_ARCH="arm-pi" - fi - fi - - if [ "${KIND}" = 'binary' ]; then - nvm_echo "${FLAVOR}-${VERSION}-${NVM_OS}-${NVM_ARCH}" - elif [ "${KIND}" = 'source' ]; then - nvm_echo "${FLAVOR}-${VERSION}" - fi -} - -# args: flavor, kind, type, version -nvm_download_artifact() { - local FLAVOR - case "${1-}" in - node | iojs) FLAVOR="${1}" ;; - *) - nvm_err 'supported flavors: node, iojs' - return 1 - ;; - esac - - local KIND - case "${2-}" in - binary | source) KIND="${2}" ;; - *) - nvm_err 'supported kinds: binary, source' - return 1 - ;; - esac - - local TYPE - TYPE="${3-}" - - local MIRROR - MIRROR="$(nvm_get_mirror "${FLAVOR}" "${TYPE}")" - if [ -z "${MIRROR}" ]; then - return 2 - fi - - local VERSION - VERSION="${4}" - - if [ -z "${VERSION}" ]; then - nvm_err 'A version number is required.' - return 3 - fi - - if [ "${KIND}" = 'binary' ] && ! nvm_binary_available "${VERSION}"; then - nvm_err "No precompiled binary available for ${VERSION}." - return - fi - - local SLUG - SLUG="$(nvm_get_download_slug "${FLAVOR}" "${KIND}" "${VERSION}")" - - local COMPRESSION - COMPRESSION='gz' - if nvm_supports_xz "${VERSION}"; then - COMPRESSION='xz' - fi - - local CHECKSUM - CHECKSUM="$(nvm_get_checksum "${FLAVOR}" "${TYPE}" "${VERSION}" "${SLUG}" "${COMPRESSION}")" - - local tmpdir - if [ "${KIND}" = 'binary' ]; then - tmpdir="$(nvm_cache_dir)/bin/${SLUG}" - else - tmpdir="$(nvm_cache_dir)/src/${SLUG}" - fi - command mkdir -p "${tmpdir}/files" || ( - nvm_err "creating directory ${tmpdir}/files failed" - return 3 - ) - - local TARBALL - TARBALL="${tmpdir}/${SLUG}.tar.${COMPRESSION}" - local TARBALL_URL - if nvm_version_greater_than_or_equal_to "${VERSION}" 0.1.14; then - TARBALL_URL="${MIRROR}/${VERSION}/${SLUG}.tar.${COMPRESSION}" - else - # node <= 0.1.13 does not have a directory - TARBALL_URL="${MIRROR}/${SLUG}.tar.${COMPRESSION}" - fi - - if [ -r "${TARBALL}" ]; then - nvm_err "Local cache found: $(nvm_sanitize_path "${TARBALL}")" - if nvm_compare_checksum "${TARBALL}" "${CHECKSUM}" >/dev/null 2>&1; then - nvm_err "Checksums match! Using existing downloaded archive $(nvm_sanitize_path "${TARBALL}")" - nvm_echo "${TARBALL}" - return 0 - fi - nvm_compare_checksum "${TARBALL}" "${CHECKSUM}" - nvm_err "Checksum check failed!" - nvm_err "Removing the broken local cache..." - command rm -rf "${TARBALL}" - fi - nvm_err "Downloading ${TARBALL_URL}..." - nvm_download -L -C - --progress-bar "${TARBALL_URL}" -o "${TARBALL}" || ( - command rm -rf "${TARBALL}" "${tmpdir}" - nvm_err "Binary download from ${TARBALL_URL} failed, trying source." - return 4 - ) - - if nvm_grep '404 Not Found' "${TARBALL}" >/dev/null; then - command rm -rf "${TARBALL}" "$tmpdir" - nvm_err "HTTP 404 at URL ${TARBALL_URL}"; - return 5 - fi - - nvm_compare_checksum "${TARBALL}" "${CHECKSUM}" || ( - command rm -rf "${tmpdir}/files" - return 6 - ) - - nvm_echo "${TARBALL}" -} - -nvm_get_make_jobs() { - if nvm_is_natural_num "${1-}"; then - NVM_MAKE_JOBS="$1" - nvm_echo "number of \`make\` jobs: $NVM_MAKE_JOBS" - return - elif [ -n "${1-}" ]; then - unset NVM_MAKE_JOBS - nvm_err "$1 is invalid for number of \`make\` jobs, must be a natural number" - fi - local NVM_OS - NVM_OS="$(nvm_get_os)" - local NVM_CPU_CORES - case "_$NVM_OS" in - "_linux") - NVM_CPU_CORES="$(nvm_grep -c -E '^processor.+: [0-9]+' /proc/cpuinfo)" - ;; - "_freebsd" | "_darwin") - NVM_CPU_CORES="$(sysctl -n hw.ncpu)" - ;; - "_sunos") - NVM_CPU_CORES="$(psrinfo | wc -l)" - ;; - "_aix") - NVM_CPU_CORES="$(pmcycles -m | wc -l)" - ;; - esac - if ! nvm_is_natural_num "$NVM_CPU_CORES" ; then - nvm_err 'Can not determine how many core(s) are available, running in single-threaded mode.' - nvm_err 'Please report an issue on GitHub to help us make nvm run faster on your computer!' - NVM_MAKE_JOBS=1 - else - nvm_echo "Detected that you have $NVM_CPU_CORES CPU core(s)" - if [ "$NVM_CPU_CORES" -gt 2 ]; then - NVM_MAKE_JOBS=$((NVM_CPU_CORES - 1)) - nvm_echo "Running with $NVM_MAKE_JOBS threads to speed up the build" - else - NVM_MAKE_JOBS=1 - nvm_echo 'Number of CPU core(s) less than or equal to 2, running in single-threaded mode' - fi - fi -} - -# args: flavor, type, version, make jobs, additional -nvm_install_source() { - local FLAVOR - case "${1-}" in - node | iojs) FLAVOR="${1}" ;; - *) - nvm_err 'supported flavors: node, iojs' - return 4 - ;; - esac - - local TYPE - TYPE="${2-}" - - local PREFIXED_VERSION - PREFIXED_VERSION="${3-}" - if [ -z "${PREFIXED_VERSION}" ]; then - nvm_err 'A version number is required.' - return 3 - fi - - local VERSION - VERSION="$(nvm_strip_iojs_prefix "${PREFIXED_VERSION}")" - - local NVM_MAKE_JOBS - NVM_MAKE_JOBS="${4-}" - - local ADDITIONAL_PARAMETERS - ADDITIONAL_PARAMETERS="${5-}" - - local NVM_ARCH - NVM_ARCH="$(nvm_get_arch)" - if [ "${NVM_ARCH}" = 'armv6l' ] || [ "${NVM_ARCH}" = 'armv7l' ]; then - if [ -n "${ADDITIONAL_PARAMETERS}" ]; then - ADDITIONAL_PARAMETERS="--without-snapshot ${ADDITIONAL_PARAMETERS}" - else - ADDITIONAL_PARAMETERS='--without-snapshot' - fi - fi - - if [ -n "${ADDITIONAL_PARAMETERS}" ]; then - nvm_echo "Additional options while compiling: ${ADDITIONAL_PARAMETERS}" - fi - - local NVM_OS - NVM_OS="$(nvm_get_os)" - - local make - make='make' - local MAKE_CXX - case "${NVM_OS}" in - 'freebsd') - make='gmake' - MAKE_CXX="CC=${CC:-cc} CXX=${CXX:-c++}" - ;; - 'darwin') - MAKE_CXX="CC=${CC:-cc} CXX=${CXX:-c++}" - ;; - 'aix') - make='gmake' - ;; - esac - if nvm_has "clang++" && nvm_has "clang" && nvm_version_greater_than_or_equal_to "$(nvm_clang_version)" 3.5; then - if [ -z "${CC-}" ] || [ -z "${CXX-}" ] ; then - nvm_echo "Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!" - MAKE_CXX="CC=${CC:-cc} CXX=${CXX:-c++}" - fi - fi - - local tar_compression_flag - tar_compression_flag='z' - if nvm_supports_xz "${VERSION}"; then - tar_compression_flag='J' - fi - - local tar - tar='tar' - if [ "${NVM_OS}" = 'aix' ]; then - tar='gtar' - fi - - local TARBALL - local TMPDIR - local VERSION_PATH - - TARBALL="$(nvm_download_artifact "${FLAVOR}" source "${TYPE}" "${VERSION}" | command tail -1)" && \ - [ -f "${TARBALL}" ] && \ - TMPDIR="$(dirname "${TARBALL}")/files" && \ - if ! ( - # shellcheck disable=SC2086 - command mkdir -p "${TMPDIR}" && \ - command "${tar}" -x${tar_compression_flag}f "${TARBALL}" -C "${TMPDIR}" --strip-components 1 && \ - VERSION_PATH="$(nvm_version_path "${PREFIXED_VERSION}")" && \ - nvm_cd "${TMPDIR}" && \ - nvm_echo '$>'./configure --prefix="${VERSION_PATH}" $ADDITIONAL_PARAMETERS'<' && \ - ./configure --prefix="${VERSION_PATH}" $ADDITIONAL_PARAMETERS && \ - $make -j "${NVM_MAKE_JOBS}" ${MAKE_CXX-} && \ - command rm -f "${VERSION_PATH}" 2>/dev/null && \ - $make -j "${NVM_MAKE_JOBS}" ${MAKE_CXX-} install - ); then - nvm_err "nvm: install ${VERSION} failed!" - command rm -rf "${TMPDIR-}" - return 1 - fi -} - -nvm_use_if_needed() { - if [ "_${1-}" = "_$(nvm_ls_current)" ]; then - return - fi - nvm use "$@" -} - -nvm_install_npm_if_needed() { - local VERSION - VERSION="$(nvm_ls_current)" - if ! nvm_has "npm"; then - nvm_echo 'Installing npm...' - if nvm_version_greater 0.2.0 "$VERSION"; then - nvm_err 'npm requires node v0.2.3 or higher' - elif nvm_version_greater_than_or_equal_to "$VERSION" 0.2.0; then - if nvm_version_greater 0.2.3 "$VERSION"; then - nvm_err 'npm requires node v0.2.3 or higher' - else - nvm_download -L https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh - fi - else - nvm_download -L https://npmjs.org/install.sh -o - | clean=yes sh - fi - fi - return $? -} - -nvm_match_version() { - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local PROVIDED_VERSION - PROVIDED_VERSION="$1" - case "_$PROVIDED_VERSION" in - "_$NVM_IOJS_PREFIX" | '_io.js') - nvm_version "$NVM_IOJS_PREFIX" - ;; - '_system') - nvm_echo 'system' - ;; - *) - nvm_version "$PROVIDED_VERSION" - ;; - esac -} - -nvm_npm_global_modules() { - local NPMLIST - local VERSION - VERSION="$1" - NPMLIST=$(nvm use "$VERSION" > /dev/null && npm list -g --depth=0 2> /dev/null | command sed 1,1d) - - local INSTALLS - INSTALLS=$(nvm_echo "$NPMLIST" | command sed -e '/ -> / d' -e '/\(empty\)/ d' -e 's/^.* \(.*@[^ ]*\).*/\1/' -e '/^npm@[^ ]*.*$/ d' | command xargs) - - local LINKS - LINKS="$(nvm_echo "$NPMLIST" | command sed -n 's/.* -> \(.*\)/\1/ p')" - - nvm_echo "$INSTALLS //// $LINKS" -} - -nvm_die_on_prefix() { - local NVM_DELETE_PREFIX - NVM_DELETE_PREFIX="$1" - case "$NVM_DELETE_PREFIX" in - 0|1) ;; - *) - nvm_err 'First argument "delete the prefix" must be zero or one' - return 1 - ;; - esac - local NVM_COMMAND - NVM_COMMAND="$2" - if [ -z "$NVM_COMMAND" ]; then - nvm_err 'Second argument "nvm command" must be nonempty' - return 2 - fi - - # npm first looks at $PREFIX (case-sensitive) - # we do not bother to test the value here; if this env var is set, unset it to continue. - if [ -n "${PREFIX-}" ]; then - nvm deactivate >/dev/null 2>&1 - nvm_err "nvm is not compatible with the \"PREFIX\" environment variable: currently set to \"${PREFIX}\"" - nvm_err 'Run `unset PREFIX` to unset it.' - return 3 - fi - - # npm normalizes NPM_CONFIG_-prefixed env vars - # https://github.com/npm/npmconf/blob/22827e4038d6eebaafeb5c13ed2b92cf97b8fb82/npmconf.js#L331-L348 - # https://github.com/npm/npm/blob/5e426a78ca02d0044f8dd26e0c5f881217081cbd/lib/config/core.js#L343-L359 - # - # here, we avoid trying to replicate "which one wins" or testing the value; if any are defined, it errors - # until none are left. - local NVM_NPM_CONFIG_PREFIX_ENV - NVM_NPM_CONFIG_PREFIX_ENV="$(command env | nvm_grep -i NPM_CONFIG_PREFIX | command tail -1 | command awk -F '=' '{print $1}')" - if [ -n "${NVM_NPM_CONFIG_PREFIX_ENV-}" ]; then - local NVM_CONFIG_VALUE - eval "NVM_CONFIG_VALUE=\"\$${NVM_NPM_CONFIG_PREFIX_ENV}\"" - if [ -n "${NVM_CONFIG_VALUE-}" ]; then - nvm deactivate >/dev/null 2>&1 - nvm_err "nvm is not compatible with the \"${NVM_NPM_CONFIG_PREFIX_ENV}\" environment variable: currently set to \"${NVM_CONFIG_VALUE}\"" - nvm_err "Run \`unset ${NVM_NPM_CONFIG_PREFIX_ENV}\` to unset it." - return 4 - fi - fi - - if ! nvm_has 'npm'; then - return - fi - - local NVM_NPM_PREFIX - NVM_NPM_PREFIX="$(npm config --loglevel=warn get prefix)" - if ! (nvm_tree_contains_path "$NVM_DIR" "$NVM_NPM_PREFIX" >/dev/null 2>&1); then - if [ "_$NVM_DELETE_PREFIX" = "_1" ]; then - npm config --loglevel=warn delete prefix - else - nvm deactivate >/dev/null 2>&1 - nvm_err "nvm is not compatible with the npm config \"prefix\" option: currently set to \"$NVM_NPM_PREFIX\"" - if nvm_has 'npm'; then - nvm_err "Run \`npm config delete prefix\` or \`$NVM_COMMAND\` to unset it." - else - nvm_err "Run \`$NVM_COMMAND\` to unset it." - fi - return 10 - fi - fi -} - -# Succeeds if $IOJS_VERSION represents an io.js version that has a -# Solaris binary, fails otherwise. -# Currently, only io.js 3.3.1 has a Solaris binary available, and it's the -# latest io.js version available. The expectation is that any potential io.js -# version later than v3.3.1 will also have Solaris binaries. -iojs_version_has_solaris_binary() { - local IOJS_VERSION - IOJS_VERSION="$1" - local STRIPPED_IOJS_VERSION - STRIPPED_IOJS_VERSION="$(nvm_strip_iojs_prefix "$IOJS_VERSION")" - if [ "_$STRIPPED_IOJS_VERSION" = "$IOJS_VERSION" ]; then - return 1 - fi - - # io.js started shipping Solaris binaries with io.js v3.3.1 - nvm_version_greater_than_or_equal_to "$STRIPPED_IOJS_VERSION" v3.3.1 -} - -# Succeeds if $NODE_VERSION represents a node version that has a -# Solaris binary, fails otherwise. -# Currently, node versions starting from v0.8.6 have a Solaris binary -# available. -node_version_has_solaris_binary() { - local NODE_VERSION - NODE_VERSION="$1" - # Error out if $NODE_VERSION is actually an io.js version - local STRIPPED_IOJS_VERSION - STRIPPED_IOJS_VERSION="$(nvm_strip_iojs_prefix "$NODE_VERSION")" - if [ "_$STRIPPED_IOJS_VERSION" != "_$NODE_VERSION" ]; then - return 1 - fi - - # node (unmerged) started shipping Solaris binaries with v0.8.6 and - # node versions v1.0.0 or greater are not considered valid "unmerged" node - # versions. - nvm_version_greater_than_or_equal_to "$NODE_VERSION" v0.8.6 && - ! nvm_version_greater_than_or_equal_to "$NODE_VERSION" v1.0.0 -} - -# Succeeds if $VERSION represents a version (node, io.js or merged) that has a -# Solaris binary, fails otherwise. -nvm_has_solaris_binary() { - local VERSION=$1 - if nvm_is_merged_node_version "$VERSION"; then - return 0 # All merged node versions have a Solaris binary - elif nvm_is_iojs_version "$VERSION"; then - iojs_version_has_solaris_binary "$VERSION" - else - node_version_has_solaris_binary "$VERSION" - fi -} - -nvm_sanitize_path() { - local SANITIZED_PATH - SANITIZED_PATH="${1-}" - if [ "_$SANITIZED_PATH" != "_$NVM_DIR" ]; then - SANITIZED_PATH="$(nvm_echo "$SANITIZED_PATH" | command sed -e "s#$NVM_DIR#\$NVM_DIR#g")" - fi - if [ "_$SANITIZED_PATH" != "_$HOME" ]; then - SANITIZED_PATH="$(nvm_echo "$SANITIZED_PATH" | command sed -e "s#$HOME#\$HOME#g")" - fi - nvm_echo "$SANITIZED_PATH" -} - -nvm_is_natural_num() { - if [ -z "$1" ]; then - return 4 - fi - case "$1" in - 0) return 1 ;; - -*) return 3 ;; # some BSDs return false positives for double-negated args - *) - [ "$1" -eq "$1" ] 2> /dev/null # returns 2 if it doesn't match - ;; - esac -} - -# Check version dir permissions -nvm_check_file_permissions() { - local ZSH_HAS_NONOMATCH_UNSET - ZSH_HAS_NONOMATCH_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_NONOMATCH_UNSET="$(set +e ; setopt | nvm_grep -q nonomatch ; nvm_echo $?)" - setopt nonomatch - fi - for FILE in $1/* $1/.[!.]* $1/..?* ; do - if [ -d "$FILE" ]; then - if ! nvm_check_file_permissions "$FILE"; then - if [ "${ZSH_HAS_NONOMATCH_UNSET}" -eq 1 ] && nvm_has "setopt"; then - setopt nomatch - fi - return 2 - fi - elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then - nvm_err "file is not writable or self-owned: $(nvm_sanitize_path "$FILE")" - if [ "${ZSH_HAS_NONOMATCH_UNSET}" -eq 1 ] && nvm_has "setopt"; then - setopt nomatch - fi - return 1 - fi - done - if [ "${ZSH_HAS_NONOMATCH_UNSET}" -eq 1 ] && nvm_has "setopt"; then - setopt nomatch - fi - return 0 -} - -nvm_cache_dir() { - nvm_echo "${NVM_DIR}/.cache" -} - -nvm() { - if [ $# -lt 1 ]; then - nvm --help - return - fi - - local DEFAULT_IFS - DEFAULT_IFS=" $(nvm_echo t | command tr t \\t) -" - if [ "${IFS}" != "${DEFAULT_IFS}" ]; then - IFS="${DEFAULT_IFS}" nvm "$@" - return $? - fi - - local COMMAND - COMMAND="${1-}" - shift - - # initialize local variables - local VERSION - local ADDITIONAL_PARAMETERS - - case $COMMAND in - 'help' | '--help' ) - local NVM_IOJS_PREFIX - NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" - local NVM_NODE_PREFIX - NVM_NODE_PREFIX="$(nvm_node_prefix)" - nvm_echo - nvm_echo "Node Version Manager" - nvm_echo - nvm_echo 'Note: refers to any version-like string nvm understands. This includes:' - nvm_echo ' - full or partial version numbers, starting with an optional "v" (0.10, v0.1.2, v1)' - nvm_echo " - default (built-in) aliases: $NVM_NODE_PREFIX, stable, unstable, $NVM_IOJS_PREFIX, system" - nvm_echo ' - custom aliases you define with `nvm alias foo`' - nvm_echo - nvm_echo ' Any options that produce colorized output should respect the `--no-colors` option.' - nvm_echo - nvm_echo 'Usage:' - nvm_echo ' nvm --help Show this message' - nvm_echo ' nvm --version Print out the installed version of nvm' - nvm_echo ' nvm install [-s] Download and install a , [-s] from source. Uses .nvmrc if available' - nvm_echo ' --reinstall-packages-from= When installing, reinstall packages installed in ' - nvm_echo ' --lts When installing, only select from LTS (long-term support) versions' - nvm_echo ' --lts= When installing, only select from versions for a specific LTS line' - nvm_echo ' --skip-default-packages When installing, skip the default-packages file if it exists' - nvm_echo ' --latest-npm After installing, attempt to upgrade to the latest working npm on the given node version' - nvm_echo ' nvm uninstall Uninstall a version' - nvm_echo ' nvm uninstall --lts Uninstall using automatic LTS (long-term support) alias `lts/*`, if available.' - nvm_echo ' nvm uninstall --lts= Uninstall using automatic alias for provided LTS line, if available.' - nvm_echo ' nvm use [--silent] Modify PATH to use . Uses .nvmrc if available' - nvm_echo ' --lts Uses automatic LTS (long-term support) alias `lts/*`, if available.' - nvm_echo ' --lts= Uses automatic alias for provided LTS line, if available.' - nvm_echo ' nvm exec [--silent] [] Run on . Uses .nvmrc if available' - nvm_echo ' --lts Uses automatic LTS (long-term support) alias `lts/*`, if available.' - nvm_echo ' --lts= Uses automatic alias for provided LTS line, if available.' - nvm_echo ' nvm run [--silent] [] Run `node` on with as arguments. Uses .nvmrc if available' - nvm_echo ' --lts Uses automatic LTS (long-term support) alias `lts/*`, if available.' - nvm_echo ' --lts= Uses automatic alias for provided LTS line, if available.' - nvm_echo ' nvm current Display currently activated version' - nvm_echo ' nvm ls List installed versions' - nvm_echo ' nvm ls List versions matching a given ' - nvm_echo ' nvm ls-remote List remote versions available for install' - nvm_echo ' --lts When listing, only show LTS (long-term support) versions' - nvm_echo ' nvm ls-remote List remote versions available for install, matching a given ' - nvm_echo ' --lts When listing, only show LTS (long-term support) versions' - nvm_echo ' --lts= When listing, only show versions for a specific LTS line' - nvm_echo ' nvm version Resolve the given description to a single local version' - nvm_echo ' nvm version-remote Resolve the given description to a single remote version' - nvm_echo ' --lts When listing, only select from LTS (long-term support) versions' - nvm_echo ' --lts= When listing, only select from versions for a specific LTS line' - nvm_echo ' nvm deactivate Undo effects of `nvm` on current shell' - nvm_echo ' nvm alias [] Show all aliases beginning with ' - nvm_echo ' nvm alias Set an alias named pointing to ' - nvm_echo ' nvm unalias Deletes the alias named ' - nvm_echo ' nvm install-latest-npm Attempt to upgrade to the latest working `npm` on the current node version' - nvm_echo ' nvm reinstall-packages Reinstall global `npm` packages contained in to current version' - nvm_echo ' nvm unload Unload `nvm` from shell' - nvm_echo ' nvm which [current | ] Display path to installed node version. Uses .nvmrc if available' - nvm_echo ' nvm cache dir Display path to the cache directory for nvm' - nvm_echo ' nvm cache clear Empty cache directory for nvm' - nvm_echo - nvm_echo 'Example:' - nvm_echo ' nvm install 8.0.0 Install a specific version number' - nvm_echo ' nvm use 8.0 Use the latest available 8.0.x release' - nvm_echo ' nvm run 6.10.3 app.js Run app.js using node 6.10.3' - nvm_echo ' nvm exec 4.8.3 node app.js Run `node app.js` with the PATH pointing to node 4.8.3' - nvm_echo ' nvm alias default 8.1.0 Set default node version on a shell' - nvm_echo ' nvm alias default node Always default to the latest available node version on a shell' - nvm_echo - nvm_echo 'Note:' - nvm_echo ' to remove, delete, or uninstall nvm - just remove the `$NVM_DIR` folder (usually `~/.nvm`)' - nvm_echo - ;; - - "cache" ) - case "${1-}" in - dir) nvm_cache_dir ;; - clear) - local DIR - DIR="$(nvm_cache_dir)" - if command rm -rf "${DIR}" && command mkdir -p "${DIR}"; then - nvm_echo 'nvm cache cleared.' - else - nvm_err "Unable to clear nvm cache: ${DIR}" - return 1 - fi - ;; - *) - >&2 nvm --help - return 127 - ;; - esac - ;; - - "debug" ) - local ZSH_HAS_SHWORDSPLIT_UNSET - local OS_VERSION - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - nvm_err "nvm --version: v$(nvm --version)" - if [ -n "${TERM_PROGRAM-}" ]; then - nvm_err "\$TERM_PROGRAM: $TERM_PROGRAM" - fi - nvm_err "\$SHELL: $SHELL" - # shellcheck disable=SC2169 - nvm_err "\$SHLVL: ${SHLVL-}" - nvm_err "\$HOME: $HOME" - nvm_err "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'" - nvm_err "\$PATH: $(nvm_sanitize_path "$PATH")" - nvm_err "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'" - nvm_err "\$NPM_CONFIG_PREFIX: '$(nvm_sanitize_path "$NPM_CONFIG_PREFIX")'" - nvm_err "\$NVM_NODEJS_ORG_MIRROR: '${NVM_NODEJS_ORG_MIRROR}'" - nvm_err "\$NVM_IOJS_ORG_MIRROR: '${NVM_IOJS_ORG_MIRROR}'" - nvm_err "shell version: '$(${SHELL} --version | command head -n 1)'" - nvm_err "uname -a: '$(command uname -a | command awk '{$2=""; print}' | command xargs)'" - if [ "$(nvm_get_os)" = "darwin" ] && nvm_has sw_vers; then - OS_VERSION="$(sw_vers | command awk '{print $2}' | command xargs)" - elif [ -r "/etc/issue" ]; then - OS_VERSION="$(command head -n 1 /etc/issue | command sed 's/\\.//g')" - if [ -z "${OS_VERSION}" ] && [ -r "/etc/os-release" ] ; then - # shellcheck disable=SC1091 - OS_VERSION="$(. /etc/os-release && echo "${NAME}" "${VERSION}")" - fi - fi - if [ -n "${OS_VERSION}" ]; then - nvm_err "OS version: ${OS_VERSION}" - fi - if nvm_has "curl"; then - nvm_err "curl: $(nvm_command_info curl), $(command curl -V | command head -n 1)" - else - nvm_err "curl: not found" - fi - if nvm_has "wget"; then - nvm_err "wget: $(nvm_command_info wget), $(command wget -V | command head -n 1)" - else - nvm_err "wget: not found" - fi - - for tool in git grep awk sed cut basename rm mkdir xargs; do - if nvm_has "${tool}"; then - nvm_err "${tool}: $(nvm_command_info ${tool}), $(command ${tool} --version | command head -n 1)" - else - nvm_err "${tool}: not found" - fi - done - - local NVM_DEBUG_OUTPUT - for NVM_DEBUG_COMMAND in 'nvm current' 'which node' 'which iojs' 'which npm' 'npm config get prefix' 'npm root -g' - do - NVM_DEBUG_OUTPUT="$($NVM_DEBUG_COMMAND 2>&1)" - nvm_err "$NVM_DEBUG_COMMAND: $(nvm_sanitize_path "$NVM_DEBUG_OUTPUT")" - done - if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - return 42 - ;; - - "install" | "i" ) - local version_not_provided - version_not_provided=0 - local NVM_OS - NVM_OS="$(nvm_get_os)" - - if ! nvm_has "curl" && ! nvm_has "wget"; then - nvm_err 'nvm needs curl or wget to proceed.' - return 1 - fi - - if [ $# -lt 1 ]; then - version_not_provided=1 - fi - - local nobinary - nobinary=0 - local LTS - local NVM_UPGRADE_NPM - NVM_UPGRADE_NPM=0 - while [ $# -ne 0 ] - do - case "$1" in - -s) - shift # consume "-s" - nobinary=1 - ;; - -j) - shift # consume "-j" - nvm_get_make_jobs "$1" - shift # consume job count - ;; - --lts) - LTS='*' - shift - ;; - --lts=*) - LTS="${1##--lts=}" - shift - ;; - --latest-npm) - NVM_UPGRADE_NPM=1 - shift - ;; - *) - break # stop parsing args - ;; - esac - done - - local provided_version - provided_version="${1-}" - - if [ -z "$provided_version" ]; then - if [ "_${LTS-}" = '_*' ]; then - nvm_echo 'Installing latest LTS version.' - if [ $# -gt 0 ]; then - shift - fi - elif [ "_${LTS-}" != '_' ]; then - nvm_echo "Installing with latest version of LTS line: $LTS" - if [ $# -gt 0 ]; then - shift - fi - else - nvm_rc_version - if [ $version_not_provided -eq 1 ] && [ -z "$NVM_RC_VERSION" ]; then - unset NVM_RC_VERSION - >&2 nvm --help - return 127 - fi - provided_version="$NVM_RC_VERSION" - unset NVM_RC_VERSION - fi - elif [ $# -gt 0 ]; then - shift - fi - - case "${provided_version}" in - 'lts/*') - LTS='*' - provided_version='' - ;; - lts/*) - LTS="${provided_version##lts/}" - provided_version='' - ;; - esac - - VERSION="$(NVM_VERSION_ONLY=true NVM_LTS="${LTS-}" nvm_remote_version "${provided_version}")" - - if [ "${VERSION}" = 'N/A' ]; then - local LTS_MSG - local REMOTE_CMD - if [ "${LTS-}" = '*' ]; then - LTS_MSG='(with LTS filter) ' - REMOTE_CMD='nvm ls-remote --lts' - elif [ -n "${LTS-}" ]; then - LTS_MSG="(with LTS filter '$LTS') " - REMOTE_CMD="nvm ls-remote --lts=${LTS}" - else - REMOTE_CMD='nvm ls-remote' - fi - nvm_err "Version '$provided_version' ${LTS_MSG-}not found - try \`${REMOTE_CMD}\` to browse available versions." - return 3 - fi - - ADDITIONAL_PARAMETERS='' - local PROVIDED_REINSTALL_PACKAGES_FROM - local REINSTALL_PACKAGES_FROM - local SKIP_DEFAULT_PACKAGES - local DEFAULT_PACKAGES - - while [ $# -ne 0 ] - do - case "$1" in - --reinstall-packages-from=*) - PROVIDED_REINSTALL_PACKAGES_FROM="$(nvm_echo "$1" | command cut -c 27-)" - if [ -z "${PROVIDED_REINSTALL_PACKAGES_FROM}" ]; then - nvm_err 'If --reinstall-packages-from is provided, it must point to an installed version of node.' - return 6 - fi - REINSTALL_PACKAGES_FROM="$(nvm_version "$PROVIDED_REINSTALL_PACKAGES_FROM")" ||: - ;; - --reinstall-packages-from) - nvm_err 'If --reinstall-packages-from is provided, it must point to an installed version of node using `=`.' - return 6 - ;; - --copy-packages-from=*) - PROVIDED_REINSTALL_PACKAGES_FROM="$(nvm_echo "$1" | command cut -c 22-)" - REINSTALL_PACKAGES_FROM="$(nvm_version "$PROVIDED_REINSTALL_PACKAGES_FROM")" ||: - ;; - --skip-default-packages) - SKIP_DEFAULT_PACKAGES=true - ;; - *) - ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS $1" - ;; - esac - shift - done - - if [ -z "${SKIP_DEFAULT_PACKAGES-}" ] && [ -f "${NVM_DIR}/default-packages" ]; then - DEFAULT_PACKAGES="" - - # Read lines from $NVM_DIR/default-packages - local line - while IFS=" " read -r line; do - # Skip empty lines. - [ -n "${line}" ] || continue - - # Skip comment lines that begin with `#`. - [ "$(nvm_echo "$line" | command cut -c1)" != "#" ] || continue - - # Fail on lines that have multiple space-separated words - case ${line} in - *\ * ) - nvm_err "Only one package per line is allowed in the ${NVM_DIR}/default-packages file. Please remove any lines with multiple space-separated values." - return 1 - ;; - esac - - DEFAULT_PACKAGES="${DEFAULT_PACKAGES}${line} " - done < "${NVM_DIR}/default-packages" - fi - - if [ -n "${PROVIDED_REINSTALL_PACKAGES_FROM-}" ] && [ "$(nvm_ensure_version_prefix "${PROVIDED_REINSTALL_PACKAGES_FROM}")" = "${VERSION}" ]; then - nvm_err "You can't reinstall global packages from the same version of node you're installing." - return 4 - elif [ "${REINSTALL_PACKAGES_FROM-}" = 'N/A' ]; then - nvm_err "If --reinstall-packages-from is provided, it must point to an installed version of node." - return 5 - fi - - local FLAVOR - if nvm_is_iojs_version "$VERSION"; then - FLAVOR="$(nvm_iojs_prefix)" - else - FLAVOR="$(nvm_node_prefix)" - fi - - if nvm_is_version_installed "$VERSION"; then - nvm_err "$VERSION is already installed." - if nvm use "$VERSION"; then - if [ "${NVM_UPGRADE_NPM}" = 1 ]; then - nvm install-latest-npm - fi - if [ -z "${SKIP_DEFAULT_PACKAGES-}" ] && [ -n "${DEFAULT_PACKAGES-}" ]; then - nvm_install_default_packages "$DEFAULT_PACKAGES" - fi - if [ -n "${REINSTALL_PACKAGES_FROM-}" ] && [ "_$REINSTALL_PACKAGES_FROM" != "_N/A" ]; then - nvm reinstall-packages "$REINSTALL_PACKAGES_FROM" - fi - fi - if [ -n "${LTS-}" ]; then - LTS="$(echo "${LTS}" | tr '[:upper:]' '[:lower:]')" - nvm_ensure_default_set "lts/${LTS}" - else - nvm_ensure_default_set "$provided_version" - fi - return $? - fi - - local EXIT_CODE - EXIT_CODE=-1 - if [ -n "${NVM_INSTALL_THIRD_PARTY_HOOK-}" ]; then - nvm_err '** $NVM_INSTALL_THIRD_PARTY_HOOK env var set; dispatching to third-party installation method **' - local NVM_METHOD_PREFERENCE - NVM_METHOD_PREFERENCE='binary' - if [ $nobinary -eq 1 ]; then - NVM_METHOD_PREFERENCE='source' - fi - local VERSION_PATH - VERSION_PATH="$(nvm_version_path "${VERSION}")" - "${NVM_INSTALL_THIRD_PARTY_HOOK}" "${VERSION}" "${FLAVOR}" std "${NVM_METHOD_PREFERENCE}" "${VERSION_PATH}" || { - EXIT_CODE=$? - nvm_err '*** Third-party $NVM_INSTALL_THIRD_PARTY_HOOK env var failed to install! ***' - return $EXIT_CODE - } - if ! nvm_is_version_installed "${VERSION}"; then - nvm_err '*** Third-party $NVM_INSTALL_THIRD_PARTY_HOOK env var claimed to succeed, but failed to install! ***' - return 33 - fi - EXIT_CODE=0 - else - - if [ "_$NVM_OS" = "_freebsd" ]; then - # node.js and io.js do not have a FreeBSD binary - nobinary=1 - nvm_err "Currently, there is no binary for FreeBSD" - elif [ "_$NVM_OS" = "_sunos" ]; then - # Not all node/io.js versions have a Solaris binary - if ! nvm_has_solaris_binary "$VERSION"; then - nobinary=1 - nvm_err "Currently, there is no binary of version $VERSION for SunOS" - fi - fi - - # skip binary install if "nobinary" option specified. - if [ $nobinary -ne 1 ] && nvm_binary_available "$VERSION"; then - nvm_install_binary "${FLAVOR}" std "${VERSION}" - EXIT_CODE=$? - fi - if [ "$EXIT_CODE" -ne 0 ]; then - if [ -z "${NVM_MAKE_JOBS-}" ]; then - nvm_get_make_jobs - fi - - nvm_install_source "${FLAVOR}" std "${VERSION}" "${NVM_MAKE_JOBS}" "${ADDITIONAL_PARAMETERS}" - EXIT_CODE=$? - fi - - fi - - if [ "$EXIT_CODE" -eq 0 ] && nvm_use_if_needed "${VERSION}" && nvm_install_npm_if_needed "${VERSION}"; then - if [ -n "${LTS-}" ]; then - nvm_ensure_default_set "lts/${LTS}" - else - nvm_ensure_default_set "$provided_version" - fi - if [ "${NVM_UPGRADE_NPM}" = 1 ]; then - nvm install-latest-npm - EXIT_CODE=$? - fi - if [ -z "${SKIP_DEFAULT_PACKAGES-}" ] && [ -n "${DEFAULT_PACKAGES-}" ]; then - nvm_install_default_packages "$DEFAULT_PACKAGES" - fi - if [ -n "${REINSTALL_PACKAGES_FROM-}" ] && [ "_$REINSTALL_PACKAGES_FROM" != "_N/A" ]; then - nvm reinstall-packages "$REINSTALL_PACKAGES_FROM" - EXIT_CODE=$? - fi - else - EXIT_CODE=$? - fi - return $EXIT_CODE - ;; - "uninstall" ) - if [ $# -ne 1 ]; then - >&2 nvm --help - return 127 - fi - - local PATTERN - PATTERN="${1-}" - case "${PATTERN-}" in - --) ;; - --lts | 'lts/*') - VERSION="$(nvm_match_version "lts/*")" - ;; - lts/*) - VERSION="$(nvm_match_version "lts/${PATTERN##lts/}")" - ;; - --lts=*) - VERSION="$(nvm_match_version "lts/${PATTERN##--lts=}")" - ;; - *) - VERSION="$(nvm_version "${PATTERN}")" - ;; - esac - - if [ "_${VERSION}" = "_$(nvm_ls_current)" ]; then - if nvm_is_iojs_version "${VERSION}"; then - nvm_err "nvm: Cannot uninstall currently-active io.js version, ${VERSION} (inferred from ${PATTERN})." - else - nvm_err "nvm: Cannot uninstall currently-active node version, ${VERSION} (inferred from ${PATTERN})." - fi - return 1 - fi - - if ! nvm_is_version_installed "${VERSION}"; then - nvm_err "${VERSION} version is not installed..." - return; - fi - - local SLUG_BINARY - local SLUG_SOURCE - if nvm_is_iojs_version "${VERSION}"; then - SLUG_BINARY="$(nvm_get_download_slug iojs binary std "${VERSION}")" - SLUG_SOURCE="$(nvm_get_download_slug iojs source std "${VERSION}")" - else - SLUG_BINARY="$(nvm_get_download_slug node binary std "${VERSION}")" - SLUG_SOURCE="$(nvm_get_download_slug node source std "${VERSION}")" - fi - - local NVM_SUCCESS_MSG - if nvm_is_iojs_version "${VERSION}"; then - NVM_SUCCESS_MSG="Uninstalled io.js $(nvm_strip_iojs_prefix "${VERSION}")" - else - NVM_SUCCESS_MSG="Uninstalled node ${VERSION}" - fi - - local VERSION_PATH - VERSION_PATH="$(nvm_version_path "${VERSION}")" - if ! nvm_check_file_permissions "${VERSION_PATH}"; then - nvm_err 'Cannot uninstall, incorrect permissions on installation folder.' - nvm_err 'This is usually caused by running `npm install -g` as root. Run the following commands as root to fix the permissions and then try again.' - nvm_err - nvm_err " chown -R $(whoami) \"$(nvm_sanitize_path "${VERSION_PATH}")\"" - nvm_err " chmod -R u+w \"$(nvm_sanitize_path "${VERSION_PATH}")\"" - return 1 - fi - - # Delete all files related to target version. - local CACHE_DIR - CACHE_DIR="$(nvm_cache_dir)" - command rm -rf \ - "${CACHE_DIR}/bin/${SLUG_BINARY}/files" \ - "${CACHE_DIR}/src/${SLUG_SOURCE}/files" \ - "${VERSION_PATH}" 2>/dev/null - nvm_echo "${NVM_SUCCESS_MSG}" - - # rm any aliases that point to uninstalled version. - for ALIAS in $(nvm_grep -l "$VERSION" "$(nvm_alias_path)/*" 2>/dev/null) - do - nvm unalias "$(command basename "$ALIAS")" - done - ;; - "deactivate" ) - local NEWPATH - NEWPATH="$(nvm_strip_path "$PATH" "/bin")" - if [ "_$PATH" = "_$NEWPATH" ]; then - nvm_err "Could not find $NVM_DIR/*/bin in \$PATH" - else - export PATH="$NEWPATH" - hash -r - nvm_echo "$NVM_DIR/*/bin removed from \$PATH" - fi - - if [ -n "${MANPATH-}" ]; then - NEWPATH="$(nvm_strip_path "$MANPATH" "/share/man")" - if [ "_$MANPATH" = "_$NEWPATH" ]; then - nvm_err "Could not find $NVM_DIR/*/share/man in \$MANPATH" - else - export MANPATH="$NEWPATH" - nvm_echo "$NVM_DIR/*/share/man removed from \$MANPATH" - fi - fi - - if [ -n "${NODE_PATH-}" ]; then - NEWPATH="$(nvm_strip_path "$NODE_PATH" "/lib/node_modules")" - if [ "_$NODE_PATH" != "_$NEWPATH" ]; then - export NODE_PATH="$NEWPATH" - nvm_echo "$NVM_DIR/*/lib/node_modules removed from \$NODE_PATH" - fi - fi - unset NVM_BIN - ;; - "use" ) - local PROVIDED_VERSION - local NVM_USE_SILENT - NVM_USE_SILENT=0 - local NVM_DELETE_PREFIX - NVM_DELETE_PREFIX=0 - local NVM_LTS - - while [ $# -ne 0 ] - do - case "$1" in - --silent) NVM_USE_SILENT=1 ;; - --delete-prefix) NVM_DELETE_PREFIX=1 ;; - --) ;; - --lts) NVM_LTS='*' ;; - --lts=*) NVM_LTS="${1##--lts=}" ;; - --*) ;; - *) - if [ -n "${1-}" ]; then - PROVIDED_VERSION="$1" - fi - ;; - esac - shift - done - - if [ -n "${NVM_LTS-}" ]; then - VERSION="$(nvm_match_version "lts/${NVM_LTS:-*}")" - elif [ -z "${PROVIDED_VERSION-}" ]; then - nvm_rc_version - if [ -n "${NVM_RC_VERSION-}" ]; then - PROVIDED_VERSION="$NVM_RC_VERSION" - VERSION="$(nvm_version "$PROVIDED_VERSION")" - fi - unset NVM_RC_VERSION - else - VERSION="$(nvm_match_version "$PROVIDED_VERSION")" - fi - - if [ -z "${VERSION}" ]; then - >&2 nvm --help - return 127 - fi - - if [ "_$VERSION" = '_system' ]; then - if nvm_has_system_node && nvm deactivate >/dev/null 2>&1; then - if [ $NVM_USE_SILENT -ne 1 ]; then - nvm_echo "Now using system version of node: $(node -v 2>/dev/null)$(nvm_print_npm_version)" - fi - return - elif nvm_has_system_iojs && nvm deactivate >/dev/null 2>&1; then - if [ $NVM_USE_SILENT -ne 1 ]; then - nvm_echo "Now using system version of io.js: $(iojs --version 2>/dev/null)$(nvm_print_npm_version)" - fi - return - elif [ $NVM_USE_SILENT -ne 1 ]; then - nvm_err 'System version of node not found.' - fi - return 127 - elif [ "_$VERSION" = "_∞" ]; then - if [ $NVM_USE_SILENT -ne 1 ]; then - nvm_err "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting." - fi - return 8 - fi - if [ "${VERSION}" = 'N/A' ]; then - nvm_err "N/A: version \"${PROVIDED_VERSION} -> ${VERSION}\" is not yet installed." - nvm_err "" - nvm_err "You need to run \"nvm install ${PROVIDED_VERSION}\" to install it before using it." - return 3 - # This nvm_ensure_version_installed call can be a performance bottleneck - # on shell startup. Perhaps we can optimize it away or make it faster. - elif ! nvm_ensure_version_installed "${VERSION}"; then - return $? - fi - - local NVM_VERSION_DIR - NVM_VERSION_DIR="$(nvm_version_path "$VERSION")" - - # Change current version - PATH="$(nvm_change_path "$PATH" "/bin" "$NVM_VERSION_DIR")" - if nvm_has manpath; then - if [ -z "${MANPATH-}" ]; then - local MANPATH - MANPATH=$(manpath) - fi - # Change current version - MANPATH="$(nvm_change_path "$MANPATH" "/share/man" "$NVM_VERSION_DIR")" - export MANPATH - fi - export PATH - hash -r - export NVM_BIN="$NVM_VERSION_DIR/bin" - if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then - command rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current" - fi - local NVM_USE_OUTPUT - NVM_USE_OUTPUT='' - if [ $NVM_USE_SILENT -ne 1 ]; then - if nvm_is_iojs_version "$VERSION"; then - NVM_USE_OUTPUT="Now using io.js $(nvm_strip_iojs_prefix "$VERSION")$(nvm_print_npm_version)" - else - NVM_USE_OUTPUT="Now using node $VERSION$(nvm_print_npm_version)" - fi - fi - if [ "_$VERSION" != "_system" ]; then - local NVM_USE_CMD - NVM_USE_CMD="nvm use --delete-prefix" - if [ -n "$PROVIDED_VERSION" ]; then - NVM_USE_CMD="$NVM_USE_CMD $VERSION" - fi - if [ $NVM_USE_SILENT -eq 1 ]; then - NVM_USE_CMD="$NVM_USE_CMD --silent" - fi - if ! nvm_die_on_prefix "$NVM_DELETE_PREFIX" "$NVM_USE_CMD"; then - return 11 - fi - fi - if [ -n "${NVM_USE_OUTPUT-}" ]; then - nvm_echo "$NVM_USE_OUTPUT" - fi - ;; - "run" ) - local provided_version - local has_checked_nvmrc - has_checked_nvmrc=0 - # run given version of node - - local NVM_SILENT - local NVM_LTS - while [ $# -gt 0 ] - do - case "$1" in - --silent) NVM_SILENT='--silent' ; shift ;; - --lts) NVM_LTS='*' ; shift ;; - --lts=*) NVM_LTS="${1##--lts=}" ; shift ;; - *) - if [ -n "$1" ]; then - break - else - shift - fi - ;; # stop processing arguments - esac - done - - if [ $# -lt 1 ] && [ -z "${NVM_LTS-}" ]; then - if [ -n "${NVM_SILENT-}" ]; then - nvm_rc_version >/dev/null 2>&1 && has_checked_nvmrc=1 - else - nvm_rc_version && has_checked_nvmrc=1 - fi - if [ -n "$NVM_RC_VERSION" ]; then - VERSION="$(nvm_version "$NVM_RC_VERSION")" ||: - fi - unset NVM_RC_VERSION - if [ "${VERSION:-N/A}" = 'N/A' ]; then - >&2 nvm --help - return 127 - fi - fi - - if [ -z "${NVM_LTS-}" ]; then - provided_version="$1" - if [ -n "$provided_version" ]; then - VERSION="$(nvm_version "$provided_version")" ||: - if [ "_${VERSION:-N/A}" = '_N/A' ] && ! nvm_is_valid_version "$provided_version"; then - provided_version='' - if [ $has_checked_nvmrc -ne 1 ]; then - if [ -n "${NVM_SILENT-}" ]; then - nvm_rc_version >/dev/null 2>&1 && has_checked_nvmrc=1 - else - nvm_rc_version && has_checked_nvmrc=1 - fi - fi - VERSION="$(nvm_version "$NVM_RC_VERSION")" ||: - unset NVM_RC_VERSION - else - shift - fi - fi - fi - - local NVM_IOJS - if nvm_is_iojs_version "$VERSION"; then - NVM_IOJS=true - fi - - local EXIT_CODE - - local ZSH_HAS_SHWORDSPLIT_UNSET - ZSH_HAS_SHWORDSPLIT_UNSET=1 - if nvm_has "setopt"; then - ZSH_HAS_SHWORDSPLIT_UNSET="$(set +e ; setopt | nvm_grep -q shwordsplit ; nvm_echo $?)" - setopt shwordsplit - fi - local LTS_ARG - if [ -n "${NVM_LTS-}" ]; then - LTS_ARG="--lts=${NVM_LTS-}" - VERSION='' - fi - if [ "_$VERSION" = "_N/A" ]; then - nvm_ensure_version_installed "$provided_version" - elif [ "$NVM_IOJS" = true ]; then - nvm exec "${NVM_SILENT-}" "${LTS_ARG-}" "$VERSION" iojs "$@" - else - nvm exec "${NVM_SILENT-}" "${LTS_ARG-}" "$VERSION" node "$@" - fi - EXIT_CODE="$?" - if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then - unsetopt shwordsplit - fi - return $EXIT_CODE - ;; - "exec" ) - local NVM_SILENT - local NVM_LTS - while [ $# -gt 0 ] - do - case "$1" in - --silent) NVM_SILENT='--silent' ; shift ;; - --lts) NVM_LTS='*' ; shift ;; - --lts=*) NVM_LTS="${1##--lts=}" ; shift ;; - --) break ;; - --*) - nvm_err "Unsupported option \"$1\"." - return 55 - ;; - *) - if [ -n "$1" ]; then - break - else - shift - fi - ;; # stop processing arguments - esac - done - - local provided_version - provided_version="$1" - if [ "${NVM_LTS-}" != '' ]; then - provided_version="lts/${NVM_LTS:-*}" - VERSION="$provided_version" - elif [ -n "$provided_version" ]; then - VERSION="$(nvm_version "$provided_version")" ||: - if [ "_$VERSION" = '_N/A' ] && ! nvm_is_valid_version "$provided_version"; then - if [ -n "${NVM_SILENT-}" ]; then - nvm_rc_version >/dev/null 2>&1 - else - nvm_rc_version - fi - provided_version="$NVM_RC_VERSION" - unset NVM_RC_VERSION - VERSION="$(nvm_version "$provided_version")" ||: - else - shift - fi - fi - - nvm_ensure_version_installed "$provided_version" - EXIT_CODE=$? - if [ "$EXIT_CODE" != "0" ]; then - return $EXIT_CODE - fi - - if [ -z "${NVM_SILENT-}" ]; then - if [ "${NVM_LTS-}" = '*' ]; then - nvm_echo "Running node latest LTS -> $(nvm_version "$VERSION")$(nvm use --silent "$VERSION" && nvm_print_npm_version)" - elif [ -n "${NVM_LTS-}" ]; then - nvm_echo "Running node LTS \"${NVM_LTS-}\" -> $(nvm_version "$VERSION")$(nvm use --silent "$VERSION" && nvm_print_npm_version)" - elif nvm_is_iojs_version "$VERSION"; then - nvm_echo "Running io.js $(nvm_strip_iojs_prefix "$VERSION")$(nvm use --silent "$VERSION" && nvm_print_npm_version)" - else - nvm_echo "Running node $VERSION$(nvm use --silent "$VERSION" && nvm_print_npm_version)" - fi - fi - NODE_VERSION="$VERSION" "$NVM_DIR/nvm-exec" "$@" - ;; - "ls" | "list" ) - local PATTERN - local NVM_NO_COLORS - while [ $# -gt 0 ] - do - case "${1}" in - --) ;; - --no-colors) NVM_NO_COLORS="${1}" ;; - --*) - nvm_err "Unsupported option \"${1}\"." - return 55; - ;; - *) - PATTERN="${PATTERN:-$1}" - ;; - esac - shift - done - local NVM_LS_OUTPUT - local NVM_LS_EXIT_CODE - NVM_LS_OUTPUT=$(nvm_ls "${PATTERN-}") - NVM_LS_EXIT_CODE=$? - NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "$NVM_LS_OUTPUT" - if [ -z "${PATTERN-}" ]; then - if [ -n "${NVM_NO_COLORS-}" ]; then - nvm alias --no-colors - else - nvm alias - fi - fi - return $NVM_LS_EXIT_CODE - ;; - "ls-remote" | "list-remote" ) - local NVM_LTS - local PATTERN - local NVM_NO_COLORS - while [ $# -gt 0 ] - do - case "${1-}" in - --) ;; - --lts) - NVM_LTS='*' - ;; - --lts=*) - NVM_LTS="${1##--lts=}" - ;; - --no-colors) NVM_NO_COLORS="${1}" ;; - --*) - nvm_err "Unsupported option \"${1}\"." - return 55; - ;; - *) - if [ -z "${PATTERN-}" ]; then - PATTERN="${1-}" - if [ -z "${NVM_LTS-}" ]; then - case "${PATTERN}" in - 'lts/*') NVM_LTS='*' ;; - lts/*) NVM_LTS="${PATTERN##lts/}" ;; - esac - fi - fi - ;; - esac - shift - done - - local NVM_OUTPUT - local EXIT_CODE - NVM_OUTPUT="$(NVM_LTS="${NVM_LTS-}" nvm_remote_versions "${PATTERN}" &&:)" - EXIT_CODE=$? - if [ -n "$NVM_OUTPUT" ]; then - NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "$NVM_OUTPUT" - return $EXIT_CODE - fi - NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "N/A" - return 3 - ;; - "current" ) - nvm_version current - ;; - "which" ) - local provided_version - provided_version="${1-}" - if [ $# -eq 0 ]; then - nvm_rc_version - if [ -n "${NVM_RC_VERSION}" ]; then - provided_version="${NVM_RC_VERSION}" - VERSION=$(nvm_version "${NVM_RC_VERSION}") ||: - fi - unset NVM_RC_VERSION - elif [ "_${1}" != '_system' ]; then - VERSION="$(nvm_version "${provided_version}")" ||: - else - VERSION="${1-}" - fi - if [ -z "${VERSION}" ]; then - >&2 nvm --help - return 127 - fi - - if [ "_$VERSION" = '_system' ]; then - if nvm_has_system_iojs >/dev/null 2>&1 || nvm_has_system_node >/dev/null 2>&1; then - local NVM_BIN - NVM_BIN="$(nvm use system >/dev/null 2>&1 && command which node)" - if [ -n "$NVM_BIN" ]; then - nvm_echo "$NVM_BIN" - return - fi - return 1 - fi - nvm_err 'System version of node not found.' - return 127 - elif [ "_$VERSION" = "_∞" ]; then - nvm_err "The alias \"$2\" leads to an infinite loop. Aborting." - return 8 - fi - - nvm_ensure_version_installed "$provided_version" - EXIT_CODE=$? - if [ "$EXIT_CODE" != "0" ]; then - return $EXIT_CODE - fi - local NVM_VERSION_DIR - NVM_VERSION_DIR="$(nvm_version_path "$VERSION")" - nvm_echo "$NVM_VERSION_DIR/bin/node" - ;; - "alias" ) - local NVM_ALIAS_DIR - NVM_ALIAS_DIR="$(nvm_alias_path)" - local NVM_CURRENT - NVM_CURRENT="$(nvm_ls_current)" - - command mkdir -p "${NVM_ALIAS_DIR}/lts" - - local ALIAS - local TARGET - local NVM_NO_COLORS - ALIAS='--' - TARGET='--' - while [ $# -gt 0 ] - do - case "${1-}" in - --) ;; - --no-colors) NVM_NO_COLORS="${1}" ;; - --*) - nvm_err "Unsupported option \"${1}\"." - return 55 - ;; - *) - if [ "${ALIAS}" = '--' ]; then - ALIAS="${1-}" - elif [ "${TARGET}" = '--' ]; then - TARGET="${1-}" - fi - ;; - esac - shift - done - - if [ -z "${TARGET}" ]; then - # for some reason the empty string was explicitly passed as the target - # so, unalias it. - nvm unalias "${ALIAS}" - return $? - elif [ "${TARGET}" != '--' ]; then - # a target was passed: create an alias - if [ "${ALIAS#*\/}" != "${ALIAS}" ]; then - nvm_err 'Aliases in subdirectories are not supported.' - return 1 - fi - VERSION="$(nvm_version "${TARGET}")" ||: - if [ "${VERSION}" = 'N/A' ]; then - nvm_err "! WARNING: Version '${TARGET}' does not exist." - fi - nvm_make_alias "${ALIAS}" "${TARGET}" - NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT-}" DEFAULT=false nvm_print_formatted_alias "${ALIAS}" "${TARGET}" "$VERSION" - else - if [ "${ALIAS-}" = '--' ]; then - unset ALIAS - fi - - nvm_list_aliases "${ALIAS-}" - fi - ;; - "unalias" ) - local NVM_ALIAS_DIR - NVM_ALIAS_DIR="$(nvm_alias_path)" - command mkdir -p "$NVM_ALIAS_DIR" - if [ $# -ne 1 ]; then - >&2 nvm --help - return 127 - fi - if [ "${1#*\/}" != "${1-}" ]; then - nvm_err 'Aliases in subdirectories are not supported.' - return 1 - fi - [ ! -f "$NVM_ALIAS_DIR/${1-}" ] && nvm_err "Alias ${1-} doesn't exist!" && return - local NVM_ALIAS_ORIGINAL - NVM_ALIAS_ORIGINAL="$(nvm_alias "${1}")" - command rm -f "$NVM_ALIAS_DIR/${1}" - nvm_echo "Deleted alias ${1} - restore it with \`nvm alias \"${1}\" \"$NVM_ALIAS_ORIGINAL\"\`" - ;; - "install-latest-npm") - if [ $# -ne 0 ]; then - >&2 nvm --help - return 127 - fi - - nvm_install_latest_npm - ;; - "reinstall-packages" | "copy-packages" ) - if [ $# -ne 1 ]; then - >&2 nvm --help - return 127 - fi - - local PROVIDED_VERSION - PROVIDED_VERSION="${1-}" - - if [ "$PROVIDED_VERSION" = "$(nvm_ls_current)" ] || [ "$(nvm_version "$PROVIDED_VERSION" ||:)" = "$(nvm_ls_current)" ]; then - nvm_err 'Can not reinstall packages from the current version of node.' - return 2 - fi - - local VERSION - if [ "_$PROVIDED_VERSION" = "_system" ]; then - if ! nvm_has_system_node && ! nvm_has_system_iojs; then - nvm_err 'No system version of node or io.js detected.' - return 3 - fi - VERSION="system" - else - VERSION="$(nvm_version "$PROVIDED_VERSION")" ||: - fi - - local NPMLIST - NPMLIST="$(nvm_npm_global_modules "$VERSION")" - local INSTALLS - local LINKS - INSTALLS="${NPMLIST%% //// *}" - LINKS="${NPMLIST##* //// }" - - nvm_echo "Reinstalling global packages from $VERSION..." - if [ -n "${INSTALLS}" ]; then - nvm_echo "$INSTALLS" | command xargs npm install -g --quiet - else - nvm_echo "No installed global packages found..." - fi - - nvm_echo "Linking global packages from $VERSION..." - if [ -n "${LINKS}" ]; then - ( - set -f; IFS=' -' # necessary to turn off variable expansion except for newlines - for LINK in $LINKS; do - set +f; unset IFS # restore variable expansion - if [ -n "$LINK" ]; then - (nvm_cd "$LINK" && npm link) - fi - done - ) - else - nvm_echo "No linked global packages found..." - fi - ;; - "clear-cache" ) - command rm -f "$NVM_DIR/v*" "$(nvm_version_dir)" 2>/dev/null - nvm_echo 'nvm cache cleared.' - ;; - "version" ) - nvm_version "${1}" - ;; - "version-remote" ) - local NVM_LTS - local PATTERN - while [ $# -gt 0 ] - do - case "${1-}" in - --) ;; - --lts) - NVM_LTS='*' - ;; - --lts=*) - NVM_LTS="${1##--lts=}" - ;; - --*) - nvm_err "Unsupported option \"${1}\"." - return 55; - ;; - *) - PATTERN="${PATTERN:-${1}}" - ;; - esac - shift - done - case "${PATTERN}" in - 'lts/*') - NVM_LTS='*' - unset PATTERN - ;; - lts/*) - NVM_LTS="${PATTERN##lts/}" - unset PATTERN - ;; - esac - NVM_VERSION_ONLY=true NVM_LTS="${NVM_LTS-}" nvm_remote_version "${PATTERN:-node}" - ;; - "--version" ) - nvm_echo '0.33.11' - ;; - "unload" ) - nvm deactivate >/dev/null 2>&1 - unset -f nvm \ - nvm_iojs_prefix nvm_node_prefix \ - nvm_add_iojs_prefix nvm_strip_iojs_prefix \ - nvm_is_iojs_version nvm_is_alias nvm_has_non_aliased \ - nvm_ls_remote nvm_ls_remote_iojs nvm_ls_remote_index_tab \ - nvm_ls nvm_remote_version nvm_remote_versions \ - nvm_install_binary nvm_install_source nvm_clang_version \ - nvm_get_mirror nvm_get_download_slug nvm_download_artifact \ - nvm_install_npm_if_needed nvm_use_if_needed nvm_check_file_permissions \ - nvm_print_versions nvm_compute_checksum nvm_checksum \ - nvm_get_checksum_alg nvm_get_checksum nvm_compare_checksum \ - nvm_version nvm_rc_version nvm_match_version \ - nvm_ensure_default_set nvm_get_arch nvm_get_os \ - nvm_print_implicit_alias nvm_validate_implicit_alias \ - nvm_resolve_alias nvm_ls_current nvm_alias \ - nvm_binary_available nvm_change_path nvm_strip_path \ - nvm_num_version_groups nvm_format_version nvm_ensure_version_prefix \ - nvm_normalize_version nvm_is_valid_version \ - nvm_ensure_version_installed nvm_cache_dir \ - nvm_version_path nvm_alias_path nvm_version_dir \ - nvm_find_nvmrc nvm_find_up nvm_tree_contains_path \ - nvm_version_greater nvm_version_greater_than_or_equal_to \ - nvm_print_npm_version nvm_install_latest_npm nvm_npm_global_modules \ - nvm_has_system_node nvm_has_system_iojs \ - nvm_download nvm_get_latest nvm_has nvm_install_default_packages nvm_curl_use_compression nvm_curl_version \ - nvm_supports_source_options nvm_auto nvm_supports_xz \ - nvm_echo nvm_err nvm_grep nvm_cd \ - nvm_die_on_prefix nvm_get_make_jobs nvm_get_minor_version \ - nvm_has_solaris_binary nvm_is_merged_node_version \ - nvm_is_natural_num nvm_is_version_installed \ - nvm_list_aliases nvm_make_alias nvm_print_alias_path \ - nvm_print_default_alias nvm_print_formatted_alias nvm_resolve_local_alias \ - nvm_sanitize_path nvm_has_colors nvm_process_parameters \ - node_version_has_solaris_binary iojs_version_has_solaris_binary \ - nvm_curl_libz_support nvm_command_info \ - > /dev/null 2>&1 - unset NVM_RC_VERSION NVM_NODEJS_ORG_MIRROR NVM_IOJS_ORG_MIRROR NVM_DIR \ - NVM_CD_FLAGS NVM_BIN NVM_MAKE_JOBS \ - > /dev/null 2>&1 - ;; - * ) - >&2 nvm --help - return 127 - ;; - esac -} - -nvm_install_default_packages() { - nvm_echo "Installing default global packages from ${NVM_DIR}/default-packages..." - - if ! nvm_echo "$1" | command xargs npm install -g --quiet; then - nvm_err "Failed installing default packages. Please check if your default-packages file or a package in it has problems!" - return 1 - fi -} - -nvm_supports_source_options() { - # shellcheck disable=SC1091 - [ "_$(nvm_echo '[ $# -gt 0 ] && nvm_echo $1' | . /dev/stdin yes 2> /dev/null)" = "_yes" ] -} - -nvm_supports_xz() { - if [ -z "${1-}" ] || ! command which xz >/dev/null 2>&1; then - return 1 - fi - - # all node versions v4.0.0 and later have xz - if nvm_is_merged_node_version "${1}"; then - return 0 - fi - - # 0.12x: node v0.12.10 and later have xz - if nvm_version_greater_than_or_equal_to "${1}" "0.12.10" \ - && nvm_version_greater "0.13.0" "${1}"; then - return 0 - fi - - # 0.10x: node v0.10.42 and later have xz - if nvm_version_greater_than_or_equal_to "${1}" "0.10.42" \ - && nvm_version_greater "0.11.0" "${1}"; then - return 0 - fi - - local NVM_OS - NVM_OS="$(nvm_get_os)" - case "${NVM_OS}" in - darwin) - # darwin only has xz for io.js v2.3.2 and later - nvm_version_greater_than_or_equal_to "${1}" "2.3.2" - ;; - *) - nvm_version_greater_than_or_equal_to "${1}" "1.0.0" - ;; - esac - return $? -} - -nvm_auto() { - local NVM_MODE - NVM_MODE="${1-}" - local VERSION - if [ "_$NVM_MODE" = '_install' ]; then - VERSION="$(nvm_alias default 2>/dev/null || nvm_echo)" - if [ -n "$VERSION" ]; then - nvm install "$VERSION" >/dev/null - elif nvm_rc_version >/dev/null 2>&1; then - nvm install >/dev/null - fi - elif [ "_$NVM_MODE" = '_use' ]; then - VERSION="$(nvm_resolve_local_alias default 2>/dev/null || nvm_echo)" - if [ -n "$VERSION" ]; then - nvm use --silent "$VERSION" >/dev/null - elif nvm_rc_version >/dev/null 2>&1; then - nvm use --silent >/dev/null - fi - elif [ "_$NVM_MODE" != '_none' ]; then - nvm_err 'Invalid auto mode supplied.' - return 1 - fi -} - -nvm_process_parameters() { - local NVM_AUTO_MODE - NVM_AUTO_MODE='use' - if nvm_supports_source_options; then - while [ $# -ne 0 ] - do - case "$1" in - --install) NVM_AUTO_MODE='install' ;; - --no-use) NVM_AUTO_MODE='none' ;; - esac - shift - done - fi - nvm_auto "$NVM_AUTO_MODE" -} - -nvm_process_parameters "$@" - -} # this ensures the entire script is downloaded # diff --git a/buildroot-external/rootfs-overlay/root/.nvm/package.json b/buildroot-external/rootfs-overlay/root/.nvm/package.json deleted file mode 100644 index 5a4fd87f..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "nvm", - "version": "0.33.11", - "description": "Node Version Manager - Simple bash script to manage multiple active node.js versions", - "directories": { - "test": "test" - }, - "scripts": { - "test": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make test-$shell", - "test/fast": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=fast test-$shell", - "test/slow": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=slow test-$shell", - "test/install_script": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=install_script test-$shell", - "test/installation": "npm run --silent test/installation/node && npm run --silent test/installation/iojs", - "test/installation/node": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_node test-$shell", - "test/installation/iojs": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_iojs test-$shell", - "test/sourcing": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=sourcing test-$shell", - "doctoc": "doctoc --title='## Table of Contents' --github README.md", - "eclint": "eclint check $(git ls-tree --name-only HEAD | xargs)" - }, - "repository": { - "type": "git", - "url": "git://github.com/creationix/nvm.git" - }, - "keywords": [ - "nvm", - "node", - "iojs", - "version", - "manager" - ], - "author": "Tim Caswell ", - "license": "MIT", - "bugs": { - "url": "https://github.com/creationix/nvm/issues" - }, - "homepage": "https://github.com/creationix/nvm", - "devDependencies": { - "eclint": "^2.6.0", - "replace": "^0.3.0", - "semver": "^5.0.1", - "urchin": "^0.0.5", - "doctoc": "^1.2.0" - } -} diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/common.sh b/buildroot-external/rootfs-overlay/root/.nvm/test/common.sh deleted file mode 100644 index 095c1a84..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/common.sh +++ /dev/null @@ -1,77 +0,0 @@ -assert_ok() { - local FUNCTION=$1 - shift - - $($FUNCTION $@) || die '"'"$FUNCTION $@"'" should have succeeded, but failed' -} - -assert_not_ok() { - local FUNCTION=$1 - shift - - ! $($FUNCTION $@) || die '"'"$FUNCTION $@"'" should have failed, but succeeded' -} - -strip_colors() { - while read -r line; do - echo "$line" | LC_ALL=C command sed 's/\[[ -?]*[@-~]//g' - done -} - -make_echo() { - echo "#!/bin/sh" > "$1" - echo "echo \"${2}\"" > "$1" - chmod a+x "$1" -} - -make_fake_node() { - local VERSION - VERSION="${1-}" - [ -n "${VERSION}" ] || return 1 - - local BIN_PATH - BIN_PATH="$(nvm_version_path "${VERSION}")/bin" - mkdir -p "${BIN_PATH}" || { - echo >&2 'unable to make bin dir' - return 2 - } - - make_echo "${BIN_PATH}/node" "${VERSION}" || { - echo >&2 'unable to make fake node bin' - return 3 - } -} - -make_fake_iojs() { - local VERSION - VERSION="${1-}" - [ -n "${VERSION}" ] || return 1 - - local BIN_PATH - BIN_PATH="$(nvm_version_path "iojs-${VERSION}")/bin" - mkdir -p "${BIN_PATH}" || { - echo >&2 'unable to make bin dir' - return 2 - } - - make_echo "${BIN_PATH}/node" "${VERSION}" || { - echo >&2 'unable to make fake node bin' - return 3 - } - make_echo "${BIN_PATH}/iojs" "${VERSION}" || { - echo >&2 'unable to make fake iojs bin' - return 3 - } -} - -watch() { - $@ & - local JOB - JOB=$! - while true; do sleep 15; >&2 echo '* ping *'; done & - wait $JOB; - local EXIT_CODE - EXIT_CODE=$? - kill %2; - return $EXIT_CODE -} diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" deleted file mode 100755 index d10937d6..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -die () { echo "$@" ; exit 1; } - -OUTPUT="$(nvm alias foo/bar baz 2>&1)" -EXPECTED_OUTPUT="Aliases in subdirectories are not supported." -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to create an alias with a slash should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'" - -EXIT_CODE="$(nvm alias foo/bar baz >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = "1" ] || die "trying to create an alias with a slash should fail with code 1, got '$EXIT_CODE'" - -OUTPUT="$(nvm alias foo/ baz 2>&1)" -EXPECTED_OUTPUT="Aliases in subdirectories are not supported." -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to create an alias ending with a slash should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'" - -EXIT_CODE="$(nvm alias foo/ baz >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = "1" ] || die "trying to create an alias ending with a slash should fail with code 1, got '$EXIT_CODE'" - -OUTPUT="$(nvm alias /bar baz 2>&1)" -EXPECTED_OUTPUT="Aliases in subdirectories are not supported." -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to create an alias starting with a slash should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'" - -EXIT_CODE="$(nvm alias /bar baz >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = "1" ] || die "trying to create an alias starting with a slash should fail with code 1, got '$EXIT_CODE'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" deleted file mode 100755 index 2afafad4..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -die () { echo "$@" ; exit 1; } - -OUTPUT="$(nvm unalias foo/bar 2>&1)" -EXPECTED_OUTPUT="Aliases in subdirectories are not supported." -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove an alias with a slash should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'" - -EXIT_CODE="$(nvm unalias foo/bar >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = "1" ] || die "trying to remove an alias with a slash should fail with code 1, got '$EXIT_CODE'" - -OUTPUT="$(nvm unalias foo/ 2>&1)" -EXPECTED_OUTPUT="Aliases in subdirectories are not supported." -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove an alias ending with a slash should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'" - -EXIT_CODE="$(nvm unalias foo/ >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = "1" ] || die "trying to remove an alias ending with a slash should fail with code 1, got '$EXIT_CODE'" - -OUTPUT="$(nvm unalias /bar 2>&1)" -EXPECTED_OUTPUT="Aliases in subdirectories are not supported." -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove an alias starting with a slash should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'" - -EXIT_CODE="$(nvm unalias /bar >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = "1" ] || die "trying to remove an alias starting with a slash should fail with code 1, got '$EXIT_CODE'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" again should change the target" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" again should change the target" deleted file mode 100755 index f366bebd..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" again should change the target" +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -\. ../../common.sh - -die () { echo "$@" ; exit 1; } - -if [ -n "$ZSH_VERSION" ]; then - # set clobber option in order to test that this does not produce any - # incompatibilities - setopt noclobber -fi - -nvm alias test-stable-1 0.0.2 || die '`nvm alias test-stable-1 0.0.2` failed' - -OUTPUT="$(nvm alias test-stable-1 | strip_colors)" -EXPECTED_OUTPUT='test-stable-1 -> 0.0.2 (-> v0.0.2)' -echo "$OUTPUT" | \grep -F "$EXPECTED_OUTPUT" || die "nvm alias test-stable-1 0.0.2 did not set test-stable-1 to 0.0.2: got '$OUTPUT'" - -nvm alias test-stable-1 0.0.1 || die '`nvm alias test-stable-1 0.0.1` failed' - -OUTPUT="$(nvm alias test-stable-1 | strip_colors)" -EXPECTED_OUTPUT='test-stable-1 -> 0.0.1 (-> v0.0.1)' -echo "$OUTPUT" | \grep -F "$EXPECTED_OUTPUT" || die "nvm alias test-stable-1 0.0.1 did not set test-stable-1 to 0.0.1: got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" should list but one alias." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" should list but one alias." deleted file mode 100755 index 7ba4c385..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias \" should list but one alias." +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -[ $(nvm alias test-stable-1 | wc -l) = '2' ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" deleted file mode 100755 index 24a341c7..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -\. ../../common.sh - -die () { echo "$@" ; exit 1; } - -NVM_ALIAS_OUTPUT=$(nvm alias | strip_colors) - -EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)" -STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")" -echo "$NVM_ALIAS_OUTPUT" | \grep -F "stable -> $EXPECTED_STABLE (-> $STABLE_VERSION) (default)" \ - || die "nvm alias did not contain the default local stable node version; got '$NVM_ALIAS_OUTPUT'" - -echo "$NVM_ALIAS_OUTPUT" | \grep -F "node -> stable (-> $STABLE_VERSION) (default)" \ - || die "nvm alias did not contain the default local stable node version under 'node'; got '$NVM_ALIAS_OUTPUT'" - -EXPECTED_UNSTABLE="$(nvm_print_implicit_alias local unstable)" -UNSTABLE_VERSION="$(nvm_version "$EXPECTED_UNSTABLE")" -echo "$NVM_ALIAS_OUTPUT" | \grep -F "unstable -> $EXPECTED_UNSTABLE (-> $UNSTABLE_VERSION) (default)" \ - || die "nvm alias did not contain the default local unstable node version; got '$NVM_ALIAS_OUTPUT'" - -EXPECTED_IOJS="$(nvm_print_implicit_alias local iojs)" -IOJS_VERSION="$(nvm_version "$EXPECTED_IOJS")" -echo "$NVM_ALIAS_OUTPUT" | \grep -F "iojs -> $EXPECTED_IOJS (-> $IOJS_VERSION) (default)" \ - || die "nvm alias did not contain the default local iojs version; got '$NVM_ALIAS_OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" deleted file mode 100755 index 25871fdc..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -\. ../../common.sh - -die () { echo "$@" ; cleanup ; exit 1; } -cleanup () { - rm -rf "$(nvm_alias_path)/stable" - rm -rf "$(nvm_alias_path)/unstable" - rm -rf "$(nvm_alias_path)/node" - rm -rf "$(nvm_alias_path)/iojs" - rm -rf "${NVM_DIR}/v0.8.1" - rm -rf "${NVM_DIR}/v0.9.1" - rm -rf "${NVM_DIR}/versions/io.js/v0.2.1" -} - -mkdir "${NVM_DIR}/v0.8.1" -mkdir "${NVM_DIR}/v0.9.1" -mkdir -p "${NVM_DIR}/versions/io.js/v0.2.1" - -EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)" -STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")" - -EXPECTED_UNSTABLE="$(nvm_print_implicit_alias local unstable)" -UNSTABLE_VERSION="$(nvm_version "$EXPECTED_UNSTABLE")" - -[ "_$STABLE_VERSION" != "_$UNSTABLE_VERSION" ] \ - || die "stable and unstable versions are the same!" - -nvm alias stable "$EXPECTED_UNSTABLE" -nvm alias unstable "$EXPECTED_STABLE" -nvm alias node stable -nvm alias iojs unstable - -NVM_ALIAS_OUTPUT=$(nvm alias | strip_colors) - -echo "$NVM_ALIAS_OUTPUT" | command grep -F "stable -> $EXPECTED_UNSTABLE (-> $UNSTABLE_VERSION)" \ - || die "nvm alias did not contain the overridden 'stable' alias; got '$NVM_ALIAS_OUTPUT'" - -echo "$NVM_ALIAS_OUTPUT" | command grep -F "unstable -> $EXPECTED_STABLE (-> $STABLE_VERSION)" \ - || die "nvm alias did not contain the overridden 'unstable' alias; got '$NVM_ALIAS_OUTPUT'" - -echo "$NVM_ALIAS_OUTPUT" | command grep -F "node -> stable (-> $UNSTABLE_VERSION)" \ - || die "nvm alias did not contain the overridden 'node' alias; got '$NVM_ALIAS_OUTPUT'" - -echo "$NVM_ALIAS_OUTPUT" | command grep -F "iojs -> unstable (-> $STABLE_VERSION)" \ - || die "nvm alias did not contain the overridden 'iojs' alias; got '$NVM_ALIAS_OUTPUT'" - -cleanup diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" should list all aliases." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" should list all aliases." deleted file mode 100755 index d620fe51..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/Running \"nvm alias\" should list all aliases." +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -\. ../../common.sh - -die () { echo "$@" ; exit 1; } - -NVM_ALIAS_OUTPUT="$(nvm alias | strip_colors)" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-1 -> 0.0.1 (-> v0.0.1)' \ - || die "did not find test-stable-1 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-2 -> 0.0.2 (-> v0.0.2)' \ - || die "did not find test-stable-2 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-3 -> 0.0.3 (-> v0.0.3)' \ - || die "did not find test-stable-3 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-4 -> 0.0.4 (-> v0.0.4)' \ - || die "did not find test-stable-4 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-5 -> 0.0.5 (-> v0.0.5)' \ - || die "did not find test-stable-5 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-6 -> 0.0.6 (-> v0.0.6)' \ - || die "did not find test-stable-6 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-7 -> 0.0.7 (-> v0.0.7)' \ - || die "did not find test-stable-7 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-8 -> 0.0.8 (-> v0.0.8)' \ - || die "did not find test-stable-8 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-9 -> 0.0.9 (-> v0.0.9)' \ - || die "did not find test-stable-9 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-10 -> 0.0.10 (-> v0.0.10)' \ - || die "did not find test-stable-10 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-1 -> 0.1.1 (-> v0.1.1)' \ - || die "did not find test-unstable-1 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-2 -> 0.1.2 (-> v0.1.2)' \ - || die "did not find test-unstable-2 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-3 -> 0.1.3 (-> v0.1.3)' \ - || die "did not find test-unstable-3 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-4 -> 0.1.4 (-> v0.1.4)' \ - || die "did not find test-unstable-4 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-5 -> 0.1.5 (-> v0.1.5)' \ - || die "did not find test-unstable-5 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-6 -> 0.1.6 (-> v0.1.6)' \ - || die "did not find test-unstable-6 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-7 -> 0.1.7 (-> v0.1.7)' \ - || die "did not find test-unstable-7 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-8 -> 0.1.8 (-> v0.1.8)' \ - || die "did not find test-unstable-8 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-9 -> 0.1.9 (-> v0.1.9)' \ - || die "did not find test-unstable-9 alias; got '$NVM_ALIAS_OUTPUT'" -echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-unstable-10 -> 0.1.10 (-> v0.1.10)' \ - || die "did not find test-unstable-10 alias; got '$NVM_ALIAS_OUTPUT'" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_alias deleted file mode 100755 index ee772bb7..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_alias +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -\. ../../../common.sh - -die () { echo "$@" ; exit 1; } - -\. ../../../../nvm.sh - -ALIAS="$(nvm_resolve_alias loopback | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_alias loopback was not ∞; got $ALIAS" -OUTPUT="$(nvm alias loopback | strip_colors)" -EXPECTED_OUTPUT="loopback -> loopback (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias loopback was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_alias one | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_alias one was not ∞; got $ALIAS" -OUTPUT="$(nvm alias one | strip_colors)" -EXPECTED_OUTPUT="one -> two (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias one was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_alias two | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_alias two was not ∞; got $ALIAS" -OUTPUT="$(nvm alias two | strip_colors)" -EXPECTED_OUTPUT="two -> three (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias two was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_alias three | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_alias three was not ∞; got $ALIAS" -OUTPUT="$(nvm alias three | strip_colors)" -EXPECTED_OUTPUT="three -> one (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias three was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_alias four | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_alias four was not ∞; got $ALIAS" -OUTPUT="$(nvm alias four | strip_colors)" -EXPECTED_OUTPUT="four -> two (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias four was not $EXPECTED_OUTPUT; got $OUTPUT" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_local_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_local_alias deleted file mode 100755 index 0d4b200e..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/nvm_resolve_local_alias +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -\. ../../../common.sh - -die () { echo "$@" ; exit 1; } - -\. ../../../../nvm.sh - -ALIAS="$(nvm_resolve_local_alias loopback | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_local_alias loopback was not ∞; got $ALIAS" -OUTPUT="$(nvm alias loopback | strip_colors)" -EXPECTED_OUTPUT="loopback -> loopback (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias loopback was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_local_alias one | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_local_alias one was not ∞; got $ALIAS" -OUTPUT="$(nvm alias one | strip_colors)" -EXPECTED_OUTPUT="one -> two (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias one was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_local_alias two | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_local_alias two was not ∞; got $ALIAS" -OUTPUT="$(nvm alias two | strip_colors)" -EXPECTED_OUTPUT="two -> three (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias two was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_local_alias three | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_local_alias three was not ∞; got $ALIAS" -OUTPUT="$(nvm alias three | strip_colors)" -EXPECTED_OUTPUT="three -> one (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias three was not $EXPECTED_OUTPUT; got $OUTPUT" - -ALIAS="$(nvm_resolve_local_alias four | strip_colors)" -[ "_$ALIAS" = "_∞" ] || die "nvm_resolve_local_alias four was not ∞; got $ALIAS" -OUTPUT="$(nvm alias four | strip_colors)" -EXPECTED_OUTPUT="four -> two (-> ∞)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm alias four was not $EXPECTED_OUTPUT; got $OUTPUT" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/setup b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/setup deleted file mode 100755 index 4af6dc07..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/setup +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -echo loopback > ../../../../alias/loopback - -echo two > ../../../../alias/one -echo three > ../../../../alias/two -echo one > ../../../../alias/three - -echo two > ../../../../alias/four diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/teardown b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/teardown deleted file mode 100755 index d83ee819..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/circular/teardown +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -rm -f ../../../../alias/loopback - -rm -f ../../../../alias/one -rm -f ../../../../alias/two -rm -f ../../../../alias/three - -rm -f ../../../../alias/four diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" deleted file mode 100755 index f6f39601..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -set -ex - -\. ../../../../nvm.sh -\. ../../../common.sh - -LTS_ALIAS_PATH="$(nvm_alias_path)/lts" - -rm -rf "${LTS_ALIAS_PATH}" - -die () { echo "$@" ; exit 1; } - -[ ! -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' exists and should not" - -nvm alias >/dev/null 2>&1 - -[ -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' does not exist and should" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/setup_dir deleted file mode 100755 index 4aeb0675..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/setup_dir +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -\. ../../../../nvm.sh - -LTS_ALIAS_PATH="$(nvm_alias_path)/lts" - -if [ -d "${LTS_ALIAS_PATH}" ]; then - mv "${LTS_ALIAS_PATH}" "${LTS_ALIAS_PATH}.bak" - rm -rf "${LTS_ALIAS_PATH}" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/teardown_dir deleted file mode 100755 index 18863f44..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/lts/teardown_dir +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -\. ../../../../nvm.sh - -LTS_ALIAS_PATH="$(nvm_alias_path)/lts" - -if [ -d "${LTS_ALIAS_PATH}.bak" ]; then - rm -rf "${LTS_ALIAS_PATH}" - mv "${LTS_ALIAS_PATH}.bak" "${LTS_ALIAS_PATH}" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_ensure_default_set b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_ensure_default_set deleted file mode 100755 index 7e7dab83..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_ensure_default_set +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -\. ../../common.sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm alias default 0.1 >/dev/null || die "'nvm alias default 0.1' failed" - -nvm_ensure_default_set 0.3 || die "'nvm_ensure_default_set' with an existing default alias exits 0" - -nvm unalias default || die "'nvm unalias default' failed" - -OUTPUT="$(nvm_ensure_default_set 0.2)" -EXPECTED_OUTPUT="Creating default alias: default -> 0.2 (-> iojs-v0.2.10)" -EXIT_CODE="$?" - -[ "_$(echo "$OUTPUT" | strip_colors)" = "_$EXPECTED_OUTPUT" ] || die "'nvm_ensure_default_set 0.2' did not output '$EXPECTED_OUTPUT', got '$OUTPUT'" -[ "_$EXIT_CODE" = "_0" ] || die "'nvm_ensure_default_set 0.2' did not exit with 0, got $EXIT_CODE" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_alias deleted file mode 100755 index 4520aa14..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_alias +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -EXIT_CODE=$(nvm_resolve_alias ; echo $?) -[ $EXIT_CODE = "1" ] || die "nvm_resolve_alias without an argument did not return 1; got $EXIT_CODE" - -for i in $(seq 1 10) - do - STABLE_ALIAS="$(nvm_resolve_alias test-stable-$i)" - [ "_$STABLE_ALIAS" = "_v0.0.$i" ] \ - || die "'nvm_resolve_alias test-stable-$i' was not v0.0.$i; got $STABLE_ALIAS" - UNSTABLE_ALIAS="$(nvm_resolve_alias test-unstable-$i)" - [ "_$UNSTABLE_ALIAS" = "_v0.1.$i" ] \ - || die "'nvm_resolve_alias test-unstable-$i' was not v0.1.$i; got $UNSTABLE_ALIAS" -done - -EXIT_CODE=$(nvm_resolve_alias nonexistent ; echo $?) -[ $EXIT_CODE = "2" ] || die "'nvm_resolve_alias nonexistent' did not return 2; got $EXIT_CODE" - -STABLE="$(nvm_resolve_alias stable)" -[ "_$STABLE" = "_v0.0" ] || die "'nvm_resolve_alias stable' was not v0.0; got $STABLE" - -NODE="$(nvm_resolve_alias node)" -[ "_$NODE" = "_stable" ] || die "'nvm_resolve_alias node' was not stable; got $NODE" - -UNSTABLE="$(nvm_resolve_alias unstable)" -[ "_$UNSTABLE" = "_v0.1" ] || die "'nvm_resolve_alias unstable' was not v0.1; got $UNSTABLE" - -IOJS="$(nvm_resolve_alias iojs)" -[ "_$IOJS" = "_iojs-v0.2" ] || die "'nvm_resolve_alias iojs' was not iojs-v0.2; got $IOJS" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_local_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_local_alias deleted file mode 100755 index 06f43747..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/nvm_resolve_local_alias +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -EXIT_CODE=$(nvm_resolve_local_alias ; echo $?) -[ "_$EXIT_CODE" = "_1" ] || die "nvm_resolve_local_alias without an argument did not return 1; got $EXIT_CODE" - -for i in $(seq 1 10) - do - STABLE_ALIAS="$(nvm_resolve_local_alias test-stable-$i)" - [ "_$STABLE_ALIAS" = "_v0.0.$i" ] \ - || die "'nvm_resolve_local_alias test-stable-$i' was not v0.0.$i; got $STABLE_ALIAS" - UNSTABLE_ALIAS="$(nvm_resolve_local_alias test-unstable-$i)" - [ "_$UNSTABLE_ALIAS" = "_v0.1.$i" ] \ - || die "'nvm_resolve_local_alias test-unstable-$i' was not v0.1.$i; got $UNSTABLE_ALIAS" -done - -OUTPUT="$(nvm_resolve_local_alias nonexistent)" -EXIT_CODE=$(nvm_resolve_local_alias nonexistent > /dev/null 2>&1 ; echo $?) -[ "_$EXIT_CODE" = "_2" ] || die "'nvm_resolve_local_alias nonexistent' did not return 2; got $EXIT_CODE" -[ "_$OUTPUT" = "_" ] || die "'nvm_resolve_local_alias nonexistent' did not have empty output; got $OUTPUT" - -STABLE="$(nvm_resolve_local_alias stable)" -[ "_$STABLE" = "_v0.0.10" ] || die "'nvm_resolve_local_alias stable' was not v0.0.10; got $STABLE" - -NODE="$(nvm_resolve_local_alias node)" -[ "_$NODE" = "_v0.0.10" ] || die "'nvm_resolve_local_alias node' was not v0.0.10; got $NODE" - -UNSTABLE="$(nvm_resolve_local_alias unstable)" -[ "_$UNSTABLE" = "_v0.1.10" ] || die "'nvm_resolve_local_alias unstable' was not v0.1.10; got $UNSTABLE" - -IOJS="$(nvm_resolve_local_alias iojs)" -[ "_$IOJS" = "_iojs-v0.2.10" ] || die "'nvm_resolve_local_alias iojs' was not iojs-v0.2.10; got $IOJS" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/setup b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/setup deleted file mode 100755 index a28a5c29..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/setup +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -for i in $(seq 1 10) - do - echo 0.0.$i > ../../../alias/test-stable-$i - mkdir -p ../../../v0.0.$i - echo 0.1.$i > ../../../alias/test-unstable-$i - mkdir -p ../../../v0.1.$i - echo 0.2.$i > ../../../alias/test-iojs-$i - mkdir -p ../../../versions/io.js/v0.2.$i -done diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/teardown b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/teardown deleted file mode 100755 index 005c7296..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Aliases/teardown +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -for i in $(seq 1 10) - do - rm -f "../../../alias/test-stable-$i" - rm -rf "../../../v0.0.$i" - rm -f "../../../alias/test-unstable-$i" - rm -rf "../../../v0.1.$i" - rm -rf "../../../alias/test-iojs-$i" - rm -rf "../../../versions/io.js/v0.2.$i" -done - -rm -f "../../../alias/stable" -rm -f "../../../alias/unstable" -rm -f "../../../alias/node" -rm -f "../../../alias/iojs" -rm -f "../../../alias/default" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." deleted file mode 100755 index adbdb8c9..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir -p "${NVM_DIR}/v0.0.2" -mkdir -p "${NVM_DIR}/v0.0.20" -mkdir -p "${NVM_DIR}/versions/node/v0.12.0" - -die () { echo "$@" ; exit 1; } - -# The result should contain only the appropriate version numbers. - -nvm which 0.0.2 || die "v0.0.2 not found" -NVM_BIN="$(nvm which 0.0.2)" -[ "_$NVM_BIN" = "_$(nvm_version_path v0.0.2)/bin/node" ] \ - || die "'nvm which 0.0.2' did not contain the correct path: got '$NVM_BIN'" - -nvm which 0.0.20 || die "v0.0.20 not found" -NVM_BIN="$(nvm which 0.0.20)" -[ "_$NVM_BIN" = "_$(nvm_version_path v0.0.20)/bin/node" ] \ - || die "'nvm which 0.20.0' did not contain the correct path: got '$NVM_BIN'" - -nvm which 0.12.0 || die "v0.0.20 not found" -NVM_BIN="$(nvm which 0.12.0)" -[ "_$NVM_BIN" = "_$(nvm_version_path v0.12.0)/bin/node" ] \ - || die "'nvm which 0.12.0' did not contain the correct path: got '$NVM_BIN'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" deleted file mode 100755 index c0218a0c..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -nvm which nonexistent_version -[ "_$?" = "_1" ] diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/teardown b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/teardown deleted file mode 100755 index 25277fed..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing paths/teardown +++ /dev/null @@ -1,3 +0,0 @@ -rmdir ../../../v0.0.2 >/dev/null 2>&1 -rmdir ../../../v0.0.20 >/dev/null 2>&1 -rmdir ../../../v0.12.0 >/dev/null 2>&1 diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." deleted file mode 100755 index faed0a6a..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.0.2" -mkdir "${NVM_DIR}/v0.0.20" - -die () { echo "$@" ; exit 1; } - -# The result should contain only the appropriate version numbers. - -nvm ls 0.0.2 | grep 'v0.0.2' > /dev/null -if [ $? -eq 0 ]; then - echo '"nvm ls 0.0.2" contained v0.0.2' -fi - -nvm ls 0.0.2 | grep 'v0.0.20' > /dev/null -if [ $? -eq 0 ]; then - die '"nvm ls 0.0.2" contained v0.0.20' -fi diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." deleted file mode 100755 index edddf014..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.1.3" -mkdir "${NVM_DIR}/v0.2.3" -mkdir "${NVM_DIR}/v0.20.3" - -die () { echo "$@" ; exit 1; } - -# The result should contain only the appropriate version numbers. - -nvm ls 0.1 | grep 'v0.2.3' > /dev/null -if [ $? -eq 0 ]; then - echo '"nvm ls 0.1" contained v0.2.3' -fi - -nvm ls 0.1 | grep 'v0.20.3' > /dev/null -if [ $? -eq 0 ]; then - die '"nvm ls 0.1" contained v0.20.3' -fi - -nvm ls 0.1 | grep 'v0.1.3' > /dev/null -if [ $? -ne 0 ]; then - die '"nvm ls 0.1" did not contain v0.1.3' -fi - -nvm ls 0.2 | grep 'v0.2.3' > /dev/null -if [ $? -ne 0 ]; then - die '"nvm ls 0.2" did not contain v0.2.3' -fi - -nvm ls 0.2 | grep 'v0.20.3' > /dev/null -if [ $? -eq 0 ]; then - die '"nvm ls 0.2" contained v0.20.3' -fi - -nvm ls 0.2 | grep 'v0.2.3' > /dev/null -if [ $? -ne 0 ]; then - die '"nvm ls 0.2" did not contain v0.2.3' -fi diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" deleted file mode 100755 index 74a97b48..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -nvm ls nonexistent_version -[ "$?" = "3" ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls io\" should return NA" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls io\" should return NA" deleted file mode 100755 index 79dccfe5..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls io\" should return NA" +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -nvm ls io -[ "$?" = "3" ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" deleted file mode 100755 index af79302c..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -nvm ls node_ -[ "$?" = "3" ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" deleted file mode 100755 index 61e890a6..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -die () { echo "$@" ; exit 1; } - -mkdir "${NVM_DIR}/v0.2.3" -mkdir "${NVM_DIR}/v0.3.3" - -EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)" -STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")" - -EXPECTED_UNSTABLE="$(nvm_print_implicit_alias local unstable)" -UNSTABLE_VERSION="$(nvm_version "$EXPECTED_UNSTABLE")" - -nvm ls stable | \grep "$STABLE_VERSION" >/dev/null \ - || die "expected 'nvm ls stable' to give $STABLE_VERSION, got $(nvm ls stable)" - -nvm ls unstable | \grep "$UNSTABLE_VERSION" >/dev/null \ - || die "expected 'nvm ls unstable' to give $UNSTABLE_VERSION, got $(nvm ls unstable)" - -mkdir "${NVM_DIR}/v0.1.2" -nvm alias stable 0.1 - -nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \ - || die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2" -nvm ls stable | \grep v0.1.2 >/dev/null \ - || die "'nvm ls stable' did not contain v0.1.2" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" deleted file mode 100755 index c858876e..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -mkdir -p "${NVM_DIR}/v0.0.1" -mkdir -p "${NVM_DIR}/v0.0.3" -mkdir -p "${NVM_DIR}/v0.0.9" -mkdir -p "${NVM_DIR}/v0.3.1" -mkdir -p "${NVM_DIR}/v0.3.3" -mkdir -p "${NVM_DIR}/v0.3.9" - -nvm_has_system_node() { return 0; } -nvm ls system | grep system 2>&1 > /dev/null -[ $? -eq 0 ] || die '"nvm ls system" did not contain "system" when system node is present' - -nvm_has_system_node() { return 1; } -nvm ls system | grep system 2>&1 > /dev/null -[ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present' diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." deleted file mode 100755 index d9fdce0e..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.0.1" -mkdir "${NVM_DIR}/v0.0.3" -mkdir "${NVM_DIR}/v0.0.9" -mkdir "${NVM_DIR}/v0.3.1" -mkdir "${NVM_DIR}/v0.3.3" -mkdir "${NVM_DIR}/v0.3.9" -mkdir -p "${NVM_DIR}/versions/node/v0.12.87" -mkdir -p "${NVM_DIR}/versions/node/v0.12.9" -mkdir -p "${NVM_DIR}/versions/io.js/v0.1.2" -mkdir -p "${NVM_DIR}/versions/io.js/v0.10.2" - -# The result should contain the version numbers. -nvm ls | grep v0.0.1 >/dev/null && -nvm ls | grep v0.0.3 >/dev/null && -nvm ls | grep v0.0.9 >/dev/null && -nvm ls | grep v0.3.1 >/dev/null && -nvm ls | grep v0.3.3 >/dev/null && -nvm ls | grep v0.3.9 >/dev/null && -nvm ls | grep v0.12.87 >/dev/null && -nvm ls | grep iojs-v0.1.2 >/dev/null diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" deleted file mode 100755 index 2946ad8e..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.1.3" -mkdir "${NVM_DIR}/v0.2.3" - -[ -z `nvm ls | grep '^ *\.'` ] -# The result should contain only the appropriate version numbers. diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" deleted file mode 100755 index eae526ae..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.1.3" -mkdir "${NVM_DIR}/v0.2.3" -mkdir -p "${NVM_DIR}/versions/node" - -[ -z "$(nvm ls | \grep 'versions')" ] -# The result should contain only the appropriate version numbers. diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" deleted file mode 100755 index 3ab0f2d5..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -mkdir -p "${NVM_DIR}/v0.0.1" -mkdir -p "${NVM_DIR}/v0.0.3" -mkdir -p "${NVM_DIR}/v0.0.9" -mkdir -p "${NVM_DIR}/v0.3.1" -mkdir -p "${NVM_DIR}/v0.3.3" -mkdir -p "${NVM_DIR}/v0.3.9" - -nvm_has_system_node() { return 0; } -nvm ls | grep system 2>&1 > /dev/null -[ $? -eq 0 ] || die '"nvm ls" did not contain "system" when system node is present' - -nvm_has_system_node() { return 1; } -nvm ls | grep system 2>&1 > /dev/null -[ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present' diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" deleted file mode 100755 index 864494a9..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -mkdir -p "${NVM_DIR}/versions/node/v0.12.1" -mkdir "${NVM_DIR}/v0.1.3" - -nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory' -nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory' diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" deleted file mode 100755 index 2884531f..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.1.2" - -nvm ls v0.1 | grep v0.1.2 && -nvm ls v0.1.2 | grep v0.1.2 && -nvm ls v0.1. | grep v0.1.2 && -nvm ls v0.1.1 | grep N/A diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Using a nonstandard IFS should not break b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Using a nonstandard IFS should not break deleted file mode 100755 index c707dbc0..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/Using a nonstandard IFS should not break +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.0.1" -mkdir "${NVM_DIR}/v0.0.3" -mkdir "${NVM_DIR}/v0.0.9" -mkdir "${NVM_DIR}/v0.3.1" -mkdir "${NVM_DIR}/v0.3.3" -mkdir "${NVM_DIR}/v0.3.9" -mkdir -p "${NVM_DIR}/versions/node/v0.12.87" -mkdir -p "${NVM_DIR}/versions/node/v0.12.9" -mkdir -p "${NVM_DIR}/versions/io.js/v0.1.2" -mkdir -p "${NVM_DIR}/versions/io.js/v0.10.2" - -set -e - -IFS='' nvm ls diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/teardown b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/teardown deleted file mode 100755 index 7c965acf..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Listing versions/teardown +++ /dev/null @@ -1,16 +0,0 @@ -rmdir ../../../v0.0.1 >/dev/null 2>&1 -rmdir ../../../v0.0.2 >/dev/null 2>&1 -rmdir ../../../v0.0.3 >/dev/null 2>&1 -rmdir ../../../v0.0.9 >/dev/null 2>&1 -rmdir ../../../v0.0.20 >/dev/null 2>&1 -rmdir ../../../v0.1.2 >/dev/null 2>&1 -rmdir ../../../v0.1.3 >/dev/null 2>&1 -rmdir ../../../v0.2.3 >/dev/null 2>&1 -rmdir ../../../v0.3.1 >/dev/null 2>&1 -rmdir ../../../v0.3.3 >/dev/null 2>&1 -rmdir ../../../v0.3.9 >/dev/null 2>&1 -rmdir ../../../v0.20.3 >/dev/null 2>&1 -rmdir ../../../versions >/dev/null 2>&1 -unalias nvm_has_system_node >/dev/null 2>&1 -rm -f ../../../alias/stable >/dev/null 2>&1 -rm -f ../../../alias/unstable >/dev/null 2>&1 diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm alias\" should create a file in the alias directory." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm alias\" should create a file in the alias directory." deleted file mode 100755 index 1ff49f59..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm alias\" should create a file in the alias directory." +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -set -ex - -\. ../../nvm.sh - -nvm alias test v0.1.2 - -[ "$(cat "$(nvm_alias_path)/test")" = "v0.1.2" ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm current\" should display current nvm environment." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm current\" should display current nvm environment." deleted file mode 100755 index 1d4d19ba..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm current\" should display current nvm environment." +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -nvm deactivate 2>&1 - -[ "$(nvm current)" = "system" ] || [ "$(nvm current)" = "none" ] || die '"nvm current" did not report "system" or "none" when deactivated' diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." deleted file mode 100755 index 568f000d..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -set -ex - -mkdir -p ../../v0.2.3 - -die () { echo "$@" ; exit 1; } - -[ `expr $PATH : ".*v0.2.3/.*/bin.*"` = 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2 - -\. ../../nvm.sh - -nvm use --delete-prefix v0.2.3 || die "Failed to activate v0.2.3" -[ `expr "$PATH" : ".*v0.2.3/.*/bin.*"` != 0 ] || die "PATH not set up properly" -[ `expr "$NODE_PATH" : ".*v0.2.3/.*/lib/node_modules.*"` = 0 ] || die "NODE_PATH should not contain (npm root -g)" -# ^ note: NODE_PATH should not contain `npm root -g` since globals should not be requireable -[ `expr "$NVM_BIN" : ".*v0.2.3/bin"` != 0 ] || die "NODE_BIN should contain bin directory path" - -nvm deactivate || die "Failed to deactivate v0.2.3" -[ `expr "$PATH" : ".*v0.2.3/.*/bin.*"` = 0 ] || die "PATH not cleaned properly" -[ `expr "$NODE_PATH" : ".*v0.2.3/.*/lib/node_modules.*"` = 0 ] || die "NODE_PATH not cleaned properly" -[ "_$NVM_BIN" = "_" ] || die "NVM_BIN should be unset: got '$NVM_BIN'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" deleted file mode 100755 index 36e11270..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; cleanup ; exit 1; } -cleanup () { - rm -rf "${NVM_DIR}/v0.10.4" -} - -\. ../../nvm.sh - -mkdir "${NVM_DIR}/v0.10.4" - -nvm deactivate >/dev/null 2>&1 - -set +ex # needed for stderr -INSTALL_ERROR_MSG="$(nvm install v0.10.5 --reinstall-packages-from=0.11 2>&1)" -set -ex -EXPECTED_ERROR_MSG="If --reinstall-packages-from is provided, it must point to an installed version of node." -[ "~$INSTALL_ERROR_MSG" = "~$EXPECTED_ERROR_MSG" ] \ - || die ""nvm install --reinstall-packages-from" should fail when given an uninstalled version: expected '$EXPECTED_ERROR_MSG', got '$INSTALL_ERROR_MSG'" - -set +e # TODO: fix -INSTALL_EXIT_CODE="$(nvm install v0.10.5 --reinstall-packages-from=0.11 >/dev/null 2>&1; echo $?)" -set -e -[ $INSTALL_EXIT_CODE -eq 5 ] \ - || die ""nvm install --reinstall-packages-from" should exit with code 5 when given an uninstalled version, got ${INSTALL_EXIT_CODE}" - -set +ex # needed for stderr -INSTALL_ERROR_MSG="$(nvm install v0.10.5 --reinstall-packages-from=0.10.5 2>&1)" -set -ex -EXPECTED_ERROR_MSG="You can't reinstall global packages from the same version of node you're installing." -[ "~$INSTALL_ERROR_MSG" = "~$EXPECTED_ERROR_MSG" ] \ - || die ""nvm install --reinstall-packages-from" should fail when given the same version: expected '$EXPECTED_ERROR_MSG', got '$INSTALL_ERROR_MSG'" - -set +e # TODO: fix -INSTALL_EXIT_CODE="$(nvm install v0.10.5 --reinstall-packages-from=0.10.5 >/dev/null 2>&1; echo $?)" -set -e -[ $INSTALL_EXIT_CODE -eq 4 ] \ - || die ""nvm install --reinstall-packages-from" should exit with code 4 when given the same version, got $INSTALL_EXIT_CODE" - -set +ex # needed for stderr -INSTALL_ERROR_MSG="$(nvm install v0.10.5 --reinstall-packages-from 2>&1)" -set -ex -EXPECTED_ERROR_MSG='If --reinstall-packages-from is provided, it must point to an installed version of node using `=`.' -[ "~$INSTALL_ERROR_MSG" = "~$EXPECTED_ERROR_MSG" ] \ - || die ""nvm install --reinstall-packages-from" should fail when given an uninstalled version: expected '$EXPECTED_ERROR_MSG', got '$INSTALL_ERROR_MSG'" - -set +ex # needed for stderr -INSTALL_ERROR_MSG="$(nvm install v0.10.5 --reinstall-packages-from= 2>&1)" -set -ex -EXPECTED_ERROR_MSG="If --reinstall-packages-from is provided, it must point to an installed version of node." -[ "~$INSTALL_ERROR_MSG" = "~$EXPECTED_ERROR_MSG" ] \ - || die ""nvm install --reinstall-packages-from" should fail when given an uninstalled version: expected '$EXPECTED_ERROR_MSG', got '$INSTALL_ERROR_MSG'" - -cleanup diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with an invalid version fails nicely" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with an invalid version fails nicely" deleted file mode 100755 index 6b28d6dc..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm install\" with an invalid version fails nicely" +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -set +ex # needed for stderr -OUTPUT="$(nvm install invalid.invalid 2>&1)" -set -ex -EXPECTED_OUTPUT="Version 'invalid.invalid' not found - try \`nvm ls-remote\` to browse available versions." -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "nvm installing an invalid version did not print a nice error message" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unalias\" should remove the alias file." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unalias\" should remove the alias file." deleted file mode 100755 index 2781f57a..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unalias\" should remove the alias file." +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -ex - -ALIAS_PATH="../../alias" - -echo v0.1.2 > "${ALIAS_PATH}/test" - -\. ../../nvm.sh - -nvm unalias test - -! [ -e "${ALIAS_PATH}/test" ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" should remove the appropriate directory." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" should remove the appropriate directory." deleted file mode 100755 index 5ef1827b..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" should remove the appropriate directory." +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -set -ex - -cd ../.. -mkdir v0.0.1 -mkdir src/node-v0.0.1 - -. ./nvm.sh -nvm uninstall v0.0.1 - -[ ! -d 'v0.0.1' ] && [ ! -d 'src/node-v0.0.1/files' ] diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" with incorrect file permissions fails nicely" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" with incorrect file permissions fails nicely" deleted file mode 100755 index 5fd26380..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm uninstall\" with incorrect file permissions fails nicely" +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -set -ex - -cd ../.. -mkdir v0.0.1 -mkdir src/node-v0.0.1 - -sudo touch v0.0.1/sudo - -. ./nvm.sh - -RETURN_MESSAGE="$(nvm uninstall v0.0.1 2>&1 || echo)" -CHECK_FOR="Cannot uninstall, incorrect permissions on installation folder" - -[ "${RETURN_MESSAGE#*$CHECK_FOR}" != "$RETURN_MESSAGE" ] || exit 1 diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unload\" should unset all function and variables." "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unload\" should unset all function and variables." deleted file mode 100755 index d2cad17c..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm unload\" should unset all function and variables." +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -set -ex - -BEFORE="./before.tmp" -AFTER="./after.tmp" - -cleanup () { rm -f "${BEFORE}" "${AFTER}"; } -die () { echo "$@" ; cleanup ; exit 1; } - -typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${BEFORE}" - -set +e # TODO: fix -\. ../../nvm.sh -set -e - -type nvm > /dev/null 2>&1 || die "nvm not loaded" - -nvm unload - -typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${AFTER}" - -! type nvm > /dev/null 2>&1 || die "nvm not unloaded" - -DIFF="$(diff "${BEFORE}" "${AFTER}" ||:)" -[ -z "${DIFF}" ] || die "function pollution found: ${DIFF}" - -cleanup diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" deleted file mode 100755 index 2b9fc920..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - rm -rf "$(nvm_alias_path)/foo" -} - -\. ../../nvm.sh - -nvm_make_alias foo foo - -set +ex # needed for stderr -OUTPUT="$(nvm use foo 2>&1)" -set -ex -EXPECTED_OUTPUT='The alias "foo" leads to an infinite loop. Aborting.' -[ "_${OUTPUT}" = "_${EXPECTED_OUTPUT}" ] \ - || die "'nvm use foo' did not output >${EXPECTED_OUTPUT}<; got >${OUTPUT}<" - -set +ex # needed for stderr -EXIT_CODE="$(nvm use foo 2>/dev/null ; echo $?)" -set -ex -[ "_$EXIT_CODE" = "_8" ] || die "Expected exit code 8; got ${EXIT_CODE}" - -set +ex # needed for stderr -OUTPUT="$(nvm use --silent foo 2>&1)" -set -ex -EXPECTED_OUTPUT='' -[ "_${OUTPUT}" = "_${EXPECTED_OUTPUT}" ] \ - || die "'nvm use --silent foo' did not output >${EXPECTED_OUTPUT}<; got >${OUTPUT}<" - -set +ex # needed for stderr -EXIT_CODE="$(nvm use --silent foo 2>/dev/null ; echo $?)" -set -ex -[ $EXIT_CODE -eq 8 ] || die "Expected exit code 8 from 'nvm use --silent foo'; got ${EXIT_CODE}" - -cleanup diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use iojs\" uses latest io.js version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use iojs\" uses latest io.js version" deleted file mode 100755 index fafc9c72..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use iojs\" uses latest io.js version" +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -set -ex - -\. ../common.sh - -die () { echo "$@" ; cleanup ; exit 1; } - -VERSION="v3.99.0" - -cleanup() { - unset -f make_echo cleanup - rm -rf "$(nvm_version_path "iojs-${VERSION}")" -} - -\. ../../nvm.sh - -nvm deactivate || die "unable to deactivate; current: >$(nvm current)<" - -make_fake_iojs "${VERSION}" || die "unable to make_fake_iojs ${VERSION}" - -IOJS_VERSION="$(nvm_version iojs)" -[ -n "${IOJS_VERSION}" ] || die 'expected an io.js version; got none' - -EXPECTED_OUTPUT="$(nvm_add_iojs_prefix ${VERSION})" -[ "${IOJS_VERSION}" = "${EXPECTED_OUTPUT}" ] || die "iojs version was not >${EXPECTED_OUTPUT}; got >${IOJS_VERSION}<" - -nvm use --delete-prefix iojs || die '`nvm use iojs` failed' - -CURRENT="$(nvm current)" -echo "current: ${CURRENT}" - -[ "${CURRENT}" = "${IOJS_VERSION}" ] || die "expected >${IOJS_VERSION}<; got >${CURRENT}<" - -cleanup diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use system\" should work as expected" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use system\" should work as expected" deleted file mode 100755 index be3d11eb..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use system\" should work as expected" +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -set -eux - -cleanup() { - unset -f nvm_has_system_node nvm_print_npm_version -} -die() { echo "$@" ; cleanup ; exit 1; } - -\. ../../nvm.sh - -nvm_has_system_node() { return 0; } -nvm_print_npm_version() { command printf ' (npm v1.2.3)'; } - -EXPECTED_OUTPUT="Now using system version of node: $(node -v)$(nvm_print_npm_version)" -set +x # since stderr is needed -OUTPUT="$(nvm use system 2>&1)" -set -x -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "Could not use system version of node. Got >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -EXPECTED_OUTPUT="" -set +x # since stderr is needed -OUTPUT="$(nvm use --silent system 2>&1 | tail -1)" -set -x -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "Could not use system version of node or --silent was not silent" - -nvm_has_system_node() { return 1; } -nvm_print_npm_version() { command printf ''; } - -EXPECTED_OUTPUT="System version of node not found." -set +x # since stderr is needed -OUTPUT="$(nvm use system 2>&1 | tail -1)" -set -x -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "Did not report error, system node not found" - -nvm use system 2>&1 > /dev/null || [ $? -eq 127 ] || die "Did not return error code, system node not found" -EXPECTED_OUTPUT="" -set +x # since stderr is needed -OUTPUT="$(nvm use --silent system 2>&1 | tail -1)" -set -x -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "Did not report error, system node not found or --silent was not silent" -nvm use --silent system 2>&1 > /dev/null || [ $? -eq 127 ] || die "Did not return error code, system node not found or --silent was not silent" - -cleanup diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" deleted file mode 100755 index 71f208c7..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -set -ex - -export NVM_SYMLINK_CURRENT=true -\. ../../nvm.sh - -rm -rf "${NVM_DIR}/v0.10.29" -mkdir "${NVM_DIR}/v0.10.29" -nvm use --delete-prefix 0.10.29 -rmdir "${NVM_DIR}/v0.10.29" - -if [ ! -L "${NVM_DIR}/current" ];then - echo "Expected 'current' symlink to be created!" - exit 1 -fi - -oldLink="$(readlink "${NVM_DIR}/current")" - -if [ "$(basename "${oldLink}")" != 'v0.10.29' ];then - echo "Expected 'current' to point to v0.10.29 but was ${oldLink}" - exit 1 -fi - -rm -rf "${NVM_DIR}/v0.11.13" -mkdir "${NVM_DIR}/v0.11.13" -nvm use --delete-prefix 0.11.13 -rmdir "${NVM_DIR}/v0.11.13" - -newLink="$(readlink "${NVM_DIR}/current")" - -if [ "$(basename "${newLink}")" != 'v0.11.13' ];then - echo "Expected 'current' to point to v0.11.13 but was $newLink" - exit 1 -fi diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" "b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" deleted file mode 100755 index be6284d7..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh - -set -ex - -\. ../../nvm.sh - -TEST_NODE_VERSION="v0.10.29" - -TEST_COUNT=0 -TEST_PASSED=0 -TEST_FAILED=0 - -registerExpectedSymlink() { - registerResult ${1} -} - -registerExpectedNoSymlink() { - [ $1 -ne 0 ] - registerResult $? -} - -registerResult() { - result="${1}" - - TEST_COUNT=$(($TEST_COUNT + 1)) - - [ ${result} -eq 0 ] \ - && TEST_PASSED=$(($TEST_PASSED + 1)) \ - || TEST_FAILED=$(($TEST_FAILED + 1)) -} - -cleanup() { - rm -rf "${NVM_DIR}/${TEST_NODE_VERSION}" - rm -f "${NVM_DIR}/current" -} - -runNvmUse() { - mkdir "${NVM_DIR}/${TEST_NODE_VERSION}" - nvm use --delete-prefix "${TEST_NODE_VERSION}" > /dev/null 2>&1 - rmdir "${NVM_DIR}/${TEST_NODE_VERSION}" -} - -isCurrentSymlinkPresent() { - [ -L "${NVM_DIR}/current" ] -} - -NVM_SYMLINK_CURRENT=false -cleanup -runNvmUse -isCurrentSymlinkPresent && echo >&2 "Expected 'current' symlink not to be created when NVM_SYMLINK_CURRENT=false!" -registerExpectedNoSymlink $? - -NVM_SYMLINK_CURRENT=true -cleanup -runNvmUse -isCurrentSymlinkPresent || echo >&2 "Expected 'current' symlink to be created when NVM_SYMLINK_CURRENT=true!" -registerExpectedSymlink $? - -NVM_SYMLINK_CURRENT=garbagevalue -cleanup -runNvmUse -isCurrentSymlinkPresent && echo >&2 "Expected 'current' symlink not to be created when NVM_SYMLINK_CURRENT contains a string!" -registerExpectedNoSymlink $? - -NVM_SYMLINK_CURRENT=0 -cleanup -runNvmUse -isCurrentSymlinkPresent && echo >&2 "Expected 'current' symlink not to be created when NVM_SYMLINK_CURRENT=0!" -registerExpectedNoSymlink $? - -NVM_SYMLINK_CURRENT=1 -cleanup -runNvmUse -isCurrentSymlinkPresent && echo >&2 "Expected 'current' symlink not to be created when NVM_SYMLINK_CURRENT=1!" -registerExpectedNoSymlink $? - -unset NVM_SYMLINK_CURRENT -cleanup -runNvmUse -isCurrentSymlinkPresent && echo >&2 "Expected 'current' symlink not to be created when NVM_SYMLINK_CURRENT has been unset (default behaviour)!" -registerExpectedNoSymlink $? - -cleanup - -[ $TEST_FAILED -ne 0 ] && echo "${TEST_COUNT} tested, ${TEST_PASSED} passed, ${TEST_FAILED} failed" && exit 1 || true diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should make the nvm command available. b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should make the nvm command available. deleted file mode 100755 index e74f3475..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should make the nvm command available. +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -set -ex - -\. ../../nvm.sh - -nvm diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should not modify parameters of caller b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should not modify parameters of caller deleted file mode 100755 index 2053b739..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Sourcing nvm.sh should not modify parameters of caller +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -set -ex - -set -- yes -\. ../../nvm.sh -[ "$1" = yes ] diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/iojs_version_has_solaris_binary b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/iojs_version_has_solaris_binary deleted file mode 100755 index fc0e1198..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/iojs_version_has_solaris_binary +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh -\. ../../common.sh - -assert_not_ok iojs_version_has_solaris_binary "" -assert_not_ok iojs_version_has_solaris_binary "foo" -assert_not_ok iojs_version_has_solaris_binary "v1.1.0" - -assert_ok iojs_version_has_solaris_binary "v3.3.1" -assert_ok iojs_version_has_solaris_binary "iojs-v3.3.1" -assert_ok iojs_version_has_solaris_binary "v3.3.2" -assert_ok iojs_version_has_solaris_binary "iojs-v3.3.2" -assert_ok iojs_version_has_solaris_binary "v3.4.1" -assert_ok iojs_version_has_solaris_binary "iojs-v3.4.1" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/iojs.org-dist-index.tab b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/iojs.org-dist-index.tab deleted file mode 100644 index 8589bb91..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/iojs.org-dist-index.tab +++ /dev/null @@ -1,42 +0,0 @@ -version date files npm v8 uv zlib openssl modules -v3.3.1 2015-09-15 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.3 4.4.63.30 1.7.4 1.2.8 1.0.2d 45 -v3.3.0 2015-09-02 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.13.3 4.4.63.30 1.7.3 1.2.8 1.0.2d 45 -v3.2.0 2015-08-25 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.13.3 4.4.63.26 1.6.1 1.2.8 1.0.2d 45 -v3.1.0 2015-08-19 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.13.3 4.4.63.26 1.6.1 1.2.8 1.0.2d 45 -v3.0.0 2015-08-04 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.13.3 4.4.63.26 1.6.1 1.2.8 1.0.2d 45 -v2.5.0 2015-07-28 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.13.2 4.2.77.21 1.6.1 1.2.8 1.0.2d 44 -v2.4.0 2015-07-17 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.13.0 4.2.77.20 1.6.1 1.2.8 1.0.2d 44 -v2.3.4 2015-07-12 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.12.1 4.2.77.20 1.6.1 1.2.8 1.0.2d 44 -v2.3.3 2015-07-04 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.11.3 4.2.77.20 1.6.1 1.2.8 1.0.2c 44 -v2.3.2 2015-07-02 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.11.3 4.2.77.20 1.6.1 1.2.8 1.0.2c 44 -v2.3.1 2015-06-23 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.11.3 4.2.77.20 1.6.1 1.2.8 1.0.2c 44 -v2.3.0 2015-06-13 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.11.1 4.2.77.20 1.6.1 1.2.8 1.0.2c 44 -v2.2.1 2015-06-01 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.11.0 4.2.77.20 1.5.0 1.2.8 1.0.2a 44 -v2.2.0 2015-06-01 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.11.0 4.2.77.20 1.5.0 1.2.8 1.0.2a 44 -v2.1.0 2015-05-24 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.10.1 4.2.77.20 1.5.0 1.2.8 1.0.2a 44 -v2.0.2 2015-05-15 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.9.0 4.2.77.20 1.5.0 1.2.8 1.0.2a 44 -v2.0.1 2015-05-08 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.9.0 4.2.77.20 1.5.0 1.2.8 1.0.2a 44 -v2.0.0 2015-05-04 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.9.0 4.2.77.18 1.4.2 1.2.8 1.0.2a 44 -v1.8.4 2015-07-12 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.9.0 4.1.0.27 1.4.2 1.2.8 1.0.2d 43 -v1.8.3 2015-07-04 headers,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.9.0 4.1.0.27 1.4.2 1.2.8 1.0.2c 43 -v1.8.2 2015-05-18 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.9.0 4.1.0.27 1.4.2 1.2.8 1.0.2a 43 -v1.8.1 2015-04-21 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.8.3 4.1.0.27 1.4.2 1.2.8 1.0.2a 43 -v1.7.1 2015-04-17 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.6 4.1.0.27 1.4.2 1.2.8 1.0.1m 43 -v1.6.4 2015-04-06 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.5 4.1.0.27 1.4.2 1.2.8 1.0.1m 43 -v1.6.3 2015-03-31 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.4 4.1.0.27 1.4.2 1.2.8 1.0.1m 43 -v1.6.2 2015-03-23 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.1 4.1.0.25 1.4.2 1.2.8 1.0.1m 43 -v1.6.1 2015-03-20 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.1 4.1.0.21 1.4.2 1.2.8 1.0.1m 43 -v1.6.0 2015-03-20 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.1 4.1.0.21 1.4.2 1.2.8 1.0.1m 43 -v1.5.1 2015-03-09 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.0 4.1.0.21 1.4.2 1.2.8 1.0.1k 43 -v1.5.0 2015-03-06 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.7.0 4.1.0.21 1.4.2 1.2.8 1.0.1k 43 -v1.4.3 2015-03-03 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.6.1 4.1.0.21 1.4.2 1.2.8 1.0.1k 43 -v1.4.2 2015-02-28 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.6.1 4.1.0.21 1.4.2 1.2.8 1.0.1k 43 -v1.4.1 2015-02-27 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.6.0 4.1.0.21 1.4.2 1.2.8 1.0.1k 43 -v1.3.0 2015-02-20 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.5.1 4.1.0.14 1.4.0 1.2.8 1.0.1k 43 -v1.2.0 2015-02-11 linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.5.1 4.1.0.14 1.4.0 1.2.8 1.0.1k 43 -v1.1.0 2015-02-03 linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.4.1 4.1.0.14 1.3.0 1.2.8 1.0.1k 43 -v1.0.4 2015-01-24 linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.3.0 4.1.0.12 1.2.1 1.2.8 1.0.1k 42 -v1.0.3 2015-01-20 linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.2.0 4.1.0.7 1.2.1 1.2.8 1.0.1k 42 -v1.0.2 2015-01-16 linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.1.18 3.31.74.1 1.2.1 1.2.8 1.0.1k 42 -v1.0.1 2015-01-14 linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.1.18 3.31.74.1 1.2.0 1.2.8 1.0.1k 42 -v1.0.0 2015-01-14 linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.1.18 3.31.74.1 1.2.0 1.2.8 1.0.1k 42 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nodejs.org-dist-index.tab b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nodejs.org-dist-index.tab deleted file mode 100644 index 440ab6f4..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nodejs.org-dist-index.tab +++ /dev/null @@ -1,391 +0,0 @@ -version date files npm v8 uv zlib openssl modules lts -v9.11.1 2018-04-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 - -v9.11.0 2018-04-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 - -v9.10.1 2018-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 - -v9.10.0 2018-03-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 - -v9.9.0 2018-03-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 - -v9.8.0 2018-03-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 - -v9.7.1 2018-03-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 - -v9.7.0 2018-03-01 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 - -v9.6.1 2018-02-23 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.1 1.2.11 1.0.2n 59 - -v9.6.0 2018-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.1 1.2.11 1.0.2n 59 - -v9.5.0 2018-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.1 1.2.11 1.0.2n 59 - -v9.4.0 2018-01-10 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.18.0 1.2.11 1.0.2n 59 - -v9.3.0 2017-12-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.46 1.18.0 1.2.11 1.0.2n 59 - -v9.2.1 2017-12-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.44 1.16.1 1.2.11 1.0.2n 59 - -v9.2.0 2017-11-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.44 1.16.1 1.2.11 1.0.2m 59 - -v9.1.0 2017-11-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.32 1.15.0 1.2.11 1.0.2m 59 - -v9.0.0 2017-10-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.32 1.15.0 1.2.11 1.0.2l 59 - -v8.11.1 2018-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.50 1.19.1 1.2.11 1.0.2o 57 Carbon -v8.11.0 2018-03-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.50 1.19.1 1.2.11 1.0.2o 57 Carbon -v8.10.0 2018-03-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.50 1.19.1 1.2.11 1.0.2n 57 Carbon -v8.9.4 2018-01-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.1.534.50 1.15.0 1.2.11 1.0.2n 57 Carbon -v8.9.3 2017-12-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.48 1.15.0 1.2.11 1.0.2n 57 Carbon -v8.9.2 2017-12-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.48 1.15.0 1.2.11 1.0.2m 57 Carbon -v8.9.1 2017-11-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.47 1.15.0 1.2.11 1.0.2m 57 Carbon -v8.9.0 2017-10-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.46 1.15.0 1.2.11 1.0.2l 57 Carbon -v8.8.1 2017-10-25 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.4.2 6.1.534.42 1.15.0 1.2.11 1.0.2l 57 - -v8.8.0 2017-10-24 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.4.2 6.1.534.42 1.15.0 1.2.11 1.0.2l 57 - -v8.7.0 2017-10-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.4.2 6.1.534.42 1.15.0 1.2.11 1.0.2l 57 - -v8.6.0 2017-09-26 aix-ppc64,headers,linux-arm64,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.287.53 1.14.1 1.2.11 1.0.2l 57 - -v8.5.0 2017-09-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.287.53 1.14.1 1.2.11 1.0.2l 57 - -v8.4.0 2017-08-15 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.286.52 1.13.1 1.2.11 1.0.2l 57 - -v8.3.0 2017-08-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.286.52 1.13.1 1.2.11 1.0.2l 57 - -v8.2.1 2017-07-20 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 5.8.283.41 1.13.1 1.2.11 1.0.2l 57 - -v8.2.0 2017-07-19 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 5.8.283.41 1.13.1 1.2.11 1.0.2l 57 - -v8.1.4 2017-07-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 - -v8.1.3 2017-06-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 - -v8.1.2 2017-06-15 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 - -v8.1.1 2017-06-13 aix-ppc64,headers,linux-arm64,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 - -v8.1.0 2017-06-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 - -v8.0.0 2017-05-30 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.0 5.8.283.41 1.11.0 1.2.11 1.0.2k 57 - -v7.10.1 2017-07-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 - -v7.10.0 2017-05-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 - -v7.9.0 2017-04-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 - -v7.8.0 2017-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 - -v7.7.4 2017-03-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.42 1.11.0 1.2.11 1.0.2k 51 - -v7.7.3 2017-03-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 - -v7.7.2 2017-03-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 - -v7.7.1 2017-03-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 - -v7.7.0 2017-02-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 - -v7.6.0 2017-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.40 1.11.0 1.2.11 1.0.2k 51 - -v7.5.0 2017-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.4.500.48 1.10.2 1.2.8 1.0.2k 51 - -v7.4.0 2017-01-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.0.5 5.4.500.45 1.10.1 1.2.8 1.0.2j 51 - -v7.3.0 2016-12-20 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.4.500.45 1.10.1 1.2.8 1.0.2j 51 - -v7.2.1 2016-12-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.4.500.44 1.10.1 1.2.8 1.0.2j 51 - -v7.2.0 2016-11-22 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.9 5.4.500.43 1.10.1 1.2.8 1.0.2j 51 - -v7.1.0 2016-11-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.9 5.4.500.36 1.10.0 1.2.8 1.0.2j 51 - -v7.0.0 2016-10-25 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.4.500.36 1.9.1 1.2.8 1.0.2j 51 - -v6.14.1 2018-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2o 48 Boron -v6.14.0 2018-03-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2o 48 Boron -v6.13.1 2018-03-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2n 48 Boron -v6.13.0 2018-02-10 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2n 48 Boron -v6.12.3 2018-01-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.15.0 1.2.11 1.0.2n 48 Boron -v6.12.2 2017-12-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.109 1.15.0 1.2.11 1.0.2n 48 Boron -v6.12.1 2017-12-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.109 1.15.0 1.2.11 1.0.2m 48 Boron -v6.12.0 2017-11-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.108 1.15.0 1.2.11 1.0.2m 48 Boron -v6.11.5 2017-10-24 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.108 1.11.0 1.2.11 1.0.2l 48 Boron -v6.11.4 2017-10-03 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.108 1.11.0 1.2.11 1.0.2l 48 Boron -v6.11.3 2017-09-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.107 1.11.0 1.2.11 1.0.2l 48 Boron -v6.11.2 2017-08-01 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.103 1.11.0 1.2.11 1.0.2l 48 Boron -v6.11.1 2017-07-10 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.103 1.11.0 1.2.11 1.0.2k 48 Boron -v6.11.0 2017-06-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.102 1.11.0 1.2.11 1.0.2k 48 Boron -v6.10.3 2017-05-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.101 1.9.1 1.2.11 1.0.2k 48 Boron -v6.10.2 2017-04-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.98 1.9.1 1.2.11 1.0.2k 48 Boron -v6.10.1 2017-03-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.95 1.9.1 1.2.8 1.0.2k 48 Boron -v6.10.0 2017-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.93 1.9.1 1.2.8 1.0.2k 48 Boron -v6.9.5 2017-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2k 48 Boron -v6.9.4 2017-01-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2j 48 Boron -v6.9.3 2017-01-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2j 48 Boron -v6.9.2 2016-12-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.9 5.1.281.88 1.9.1 1.2.8 1.0.2j 48 Boron -v6.9.1 2016-10-19 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 Boron -v6.9.0 2016-10-18 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 Boron -v6.8.1 2016-10-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 - -v6.8.0 2016-10-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 - -v6.7.0 2016-09-27 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.1.281.83 1.9.1 1.2.8 1.0.2j 48 - -v6.6.0 2016-09-14 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.1.281.83 1.9.1 1.2.8 1.0.2h 48 - -v6.5.0 2016-08-26 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.1.281.81 1.9.1 1.2.8 1.0.2h 48 - -v6.4.0 2016-08-12 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.0.71.60 1.9.1 1.2.8 1.0.2h 48 - -v6.3.1 2016-07-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.0.71.57 1.9.1 1.2.8 1.0.2h 48 - -v6.3.0 2016-07-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 - -v6.2.2 2016-06-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.9.5 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 - -v6.2.1 2016-06-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.9.3 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 - -v6.2.0 2016-05-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.9 5.0.71.47 1.9.1 1.2.8 1.0.2h 48 - -v6.1.0 2016-05-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 5.0.71.35 1.9.0 1.2.8 1.0.2h 48 - -v6.0.0 2016-04-26 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 5.0.71.35 1.9.0 1.2.8 1.0.2g 48 - -v5.12.0 2016-06-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 4.6.85.32 1.8.0 1.2.8 1.0.2h 47 - -v5.11.1 2016-05-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 4.6.85.31 1.8.0 1.2.8 1.0.2h 47 - -v5.11.0 2016-04-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.10.1 2016-04-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.3 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.10.0 2016-04-01 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.3 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.9.1 2016-03-22 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.7.3 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.9.0 2016-03-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.7.3 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.8.0 2016-03-09 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.7.3 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.7.1 2016-03-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.6.0 4.6.85.31 1.8.0 1.2.8 1.0.2g 47 - -v5.7.0 2016-02-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.6.0 4.6.85.31 1.8.0 1.2.8 1.0.2f 47 - -v5.6.0 2016-02-09 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.6.0 4.6.85.31 1.8.0 1.2.8 1.0.2f 47 - -v5.5.0 2016-01-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.8.0 1.2.8 1.0.2e 47 - -v5.4.1 2016-01-12 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.8.0 1.2.8 1.0.2e 47 - -v5.4.0 2016-01-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.8.0 1.2.8 1.0.2e 47 - -v5.3.0 2015-12-15 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.8.0 1.2.8 1.0.2e 47 - -v5.2.0 2015-12-09 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2e 47 - -v5.1.1 2015-12-03 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2e 47 - -v5.1.0 2015-11-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2d 47 - -v5.0.0 2015-10-29 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.6 4.6.85.28 1.7.5 1.2.8 1.0.2d 47 - -v4.9.1 2018-03-29 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2o 46 Argon -v4.9.0 2018-03-28 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2o 46 Argon -v4.8.7 2017-12-07 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2n 46 Argon -v4.8.6 2017-11-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2m 46 Argon -v4.8.5 2017-10-24 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.47 1.9.1 1.2.11 1.0.2k 46 Argon -v4.8.4 2017-07-11 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.47 1.9.1 1.2.11 1.0.2k 46 Argon -v4.8.3 2017-05-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.47 1.9.1 1.2.11 1.0.2k 46 Argon -v4.8.2 2017-04-04 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.46 1.9.1 1.2.11 1.0.2k 46 Argon -v4.8.1 2017-03-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.46 1.9.1 1.2.8 1.0.2k 46 Argon -v4.8.0 2017-02-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.45 1.9.1 1.2.8 1.0.2k 46 Argon -v4.7.3 2017-01-31 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2k 46 Argon -v4.7.2 2017-01-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon -v4.7.1 2017-01-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon -v4.7.0 2016-12-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon -v4.6.2 2016-11-08 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.42 1.9.1 1.2.8 1.0.2j 46 Argon -v4.6.1 2016-10-18 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2j 46 Argon -v4.6.0 2016-09-27 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2j 46 Argon -v4.5.0 2016-08-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2h 46 Argon -v4.4.7 2016-06-28 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.8 4.5.103.36 1.8.0 1.2.8 1.0.2h 46 Argon -v4.4.6 2016-06-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.5 4.5.103.36 1.8.0 1.2.8 1.0.2h 46 Argon -v4.4.5 2016-05-24 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.5 4.5.103.35 1.8.0 1.2.8 1.0.2h 46 Argon -v4.4.4 2016-05-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.1 4.5.103.35 1.8.0 1.2.8 1.0.2h 46 Argon -v4.4.3 2016-04-12 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.1 4.5.103.35 1.8.0 1.2.8 1.0.2g 46 Argon -v4.4.2 2016-04-01 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.0 4.5.103.35 1.8.0 1.2.8 1.0.2g 46 Argon -v4.4.1 2016-03-22 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.20 4.5.103.35 1.8.0 1.2.8 1.0.2g 46 Argon -v4.4.0 2016-03-08 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.20 4.5.103.35 1.8.0 1.2.8 1.0.2g 46 Argon -v4.3.2 2016-03-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.12 4.5.103.35 1.8.0 1.2.8 1.0.2g 46 Argon -v4.3.1 2016-02-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.12 4.5.103.35 1.8.0 1.2.8 1.0.2f 46 Argon -v4.3.0 2016-02-09 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.12 4.5.103.35 1.8.0 1.2.8 1.0.2f 46 Argon -v4.2.6 2016-01-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.12 4.5.103.35 1.8.0 1.2.8 1.0.2e 46 Argon -v4.2.5 2016-01-20 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.12 4.5.103.35 1.8.0 1.2.8 1.0.2e 46 Argon -v4.2.4 2015-12-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.12 4.5.103.35 1.7.5 1.2.8 1.0.2e 46 Argon -v4.2.3 2015-12-03 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.7 4.5.103.35 1.7.5 1.2.8 1.0.2e 46 Argon -v4.2.2 2015-11-03 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.7 4.5.103.35 1.7.5 1.2.8 1.0.2d 46 Argon -v4.2.1 2015-10-13 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.7 4.5.103.35 1.7.5 1.2.8 1.0.2d 46 Argon -v4.2.0 2015-10-12 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.7 4.5.103.35 1.7.5 1.2.8 1.0.2d 46 Argon -v4.1.2 2015-10-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.4 4.5.103.35 1.7.5 1.2.8 1.0.2d 46 - -v4.1.1 2015-09-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.4 4.5.103.33 1.7.4 1.2.8 1.0.2d 46 - -v4.1.0 2015-09-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.3 4.5.103.33 1.7.4 1.2.8 1.0.2d 46 - -v4.0.0 2015-09-08 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.14.2 4.5.103.30 1.7.3 1.2.8 1.0.2d 46 - -v0.12.18 2017-02-22 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.11 3.28.71.20 1.6.1 1.2.8 1.0.1u 14 - -v0.12.17 2016-10-18 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.28.71.19 1.6.1 1.2.8 1.0.1u 14 - -v0.12.16 2016-09-27 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.28.71.19 1.6.1 1.2.8 1.0.1u 14 - -v0.12.15 2016-06-23 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.28.71.19 1.6.1 1.2.8 1.0.1t 14 - -v0.12.14 2016-05-06 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.28.71.19 1.6.1 1.2.8 1.0.1t 14 - -v0.12.13 2016-03-31 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.0 3.28.71.19 1.6.1 1.2.8 1.0.1s 14 - -v0.12.12 2016-03-08 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.14.9 3.28.71.19 1.6.1 1.2.8 1.0.1s 14 - -v0.12.11 2016-03-03 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.14.9 3.28.71.19 1.6.1 1.2.8 1.0.1s 14 - -v0.12.10 2016-02-09 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.14.9 3.28.71.19 1.6.1 1.2.8 1.0.1r 14 - -v0.12.9 2015-12-03 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.14.9 3.28.71.19 1.6.1 1.2.8 1.0.1q 14 - -v0.12.8 2015-11-24 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.14.9 3.28.71.19 1.6.1 1.2.8 1.0.1p 14 - -v0.12.7 2015-07-09 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.11.3 3.28.71.19 1.6.1 1.2.8 1.0.1p 14 - -v0.12.6 2015-07-04 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.11.2 3.28.71.19 1.6.1 1.2.8 1.0.1o 14 - -v0.12.5 2015-06-22 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.11.2 3.28.71.19 1.6.1 1.2.8 1.0.1o 14 - -v0.12.4 2015-05-23 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.10.1 3.28.71.19 1.5.0 1.2.8 1.0.1m 14 - -v0.12.3 2015-05-14 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.9.1 3.28.71.19 1.5.0 1.2.8 1.0.1m 14 - -v0.12.2 2015-03-31 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.7.4 3.28.73.0 1.4.2 1.2.8 1.0.1m 14 - -v0.12.1 2015-03-24 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.5.1 3.28.73.0 1.0.2 1.2.8 1.0.1m 14 - -v0.12.0 2015-02-06 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.5.1 3.28.73.0 1.0.2 1.2.8 1.0.1l 14 - -v0.11.16 2015-01-30 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.3.0 3.28.73.0 1.0.2 1.2.8 1.0.1l 14 - -v0.11.15 2015-01-20 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.1.6 3.28.73.0 1.0.2 1.2.8 1.0.1j 14 - -v0.11.14 2014-08-19 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.0.0 3.26.33.0 1.0.0 1.2.3 1.0.1i 14 - -v0.11.13 2014-05-02 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.9 3.25.30.0 0.11.25 1.2.3 1.0.1g 14 - -v0.11.12 2014-03-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.3 3.22.24.19 0.11.22 1.2.3 1.0.1f 14 - -v0.11.11 2014-01-29 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.25 3.22.24.19 0.11.18 1.2.3 1.0.1f 14 - -v0.11.10 2013-12-31 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.22 3.22.24.10 0.11.17 1.2.3 1.0.1e 13 - -v0.11.9 2013-11-21 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.15 3.22.24.5 0.11.15 1.2.3 1.0.1e 13 - -v0.11.8 2013-10-30 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.13 3.21.18.3 0.11.14 1.2.3 1.0.1e 13 - -v0.11.7 2013-09-04 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.8 3.20.17.0 0.11.13 1.2.3 1.0.1e 0x000C - -v0.11.6 2013-08-21 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x86-msi 1.3.8 3.20.14.1 0.11.8 1.2.3 1.0.1e 0x000C - -v0.11.5 2013-08-07 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.6 3.20.11.0 0.11.7 1.2.3 1.0.1e 0x000C - -v0.11.4 2013-07-12 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x86-msi 1.3.4 3.20.2.0 0.11.5 1.2.3 1.0.1e 0x000C - -v0.11.3 2013-06-26 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.25 3.19.13.0 0.11.5 1.2.3 1.0.1e 0x000C - -v0.11.2 2013-05-13 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.21 3.19.0.0 0.11.2 1.2.3 1.0.1e 0x000C - -v0.11.1 2013-04-19 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.18 3.18.0.0 0.11.1 1.2.3 1.0.1e 0x000C - -v0.11.0 2013-03-28 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.15 3.17.13.0 0.10.3 1.2.3 1.0.1e 0x000C - -v0.10.48 2016-10-18 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.14.5.11 0.10.37 1.2.8 1.0.1u 11 - -v0.10.47 2016-09-27 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.14.5.11 0.10.37 1.2.8 1.0.1u 11 - -v0.10.46 2016-06-23 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.14.5.9 0.10.37 1.2.8 1.0.1t 11 - -v0.10.45 2016-05-06 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.1 3.14.5.9 0.10.36 1.2.8 1.0.1t 11 - -v0.10.44 2016-03-31 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 2.15.0 3.14.5.9 0.10.36 1.2.8 1.0.1s 11 - -v0.10.43 2016-03-03 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.29 3.14.5.9 0.10.36 1.2.8 1.0.1s 11 - -v0.10.42 2016-02-09 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.29 3.14.5.9 0.10.36 1.2.8 1.0.1r 11 - -v0.10.41 2015-12-03 headers,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.29 3.14.5.9 0.10.36 1.2.8 1.0.1q 11 - -v0.10.40 2015-07-09 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.36 1.2.8 1.0.1p 11 - -v0.10.39 2015-06-19 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.36 1.2.8 1.0.1o 11 - -v0.10.38 2015-03-23 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.36 1.2.8 1.0.1m 11 - -v0.10.37 2015-03-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.36 1.2.8 1.0.1l 11 - -v0.10.36 2015-01-26 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.30 1.2.8 1.0.1l 11 - -v0.10.35 2014-12-22 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.30 1.2.8 1.0.1j 11 - -v0.10.34 2014-12-17 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.30 1.2.8 1.0.1j 11 - -v0.10.33 2014-10-21 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.29 1.2.3 1.0.1j 11 - -v0.10.32 2014-09-16 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.28 3.14.5.9 0.10.28 1.2.3 1.0.1i 11 - -v0.10.31 2014-08-19 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.23 3.14.5.9 0.10.28 1.2.3 1.0.1i 11 - -v0.10.30 2014-07-31 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.21 3.14.5.9 0.10.28 1.2.3 1.0.1h 11 - -v0.10.29 2014-06-09 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.14 3.14.5.9 0.10.27 1.2.3 1.0.1h 11 - -v0.10.28 2014-05-02 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.9 3.14.5.9 0.10.27 1.2.3 1.0.1g 11 - -v0.10.27 2014-05-01 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.8 3.14.5.9 0.10.27 1.2.3 1.0.1g 11 - -v0.10.26 2014-02-18 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.4.3 3.14.5.9 0.10.25 1.2.3 1.0.1e 11 - -v0.10.25 2014-01-23 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.24 3.14.5.9 0.10.23 1.2.3 1.0.1e 11 - -v0.10.24 2013-12-19 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.21 3.14.5.9 0.10.21 1.2.3 1.0.1e 11 - -v0.10.23 2013-12-12 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.17 3.14.5.9 0.10.20 1.2.3 1.0.1e 11 - -v0.10.22 2013-11-12 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.14 3.14.5.9 0.10.19 1.2.3 1.0.1e 11 - -v0.10.21 2013-10-18 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.11 3.14.5.9 0.10.18 1.2.3 1.0.1e 11 - -v0.10.20 2013-09-30 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.11 3.14.5.9 0.10.17 1.2.3 1.0.1e 11 - -v0.10.19 2013-09-24 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.11 3.14.5.9 0.10.17 1.2.3 1.0.1e 11 - -v0.10.18 2013-09-04 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.8 3.14.5.9 0.10.15 1.2.3 1.0.1e 11 - -v0.10.17 2013-08-21 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.8 3.14.5.9 0.10.14 1.2.3 1.0.1e 11 - -v0.10.16 2013-08-16 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.8 3.14.5.9 0.10.13 1.2.3 1.0.1e 11 - -v0.10.15 2013-07-25 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.5 3.14.5.9 0.10.13 1.2.3 1.0.1e 11 - -v0.10.14 2013-07-25 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.5 3.14.5.9 0.10.13 1.2.3 1.0.1e 11 - -v0.10.13 2013-07-09 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.3.2 3.14.5.9 0.10.12 1.2.3 1.0.1e 11 - -v0.10.12 2013-06-18 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.32 3.14.5.9 0.10.11 1.2.3 1.0.1e 11 - -v0.10.11 2013-06-13 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.30 3.14.5.9 0.10.11 1.2.3 1.0.1e 11 - -v0.10.10 2013-06-04 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.25 3.14.5.9 0.10.10 1.2.3 1.0.1e 11 - -v0.10.9 2013-05-30 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.24 3.14.5.9 0.10.9 1.2.3 1.0.1e 11 - -v0.10.8 2013-05-24 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.23 3.14.5.9 0.10.8 1.2.3 1.0.1e 11 - -v0.10.7 2013-05-17 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.21 3.14.5.8 0.10.7 1.2.3 1.0.1e 11 - -v0.10.6 2013-05-14 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.18 3.14.5.8 0.10.5 1.2.3 1.0.1e 11 - -v0.10.5 2013-04-23 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.18 3.14.5.8 0.10.5 1.2.3 1.0.1e 11 - -v0.10.4 2013-04-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.18 3.14.5.8 0.10.4 1.2.3 1.0.1e 11 - -v0.10.3 2013-04-03 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.17 3.14.5.8 0.10.3 1.2.3 1.0.1e 0x000B - -v0.10.2 2013-03-28 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.15 3.14.5.8 0.10.3 1.2.3 1.0.1e 0x000B - -v0.10.1 2013-03-21 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.15 3.14.5.8 0.10 1.2.3 1.0.1e 0x000B - -v0.10.0 2013-03-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.14 3.14.5.8 0.9 1.2.3 1.0.1e 0x000B - -v0.9.12 2013-03-06 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.12 3.14.5.8 0.9 1.2.3 1.0.1e 0x000B - -v0.9.11 2013-03-01 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.12 3.14.5.0 0.9 1.2.3 1.0.1e 0x000B - -v0.9.10 2013-02-19 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.12 3.15.11.15 0.9 1.2.3 1.0.1c 0x000B - -v0.9.9 2013-02-07 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.10 3.15.11.10 0.9 1.2.3 1.0.1c 0x000B - -v0.9.8 2013-01-24 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.3 3.15.11.10 0.9 1.2.3 1.0.1c 0x000A - -v0.9.7 2013-01-18 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.2 3.15.11.7 0.9 1.2.3 1.0.1c 0x000A - -v0.9.6 2013-01-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.0 3.15.11.5 0.9 1.2.3 1.0.1c 0x000A - -v0.9.5 2012-12-30 linux-x64,linux-x86,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.70 3.13.7.4 0.9 1.2.3 1.0.1c 0x000A - -v0.9.4 2012-12-21 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.70 3.13.7.4 0.9 1.2.3 1.0.1c 0x000A - -v0.9.3 2012-10-24 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.64 3.13.7.4 0.9 1.2.3 1.0.1c 0x000A - -v0.9.2 2012-09-17 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.61 3.11.10.22 0.9 1.2.3 1.0.1c 0x000A - -v0.9.1 2012-08-28 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.59 3.11.10.19 0.9 1.2.3 1.0.0f 0x000A - -v0.9.0 2012-07-20 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.44 3.11.10.15 0.9 1.2.3 1.0.0f 1 - -v0.8.28 2014-07-31 linux-x64,linux-x86,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.30 3.11.10.26 0.8 1.2.3 1.0.0f 1 - -v0.8.27 2014-06-09 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x86-msi 1.2.30 3.11.10.26 0.8 1.2.3 1.0.0f 1 - -v0.8.26 2013-10-18 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.30 3.11.10.26 0.8 1.2.3 1.0.0f 1 - -v0.8.25 2013-06-13 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.30 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.24 2013-06-03 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.24 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.23 2013-04-09 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.18 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.22 2013-03-06 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.14 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.21 2013-02-25 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.11 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.20 2013-02-15 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.11 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.19 2013-02-06 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.10 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.18 2013-01-18 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.2 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.17 2013-01-10 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.2.0 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.16 2012-12-12 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.69 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.15 2012-11-26 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.66 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.14 2012-10-25 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.65 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.13 2012-10-25 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.65 3.11.10.25 0.8 1.2.3 1.0.0f 1 - -v0.8.12 2012-10-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.63 3.11.10.22 0.8 1.2.3 1.0.0f 1 - -v0.8.11 2012-09-27 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.62 3.11.10.22 0.8 1.2.3 1.0.0f 1 - -v0.8.10 2012-09-25 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.62 3.11.10.22 0.8 1.2.3 1.0.0f 1 - -v0.8.9 2012-09-11 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.61 3.11.10.22 0.8 1.2.3 1.0.0f 1 - -v0.8.8 2012-08-22 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 1.1.59 3.11.10.19 0.8 1.2.3 1.0.0f 1 - -v0.8.7 2012-08-15 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.49 3.11.10.17 0.8 1.2.3 1.0.0f 1 - -v0.8.6 2012-08-06 linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,osx-x86-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x86-exe,win-x86-msi 1.1.48 3.11.10.17 0.8 1.2.3 1.0.0f 1 - -v0.8.5 2012-08-02 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.46 3.11.10.17 0.8 1.2.3 1.0.0f 1 - -v0.8.4 2012-07-24 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.45 3.11.10.17 0.8 1.2.3 1.0.0f 1 - -v0.8.3 2012-07-17 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.43 3.11.10.15 0.8 1.2.3 1.0.0f 1 - -v0.8.2 2012-07-09 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.36 3.11.10.14 0.8 1.2.3 1.0.0f 1 - -v0.8.1 2012-06-29 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.33 3.11.10.12 0.8 1.2.3 1.0.0f 1 - -v0.8.0 2012-06-22 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.32 3.11.10.10 0.8 1.2.3 1.0.0f 1 - -v0.7.12 2012-06-19 osx-x64-pkg,src,win-x64-exe,win-x86-exe,win-x86-msi 1.1.30 3.11.10.0 0.6 1.2.3 1.0.0f 1 - -v0.7.11 2012-06-15 osx-x64-pkg,src,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 1.1.26 3.11.10.0 0.6 1.2.3 1.0.0f 1 - -v0.7.10 2012-06-11 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.25 3.9.24.31 0.6 1.2.3 1.0.0f 1 - -v0.7.9 2012-05-29 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.23 3.11.1.0 0.6 1.2.3 1.0.0f 1 - -v0.7.8 2012-04-18 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.18 3.9.24.9 0.6 1.2.3 1.0.0f 1 - -v0.7.7 2012-03-30 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.15 3.9.24.7 0.6 1.2.3 0.9.8r 1 - -v0.7.6 2012-03-13 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.8 3.9.17.0 0.6 1.2.3 0.9.8r 1 - -v0.7.5 2012-02-23 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.1 3.9.5.0 0.6 1.2.3 0.9.8r 1 - -v0.7.4 2012-02-14 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.1 3.9.5.0 0.6 1.2.3 0.9.8r 1 - -v0.7.3 2012-02-07 osx-x64-pkg,src,win-x86-exe 1.1.0-3 3.9.2.0 0.6 1.2.3 0.9.8r 1 - -v0.7.2 2012-02-01 osx-x64-pkg,src,win-x86-exe 1.1.0-3 3.8.9.0 0.6 1.2.3 0.9.8r 1 - -v0.7.1 2012-01-23 osx-x64-pkg,src,win-x86-exe 1.1.0-2 3.8.8.0 0.6 1.2.3 0.9.8r 1 - -v0.7.0 2012-01-17 osx-x64-pkg,src,win-x86-exe 1.1.0-2 3.8.6.0 0.6 1.2.3 0.9.8r 1 - -v0.6.21 2012-08-03 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.37 3.6.6.25 0.6 1.2.3 0.9.8r 1 - -v0.6.20 2012-07-10 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.37 3.6.6.25 0.6 1.2.3 0.9.8r 1 - -v0.6.19 2012-06-06 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.24 3.6.6.25 0.6 1.2.3 0.9.8r 1 - -v0.6.18 2012-05-14 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.21 3.6.6.25 0.6 1.2.3 0.9.8r 1 - -v0.6.17 2012-05-04 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.21 3.6.6.25 0.6 1.2.3 0.9.8r 1 - -v0.6.16 2012-04-27 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.19 3.6.6.25 0.6 1.2.3 0.9.8r 1 - -v0.6.15 2012-04-08 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.16 3.6.6.24 0.6 1.2.3 0.9.8r 1 - -v0.6.14 2012-03-23 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.12 3.6.6.24 0.6 1.2.3 0.9.8r 1 - -v0.6.13 2012-03-15 osx-x64-pkg,src,win-x64-exe,win-x86-exe 1.1.9 3.6.6.24 0.6 1.2.3 0.9.8r 1 - -v0.6.12 2012-03-02 osx-x64-pkg,src,win-x86-exe 1.1.4 3.6.6.24 0.6 1.2.3 0.9.8r 1 - -v0.6.11 2012-02-08 osx-x64-pkg,src,win-x86-exe 1.1.1 3.6.6.20 0.6 1.2.3 0.9.8r 1 - -v0.6.10 2012-02-03 osx-x64-pkg,src,win-x86-exe 1.1.0-3 3.6.6.20 0.6 1.2.3 0.9.8r 1 - -v0.6.9 2012-01-27 osx-x64-pkg,src,win-x86-exe 1.1.0-3 3.6.6.19 0.6 1.2.3 0.9.8r 1 - -v0.6.8 2012-01-20 osx-x64-pkg,src,win-x86-exe 1.1.0-2 3.6.6.19 0.6 1.2.3 0.9.8r 1 - -v0.6.7 2012-01-07 osx-x64-pkg,src,win-x86-exe 1.1.0-beta-10 3.6.6.15 0.6 1.2.3 0.9.8r 1 - -v0.6.6 2011-12-15 osx-x64-pkg,src,win-x86-exe 1.1.0-beta-4 3.6.6.14 0.6 1.2.3 0.9.8r 1 - -v0.6.5 2011-12-04 osx-x64-pkg,src,win-x86-exe 1.1.0-alpha-6 3.6.6.11 0.6 1.2.3 0.9.8r 1 - -v0.6.4 2011-12-02 osx-x64-pkg,src,win-x86-exe 1.1.0-alpha-6 3.6.6.8 0.6 1.2.3 0.9.8r 1 - -v0.6.3 2011-11-25 osx-x64-pkg,src,win-x86-exe 1.1.0-alpha-2 3.6.6.8 0.6 1.2.3 0.9.8r 1 - -v0.6.2 2011-11-18 osx-x64-pkg,src,win-x86-exe - 3.6.6.8 0.6 1.2.3 0.9.8r 1 - -v0.6.1 2011-11-11 osx-x64-pkg,src,win-x86-exe - 3.6.6.7 0.1 1.2.3 0.9.8r 1 - -v0.6.0 2011-11-04 src,win-x86-exe - 3.6.6.6 0.1 1.2.3 0.9.8r 1 - -v0.5.10 2011-10-22 src,win-x86-exe - 3.7.0.0 0.1 1.2.3 0.9.8r 1 - -v0.5.9 2011-10-11 src,win-x86-exe - 3.6.4.0 0.1 1.2.3 0.9.8r 1 - -v0.5.8 2011-09-30 src,win-x86-exe - 3.6.4.0 0.1 1.2.3 0.9.8r 1 - -v0.5.7 2011-09-16 src,win-x86-exe - 3.6.4.0 0.1 - 0.9.8r 1 - -v0.5.6 2011-08-26 src,win-x86-exe - 3.6.2.0 0.1 - 0.9.8r 1 - -v0.5.5 2011-08-26 src,win-x86-exe - 3.5.8.0 0.1 - 0.9.8r 1 - -v0.5.4 2011-08-26 src,win-x86-exe - 3.5.4.3 0.1 - - 1 - -v0.5.3 2011-08-26 src,win-x86-exe - 3.4.14.0 0.1 - - 1 - -v0.5.2 2011-08-26 src,win-x86-exe - 3.4.14.0 0.1 - - 1 - -v0.5.1 2011-08-26 src,win-x86-exe - 3.4.10.0 0.1 - - 1 - -v0.5.0 2011-08-26 src - 3.1.8.25 - - - 1 - -v0.4.12 2011-09-15 src - 3.1.8.26 - - - 1 - -v0.4.11 2011-08-26 src - 3.1.8.26 - - - 1 - -v0.4.10 2011-08-26 src - 3.1.8.26 - - - 1 - -v0.4.9 2011-08-26 src - 3.1.8.25 - - - 1 - -v0.4.8 2011-08-26 src - 3.1.8.16 - - - 1 - -v0.4.7 2011-08-26 src - 3.1.8.10 - - - 1 - -v0.4.6 2011-08-26 src - 3.1.8.10 - - - 1 - -v0.4.5 2011-08-26 src - 3.1.8.8 - - - 1 - -v0.4.4 2011-08-26 src - 3.1.8.5 - - - 1 - -v0.4.3 2011-08-26 src - 3.1.8.3 - - - 1 - -v0.4.2 2011-08-26 src - 3.1.8.0 - - - 1 - -v0.4.1 2011-08-26 src - 3.1.5.0 - - - 1 - -v0.4.0 2011-08-26 src - 3.1.2.0 - - - 1 - -v0.3.8 2011-08-26 src - 3.1.1.0 - - - 1 - -v0.3.7 2011-08-26 src - 3.0.10.0 - - - 1 - -v0.3.6 2011-08-26 src - 3.0.9.0 - - - 1 - -v0.3.5 2011-08-26 src - 3.0.4.1 - - - 1 - -v0.3.4 2011-08-26 src - 3.0.4.1 - - - 1 - -v0.3.3 2011-08-26 src - 3.0.4.1 - - - 1 - -v0.3.2 2011-08-26 src - 3.0.3.0 - - - 1 - -v0.3.1 2011-08-26 src - 2.5.3.0 - - - 1 - -v0.3.0 2011-08-26 src - 2.5.1.0 - - - 1 - -v0.2.6 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.2.5 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.2.4 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.2.3 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.2.2 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.2.1 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.2.0 2011-08-26 src - 2.3.8.0 - - - 1 - -v0.1.104 2011-08-26 src - 2.3.6.1 - - - - - -v0.1.103 2011-08-26 src - 2.3.5.0 - - - - - -v0.1.102 2011-08-26 src - 2.3.2.0 - - - - - -v0.1.101 2011-08-26 src - 2.3.0.0 - - - - - -v0.1.100 2011-08-26 src - 2.2.21.0 - - - - - -v0.1.99 2011-08-26 src - 2.2.18.0 - - - - - -v0.1.98 2011-08-26 src - 2.2.16.0 - - - - - -v0.1.97 2011-08-26 src - 2.2.12.0 - - - - - -v0.1.96 2011-08-26 src - 2.2.0 - - - - - -v0.1.95 2011-08-26 src - 2.2.0 - - - - - -v0.1.94 2011-08-26 src - 2.2.8.0 - - - - - -v0.1.93 2011-08-26 src - 2.2.6.0 - - - - - -v0.1.92 2011-08-26 src - 2.2.4.2 - - - - - -v0.1.91 2011-08-26 src - 2.2.3.1 - - - - - -v0.1.90 2011-08-26 src - 2.2.0.3 - - - - - -v0.1.33 2011-08-26 src - 2.1.6.0 - - - - - -v0.1.32 2011-08-26 src - 2.1.3.0 - - - - - -v0.1.31 2011-08-26 src - 2.1.2.0 - - - - - -v0.1.30 2011-08-26 src - 2.1.1.1 - - - - - -v0.1.29 2011-08-26 src - 2.1.0.0 - - - - - -v0.1.28 2011-08-26 src - 2.1.0.0 - - - - - -v0.1.27 2011-08-26 src - 2.1.0.0 - - - - - -v0.1.26 2011-08-26 src - 2.0.6.1 - - - - - -v0.1.25 2011-08-26 src - 2.0.5.4 - - - - - -v0.1.24 2011-08-26 src - 2.0.5.4 - - - - - -v0.1.23 2011-08-26 src - 2.0.0 - - - - - -v0.1.22 2011-08-26 src - 2.0.0 - - - - - -v0.1.21 2011-08-26 src - 2.0.0 - - - - - -v0.1.20 2011-08-26 src - 2.0.2.0 - - - - - -v0.1.19 2011-08-26 src - 2.0.2.0 - - - - - -v0.1.18 2011-08-26 src - 1.3.18.0 - - - - - -v0.1.17 2011-08-26 src - 1.3.18.0 - - - - - -v0.1.16 2011-08-26 src - 1.3.18.0 - - - - - -v0.1.15 2011-08-26 src - 1.3.16.0 - - - - - -v0.1.14 2011-08-26 src - 1.3.15.0 - - - - - diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote iojs.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote iojs.txt deleted file mode 100644 index 5f2e5987..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote iojs.txt +++ /dev/null @@ -1,41 +0,0 @@ - iojs-v1.0.0 - iojs-v1.0.1 - iojs-v1.0.2 - iojs-v1.0.3 - iojs-v1.0.4 - iojs-v1.1.0 - iojs-v1.2.0 - iojs-v1.3.0 - iojs-v1.4.1 - iojs-v1.4.2 - iojs-v1.4.3 - iojs-v1.5.0 - iojs-v1.5.1 - iojs-v1.6.0 - iojs-v1.6.1 - iojs-v1.6.2 - iojs-v1.6.3 - iojs-v1.6.4 - iojs-v1.7.1 - iojs-v1.8.1 - iojs-v1.8.2 - iojs-v1.8.3 - iojs-v1.8.4 - iojs-v2.0.0 - iojs-v2.0.1 - iojs-v2.0.2 - iojs-v2.1.0 - iojs-v2.2.0 - iojs-v2.2.1 - iojs-v2.3.0 - iojs-v2.3.1 - iojs-v2.3.2 - iojs-v2.3.3 - iojs-v2.3.4 - iojs-v2.4.0 - iojs-v2.5.0 - iojs-v3.0.0 - iojs-v3.1.0 - iojs-v3.2.0 - iojs-v3.3.0 - iojs-v3.3.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote lts.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote lts.txt deleted file mode 100644 index 1912a96f..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote lts.txt +++ /dev/null @@ -1,68 +0,0 @@ - v4.2.0  (LTS: Argon) - v4.2.1  (LTS: Argon) - v4.2.2  (LTS: Argon) - v4.2.3  (LTS: Argon) - v4.2.4  (LTS: Argon) - v4.2.5  (LTS: Argon) - v4.2.6  (LTS: Argon) - v4.3.0  (LTS: Argon) - v4.3.1  (LTS: Argon) - v4.3.2  (LTS: Argon) - v4.4.0  (LTS: Argon) - v4.4.1  (LTS: Argon) - v4.4.2  (LTS: Argon) - v4.4.3  (LTS: Argon) - v4.4.4  (LTS: Argon) - v4.4.5  (LTS: Argon) - v4.4.6  (LTS: Argon) - v4.4.7  (LTS: Argon) - v4.5.0  (LTS: Argon) - v4.6.0  (LTS: Argon) - v4.6.1  (LTS: Argon) - v4.6.2  (LTS: Argon) - v4.7.0  (LTS: Argon) - v4.7.1  (LTS: Argon) - v4.7.2  (LTS: Argon) - v4.7.3  (LTS: Argon) - v4.8.0  (LTS: Argon) - v4.8.1  (LTS: Argon) - v4.8.2  (LTS: Argon) - v4.8.3  (LTS: Argon) - v4.8.4  (LTS: Argon) - v4.8.5  (LTS: Argon) - v4.8.6  (LTS: Argon) - v4.8.7  (LTS: Argon) - v4.9.0  (LTS: Argon) - v4.9.1  (Latest LTS: Argon) - v6.9.0  (LTS: Boron) - v6.9.1  (LTS: Boron) - v6.9.2  (LTS: Boron) - v6.9.3  (LTS: Boron) - v6.9.4  (LTS: Boron) - v6.9.5  (LTS: Boron) - v6.10.0  (LTS: Boron) - v6.10.1  (LTS: Boron) - v6.10.2  (LTS: Boron) - v6.10.3  (LTS: Boron) - v6.11.0  (LTS: Boron) - v6.11.1  (LTS: Boron) - v6.11.2  (LTS: Boron) - v6.11.3  (LTS: Boron) - v6.11.4  (LTS: Boron) - v6.11.5  (LTS: Boron) - v6.12.0  (LTS: Boron) - v6.12.1  (LTS: Boron) - v6.12.2  (LTS: Boron) - v6.12.3  (LTS: Boron) - v6.13.0  (LTS: Boron) - v6.13.1  (LTS: Boron) - v6.14.0  (LTS: Boron) - v6.14.1  (Latest LTS: Boron) - v8.9.0  (LTS: Carbon) - v8.9.1  (LTS: Carbon) - v8.9.2  (LTS: Carbon) - v8.9.3  (LTS: Carbon) - v8.9.4  (LTS: Carbon) - v8.10.0  (LTS: Carbon) - v8.11.0  (LTS: Carbon) - v8.11.1  (Latest LTS: Carbon) diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote node.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote node.txt deleted file mode 100644 index 3e00d5b9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote node.txt +++ /dev/null @@ -1,390 +0,0 @@ - v0.1.14 - v0.1.15 - v0.1.16 - v0.1.17 - v0.1.18 - v0.1.19 - v0.1.20 - v0.1.21 - v0.1.22 - v0.1.23 - v0.1.24 - v0.1.25 - v0.1.26 - v0.1.27 - v0.1.28 - v0.1.29 - v0.1.30 - v0.1.31 - v0.1.32 - v0.1.33 - v0.1.90 - v0.1.91 - v0.1.92 - v0.1.93 - v0.1.94 - v0.1.95 - v0.1.96 - v0.1.97 - v0.1.98 - v0.1.99 - v0.1.100 - v0.1.101 - v0.1.102 - v0.1.103 - v0.1.104 - v0.2.0 - v0.2.1 - v0.2.2 - v0.2.3 - v0.2.4 - v0.2.5 - v0.2.6 - v0.3.0 - v0.3.1 - v0.3.2 - v0.3.3 - v0.3.4 - v0.3.5 - v0.3.6 - v0.3.7 - v0.3.8 - v0.4.0 - v0.4.1 - v0.4.2 - v0.4.3 - v0.4.4 - v0.4.5 - v0.4.6 - v0.4.7 - v0.4.8 - v0.4.9 - v0.4.10 - v0.4.11 - v0.4.12 - v0.5.0 - v0.5.1 - v0.5.2 - v0.5.3 - v0.5.4 - v0.5.5 - v0.5.6 - v0.5.7 - v0.5.8 - v0.5.9 - v0.5.10 - v0.6.0 - v0.6.1 - v0.6.2 - v0.6.3 - v0.6.4 - v0.6.5 - v0.6.6 - v0.6.7 - v0.6.8 - v0.6.9 - v0.6.10 - v0.6.11 - v0.6.12 - v0.6.13 - v0.6.14 - v0.6.15 - v0.6.16 - v0.6.17 - v0.6.18 - v0.6.19 - v0.6.20 - v0.6.21 - v0.7.0 - v0.7.1 - v0.7.2 - v0.7.3 - v0.7.4 - v0.7.5 - v0.7.6 - v0.7.7 - v0.7.8 - v0.7.9 - v0.7.10 - v0.7.11 - v0.7.12 - v0.8.0 - v0.8.1 - v0.8.2 - v0.8.3 - v0.8.4 - v0.8.5 - v0.8.6 - v0.8.7 - v0.8.8 - v0.8.9 - v0.8.10 - v0.8.11 - v0.8.12 - v0.8.13 - v0.8.14 - v0.8.15 - v0.8.16 - v0.8.17 - v0.8.18 - v0.8.19 - v0.8.20 - v0.8.21 - v0.8.22 - v0.8.23 - v0.8.24 - v0.8.25 - v0.8.26 - v0.8.27 - v0.8.28 - v0.9.0 - v0.9.1 - v0.9.2 - v0.9.3 - v0.9.4 - v0.9.5 - v0.9.6 - v0.9.7 - v0.9.8 - v0.9.9 - v0.9.10 - v0.9.11 - v0.9.12 - v0.10.0 - v0.10.1 - v0.10.2 - v0.10.3 - v0.10.4 - v0.10.5 - v0.10.6 - v0.10.7 - v0.10.8 - v0.10.9 - v0.10.10 - v0.10.11 - v0.10.12 - v0.10.13 - v0.10.14 - v0.10.15 - v0.10.16 - v0.10.17 - v0.10.18 - v0.10.19 - v0.10.20 - v0.10.21 - v0.10.22 - v0.10.23 - v0.10.24 - v0.10.25 - v0.10.26 - v0.10.27 - v0.10.28 - v0.10.29 - v0.10.30 - v0.10.31 - v0.10.32 - v0.10.33 - v0.10.34 - v0.10.35 - v0.10.36 - v0.10.37 - v0.10.38 - v0.10.39 - v0.10.40 - v0.10.41 - v0.10.42 - v0.10.43 - v0.10.44 - v0.10.45 - v0.10.46 - v0.10.47 - v0.10.48 - v0.11.0 - v0.11.1 - v0.11.2 - v0.11.3 - v0.11.4 - v0.11.5 - v0.11.6 - v0.11.7 - v0.11.8 - v0.11.9 - v0.11.10 - v0.11.11 - v0.11.12 - v0.11.13 - v0.11.14 - v0.11.15 - v0.11.16 - v0.12.0 - v0.12.1 - v0.12.2 - v0.12.3 - v0.12.4 - v0.12.5 - v0.12.6 - v0.12.7 - v0.12.8 - v0.12.9 - v0.12.10 - v0.12.11 - v0.12.12 - v0.12.13 - v0.12.14 - v0.12.15 - v0.12.16 - v0.12.17 - v0.12.18 - v4.0.0 - v4.1.0 - v4.1.1 - v4.1.2 - v4.2.0  (LTS: Argon) - v4.2.1  (LTS: Argon) - v4.2.2  (LTS: Argon) - v4.2.3  (LTS: Argon) - v4.2.4  (LTS: Argon) - v4.2.5  (LTS: Argon) - v4.2.6  (LTS: Argon) - v4.3.0  (LTS: Argon) - v4.3.1  (LTS: Argon) - v4.3.2  (LTS: Argon) - v4.4.0  (LTS: Argon) - v4.4.1  (LTS: Argon) - v4.4.2  (LTS: Argon) - v4.4.3  (LTS: Argon) - v4.4.4  (LTS: Argon) - v4.4.5  (LTS: Argon) - v4.4.6  (LTS: Argon) - v4.4.7  (LTS: Argon) - v4.5.0  (LTS: Argon) - v4.6.0  (LTS: Argon) - v4.6.1  (LTS: Argon) - v4.6.2  (LTS: Argon) - v4.7.0  (LTS: Argon) - v4.7.1  (LTS: Argon) - v4.7.2  (LTS: Argon) - v4.7.3  (LTS: Argon) - v4.8.0  (LTS: Argon) - v4.8.1  (LTS: Argon) - v4.8.2  (LTS: Argon) - v4.8.3  (LTS: Argon) - v4.8.4  (LTS: Argon) - v4.8.5  (LTS: Argon) - v4.8.6  (LTS: Argon) - v4.8.7  (LTS: Argon) - v4.9.0  (LTS: Argon) - v4.9.1  (Latest LTS: Argon) - v5.0.0 - v5.1.0 - v5.1.1 - v5.2.0 - v5.3.0 - v5.4.0 - v5.4.1 - v5.5.0 - v5.6.0 - v5.7.0 - v5.7.1 - v5.8.0 - v5.9.0 - v5.9.1 - v5.10.0 - v5.10.1 - v5.11.0 - v5.11.1 - v5.12.0 - v6.0.0 - v6.1.0 - v6.2.0 - v6.2.1 - v6.2.2 - v6.3.0 - v6.3.1 - v6.4.0 - v6.5.0 - v6.6.0 - v6.7.0 - v6.8.0 - v6.8.1 - v6.9.0  (LTS: Boron) - v6.9.1  (LTS: Boron) - v6.9.2  (LTS: Boron) - v6.9.3  (LTS: Boron) - v6.9.4  (LTS: Boron) - v6.9.5  (LTS: Boron) - v6.10.0  (LTS: Boron) - v6.10.1  (LTS: Boron) - v6.10.2  (LTS: Boron) - v6.10.3  (LTS: Boron) - v6.11.0  (LTS: Boron) - v6.11.1  (LTS: Boron) - v6.11.2  (LTS: Boron) - v6.11.3  (LTS: Boron) - v6.11.4  (LTS: Boron) - v6.11.5  (LTS: Boron) - v6.12.0  (LTS: Boron) - v6.12.1  (LTS: Boron) - v6.12.2  (LTS: Boron) - v6.12.3  (LTS: Boron) - v6.13.0  (LTS: Boron) - v6.13.1  (LTS: Boron) - v6.14.0  (LTS: Boron) - v6.14.1  (Latest LTS: Boron) - v7.0.0 - v7.1.0 - v7.2.0 - v7.2.1 - v7.3.0 - v7.4.0 - v7.5.0 - v7.6.0 - v7.7.0 - v7.7.1 - v7.7.2 - v7.7.3 - v7.7.4 - v7.8.0 - v7.9.0 - v7.10.0 - v7.10.1 - v8.0.0 - v8.1.0 - v8.1.1 - v8.1.2 - v8.1.3 - v8.1.4 - v8.2.0 - v8.2.1 - v8.3.0 - v8.4.0 - v8.5.0 - v8.6.0 - v8.7.0 - v8.8.0 - v8.8.1 - v8.9.0  (LTS: Carbon) - v8.9.1  (LTS: Carbon) - v8.9.2  (LTS: Carbon) - v8.9.3  (LTS: Carbon) - v8.9.4  (LTS: Carbon) - v8.10.0  (LTS: Carbon) - v8.11.0  (LTS: Carbon) - v8.11.1  (Latest LTS: Carbon) - v9.0.0 - v9.1.0 - v9.2.0 - v9.2.1 - v9.3.0 - v9.4.0 - v9.5.0 - v9.6.0 - v9.6.1 - v9.7.0 - v9.7.1 - v9.8.0 - v9.9.0 - v9.10.0 - v9.10.1 - v9.11.0 - v9.11.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote.txt deleted file mode 100644 index ac19faac..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm ls-remote.txt +++ /dev/null @@ -1,431 +0,0 @@ - v0.1.14 - v0.1.15 - v0.1.16 - v0.1.17 - v0.1.18 - v0.1.19 - v0.1.20 - v0.1.21 - v0.1.22 - v0.1.23 - v0.1.24 - v0.1.25 - v0.1.26 - v0.1.27 - v0.1.28 - v0.1.29 - v0.1.30 - v0.1.31 - v0.1.32 - v0.1.33 - v0.1.90 - v0.1.91 - v0.1.92 - v0.1.93 - v0.1.94 - v0.1.95 - v0.1.96 - v0.1.97 - v0.1.98 - v0.1.99 - v0.1.100 - v0.1.101 - v0.1.102 - v0.1.103 - v0.1.104 - v0.2.0 - v0.2.1 - v0.2.2 - v0.2.3 - v0.2.4 - v0.2.5 - v0.2.6 - v0.3.0 - v0.3.1 - v0.3.2 - v0.3.3 - v0.3.4 - v0.3.5 - v0.3.6 - v0.3.7 - v0.3.8 - v0.4.0 - v0.4.1 - v0.4.2 - v0.4.3 - v0.4.4 - v0.4.5 - v0.4.6 - v0.4.7 - v0.4.8 - v0.4.9 - v0.4.10 - v0.4.11 - v0.4.12 - v0.5.0 - v0.5.1 - v0.5.2 - v0.5.3 - v0.5.4 - v0.5.5 - v0.5.6 - v0.5.7 - v0.5.8 - v0.5.9 - v0.5.10 - v0.6.0 - v0.6.1 - v0.6.2 - v0.6.3 - v0.6.4 - v0.6.5 - v0.6.6 - v0.6.7 - v0.6.8 - v0.6.9 - v0.6.10 - v0.6.11 - v0.6.12 - v0.6.13 - v0.6.14 - v0.6.15 - v0.6.16 - v0.6.17 - v0.6.18 - v0.6.19 - v0.6.20 - v0.6.21 - v0.7.0 - v0.7.1 - v0.7.2 - v0.7.3 - v0.7.4 - v0.7.5 - v0.7.6 - v0.7.7 - v0.7.8 - v0.7.9 - v0.7.10 - v0.7.11 - v0.7.12 - v0.8.0 - v0.8.1 - v0.8.2 - v0.8.3 - v0.8.4 - v0.8.5 - v0.8.6 - v0.8.7 - v0.8.8 - v0.8.9 - v0.8.10 - v0.8.11 - v0.8.12 - v0.8.13 - v0.8.14 - v0.8.15 - v0.8.16 - v0.8.17 - v0.8.18 - v0.8.19 - v0.8.20 - v0.8.21 - v0.8.22 - v0.8.23 - v0.8.24 - v0.8.25 - v0.8.26 - v0.8.27 - v0.8.28 - v0.9.0 - v0.9.1 - v0.9.2 - v0.9.3 - v0.9.4 - v0.9.5 - v0.9.6 - v0.9.7 - v0.9.8 - v0.9.9 - v0.9.10 - v0.9.11 - v0.9.12 - v0.10.0 - v0.10.1 - v0.10.2 - v0.10.3 - v0.10.4 - v0.10.5 - v0.10.6 - v0.10.7 - v0.10.8 - v0.10.9 - v0.10.10 - v0.10.11 - v0.10.12 - v0.10.13 - v0.10.14 - v0.10.15 - v0.10.16 - v0.10.17 - v0.10.18 - v0.10.19 - v0.10.20 - v0.10.21 - v0.10.22 - v0.10.23 - v0.10.24 - v0.10.25 - v0.10.26 - v0.10.27 - v0.10.28 - v0.10.29 - v0.10.30 - v0.10.31 - v0.10.32 - v0.10.33 - v0.10.34 - v0.10.35 - v0.10.36 - v0.10.37 - v0.10.38 - v0.10.39 - v0.10.40 - v0.10.41 - v0.10.42 - v0.10.43 - v0.10.44 - v0.10.45 - v0.10.46 - v0.10.47 - v0.10.48 - v0.11.0 - v0.11.1 - v0.11.2 - v0.11.3 - v0.11.4 - v0.11.5 - v0.11.6 - v0.11.7 - v0.11.8 - v0.11.9 - v0.11.10 - v0.11.11 - v0.11.12 - v0.11.13 - v0.11.14 - v0.11.15 - v0.11.16 - v0.12.0 - v0.12.1 - v0.12.2 - v0.12.3 - v0.12.4 - v0.12.5 - v0.12.6 - v0.12.7 - v0.12.8 - v0.12.9 - v0.12.10 - v0.12.11 - v0.12.12 - v0.12.13 - v0.12.14 - v0.12.15 - v0.12.16 - v0.12.17 - v0.12.18 - iojs-v1.0.0 - iojs-v1.0.1 - iojs-v1.0.2 - iojs-v1.0.3 - iojs-v1.0.4 - iojs-v1.1.0 - iojs-v1.2.0 - iojs-v1.3.0 - iojs-v1.4.1 - iojs-v1.4.2 - iojs-v1.4.3 - iojs-v1.5.0 - iojs-v1.5.1 - iojs-v1.6.0 - iojs-v1.6.1 - iojs-v1.6.2 - iojs-v1.6.3 - iojs-v1.6.4 - iojs-v1.7.1 - iojs-v1.8.1 - iojs-v1.8.2 - iojs-v1.8.3 - iojs-v1.8.4 - iojs-v2.0.0 - iojs-v2.0.1 - iojs-v2.0.2 - iojs-v2.1.0 - iojs-v2.2.0 - iojs-v2.2.1 - iojs-v2.3.0 - iojs-v2.3.1 - iojs-v2.3.2 - iojs-v2.3.3 - iojs-v2.3.4 - iojs-v2.4.0 - iojs-v2.5.0 - iojs-v3.0.0 - iojs-v3.1.0 - iojs-v3.2.0 - iojs-v3.3.0 - iojs-v3.3.1 - v4.0.0 - v4.1.0 - v4.1.1 - v4.1.2 - v4.2.0  (LTS: Argon) - v4.2.1  (LTS: Argon) - v4.2.2  (LTS: Argon) - v4.2.3  (LTS: Argon) - v4.2.4  (LTS: Argon) - v4.2.5  (LTS: Argon) - v4.2.6  (LTS: Argon) - v4.3.0  (LTS: Argon) - v4.3.1  (LTS: Argon) - v4.3.2  (LTS: Argon) - v4.4.0  (LTS: Argon) - v4.4.1  (LTS: Argon) - v4.4.2  (LTS: Argon) - v4.4.3  (LTS: Argon) - v4.4.4  (LTS: Argon) - v4.4.5  (LTS: Argon) - v4.4.6  (LTS: Argon) - v4.4.7  (LTS: Argon) - v4.5.0  (LTS: Argon) - v4.6.0  (LTS: Argon) - v4.6.1  (LTS: Argon) - v4.6.2  (LTS: Argon) - v4.7.0  (LTS: Argon) - v4.7.1  (LTS: Argon) - v4.7.2  (LTS: Argon) - v4.7.3  (LTS: Argon) - v4.8.0  (LTS: Argon) - v4.8.1  (LTS: Argon) - v4.8.2  (LTS: Argon) - v4.8.3  (LTS: Argon) - v4.8.4  (LTS: Argon) - v4.8.5  (LTS: Argon) - v4.8.6  (LTS: Argon) - v4.8.7  (LTS: Argon) - v4.9.0  (LTS: Argon) - v4.9.1  (Latest LTS: Argon) - v5.0.0 - v5.1.0 - v5.1.1 - v5.2.0 - v5.3.0 - v5.4.0 - v5.4.1 - v5.5.0 - v5.6.0 - v5.7.0 - v5.7.1 - v5.8.0 - v5.9.0 - v5.9.1 - v5.10.0 - v5.10.1 - v5.11.0 - v5.11.1 - v5.12.0 - v6.0.0 - v6.1.0 - v6.2.0 - v6.2.1 - v6.2.2 - v6.3.0 - v6.3.1 - v6.4.0 - v6.5.0 - v6.6.0 - v6.7.0 - v6.8.0 - v6.8.1 - v6.9.0  (LTS: Boron) - v6.9.1  (LTS: Boron) - v6.9.2  (LTS: Boron) - v6.9.3  (LTS: Boron) - v6.9.4  (LTS: Boron) - v6.9.5  (LTS: Boron) - v6.10.0  (LTS: Boron) - v6.10.1  (LTS: Boron) - v6.10.2  (LTS: Boron) - v6.10.3  (LTS: Boron) - v6.11.0  (LTS: Boron) - v6.11.1  (LTS: Boron) - v6.11.2  (LTS: Boron) - v6.11.3  (LTS: Boron) - v6.11.4  (LTS: Boron) - v6.11.5  (LTS: Boron) - v6.12.0  (LTS: Boron) - v6.12.1  (LTS: Boron) - v6.12.2  (LTS: Boron) - v6.12.3  (LTS: Boron) - v6.13.0  (LTS: Boron) - v6.13.1  (LTS: Boron) - v6.14.0  (LTS: Boron) - v6.14.1  (Latest LTS: Boron) - v7.0.0 - v7.1.0 - v7.2.0 - v7.2.1 - v7.3.0 - v7.4.0 - v7.5.0 - v7.6.0 - v7.7.0 - v7.7.1 - v7.7.2 - v7.7.3 - v7.7.4 - v7.8.0 - v7.9.0 - v7.10.0 - v7.10.1 - v8.0.0 - v8.1.0 - v8.1.1 - v8.1.2 - v8.1.3 - v8.1.4 - v8.2.0 - v8.2.1 - v8.3.0 - v8.4.0 - v8.5.0 - v8.6.0 - v8.7.0 - v8.8.0 - v8.8.1 - v8.9.0  (LTS: Carbon) - v8.9.1  (LTS: Carbon) - v8.9.2  (LTS: Carbon) - v8.9.3  (LTS: Carbon) - v8.9.4  (LTS: Carbon) - v8.10.0  (LTS: Carbon) - v8.11.0  (LTS: Carbon) - v8.11.1  (Latest LTS: Carbon) - v9.0.0 - v9.1.0 - v9.2.0 - v9.2.1 - v9.3.0 - v9.4.0 - v9.5.0 - v9.6.0 - v9.6.1 - v9.7.0 - v9.7.1 - v9.8.0 - v9.9.0 - v9.10.0 - v9.10.1 - v9.11.0 - v9.11.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS argon.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS argon.txt deleted file mode 100644 index e20669e7..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS argon.txt +++ /dev/null @@ -1,36 +0,0 @@ -v4.2.0 Argon -v4.2.1 Argon -v4.2.2 Argon -v4.2.3 Argon -v4.2.4 Argon -v4.2.5 Argon -v4.2.6 Argon -v4.3.0 Argon -v4.3.1 Argon -v4.3.2 Argon -v4.4.0 Argon -v4.4.1 Argon -v4.4.2 Argon -v4.4.3 Argon -v4.4.4 Argon -v4.4.5 Argon -v4.4.6 Argon -v4.4.7 Argon -v4.5.0 Argon -v4.6.0 Argon -v4.6.1 Argon -v4.6.2 Argon -v4.7.0 Argon -v4.7.1 Argon -v4.7.2 Argon -v4.7.3 Argon -v4.8.0 Argon -v4.8.1 Argon -v4.8.2 Argon -v4.8.3 Argon -v4.8.4 Argon -v4.8.5 Argon -v4.8.6 Argon -v4.8.7 Argon -v4.9.0 Argon -v4.9.1 Argon diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS.txt deleted file mode 100644 index 2885bcf3..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote LTS.txt +++ /dev/null @@ -1,68 +0,0 @@ -v4.2.0 Argon -v4.2.1 Argon -v4.2.2 Argon -v4.2.3 Argon -v4.2.4 Argon -v4.2.5 Argon -v4.2.6 Argon -v4.3.0 Argon -v4.3.1 Argon -v4.3.2 Argon -v4.4.0 Argon -v4.4.1 Argon -v4.4.2 Argon -v4.4.3 Argon -v4.4.4 Argon -v4.4.5 Argon -v4.4.6 Argon -v4.4.7 Argon -v4.5.0 Argon -v4.6.0 Argon -v4.6.1 Argon -v4.6.2 Argon -v4.7.0 Argon -v4.7.1 Argon -v4.7.2 Argon -v4.7.3 Argon -v4.8.0 Argon -v4.8.1 Argon -v4.8.2 Argon -v4.8.3 Argon -v4.8.4 Argon -v4.8.5 Argon -v4.8.6 Argon -v4.8.7 Argon -v4.9.0 Argon -v4.9.1 Argon -v6.9.0 Boron -v6.9.1 Boron -v6.9.2 Boron -v6.9.3 Boron -v6.9.4 Boron -v6.9.5 Boron -v6.10.0 Boron -v6.10.1 Boron -v6.10.2 Boron -v6.10.3 Boron -v6.11.0 Boron -v6.11.1 Boron -v6.11.2 Boron -v6.11.3 Boron -v6.11.4 Boron -v6.11.5 Boron -v6.12.0 Boron -v6.12.1 Boron -v6.12.2 Boron -v6.12.3 Boron -v6.13.0 Boron -v6.13.1 Boron -v6.14.0 Boron -v6.14.1 Boron -v8.9.0 Carbon -v8.9.1 Carbon -v8.9.2 Carbon -v8.9.3 Carbon -v8.9.4 Carbon -v8.10.0 Carbon -v8.11.0 Carbon -v8.11.1 Carbon diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote stable.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote stable.txt deleted file mode 100644 index 0a7b8bcc..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote stable.txt +++ /dev/null @@ -1 +0,0 @@ -v9.11.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote.txt deleted file mode 100644 index d93b723b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote.txt +++ /dev/null @@ -1,390 +0,0 @@ -v0.1.14 -v0.1.15 -v0.1.16 -v0.1.17 -v0.1.18 -v0.1.19 -v0.1.20 -v0.1.21 -v0.1.22 -v0.1.23 -v0.1.24 -v0.1.25 -v0.1.26 -v0.1.27 -v0.1.28 -v0.1.29 -v0.1.30 -v0.1.31 -v0.1.32 -v0.1.33 -v0.1.90 -v0.1.91 -v0.1.92 -v0.1.93 -v0.1.94 -v0.1.95 -v0.1.96 -v0.1.97 -v0.1.98 -v0.1.99 -v0.1.100 -v0.1.101 -v0.1.102 -v0.1.103 -v0.1.104 -v0.2.0 -v0.2.1 -v0.2.2 -v0.2.3 -v0.2.4 -v0.2.5 -v0.2.6 -v0.3.0 -v0.3.1 -v0.3.2 -v0.3.3 -v0.3.4 -v0.3.5 -v0.3.6 -v0.3.7 -v0.3.8 -v0.4.0 -v0.4.1 -v0.4.2 -v0.4.3 -v0.4.4 -v0.4.5 -v0.4.6 -v0.4.7 -v0.4.8 -v0.4.9 -v0.4.10 -v0.4.11 -v0.4.12 -v0.5.0 -v0.5.1 -v0.5.2 -v0.5.3 -v0.5.4 -v0.5.5 -v0.5.6 -v0.5.7 -v0.5.8 -v0.5.9 -v0.5.10 -v0.6.0 -v0.6.1 -v0.6.2 -v0.6.3 -v0.6.4 -v0.6.5 -v0.6.6 -v0.6.7 -v0.6.8 -v0.6.9 -v0.6.10 -v0.6.11 -v0.6.12 -v0.6.13 -v0.6.14 -v0.6.15 -v0.6.16 -v0.6.17 -v0.6.18 -v0.6.19 -v0.6.20 -v0.6.21 -v0.7.0 -v0.7.1 -v0.7.2 -v0.7.3 -v0.7.4 -v0.7.5 -v0.7.6 -v0.7.7 -v0.7.8 -v0.7.9 -v0.7.10 -v0.7.11 -v0.7.12 -v0.8.0 -v0.8.1 -v0.8.2 -v0.8.3 -v0.8.4 -v0.8.5 -v0.8.6 -v0.8.7 -v0.8.8 -v0.8.9 -v0.8.10 -v0.8.11 -v0.8.12 -v0.8.13 -v0.8.14 -v0.8.15 -v0.8.16 -v0.8.17 -v0.8.18 -v0.8.19 -v0.8.20 -v0.8.21 -v0.8.22 -v0.8.23 -v0.8.24 -v0.8.25 -v0.8.26 -v0.8.27 -v0.8.28 -v0.9.0 -v0.9.1 -v0.9.2 -v0.9.3 -v0.9.4 -v0.9.5 -v0.9.6 -v0.9.7 -v0.9.8 -v0.9.9 -v0.9.10 -v0.9.11 -v0.9.12 -v0.10.0 -v0.10.1 -v0.10.2 -v0.10.3 -v0.10.4 -v0.10.5 -v0.10.6 -v0.10.7 -v0.10.8 -v0.10.9 -v0.10.10 -v0.10.11 -v0.10.12 -v0.10.13 -v0.10.14 -v0.10.15 -v0.10.16 -v0.10.17 -v0.10.18 -v0.10.19 -v0.10.20 -v0.10.21 -v0.10.22 -v0.10.23 -v0.10.24 -v0.10.25 -v0.10.26 -v0.10.27 -v0.10.28 -v0.10.29 -v0.10.30 -v0.10.31 -v0.10.32 -v0.10.33 -v0.10.34 -v0.10.35 -v0.10.36 -v0.10.37 -v0.10.38 -v0.10.39 -v0.10.40 -v0.10.41 -v0.10.42 -v0.10.43 -v0.10.44 -v0.10.45 -v0.10.46 -v0.10.47 -v0.10.48 -v0.11.0 -v0.11.1 -v0.11.2 -v0.11.3 -v0.11.4 -v0.11.5 -v0.11.6 -v0.11.7 -v0.11.8 -v0.11.9 -v0.11.10 -v0.11.11 -v0.11.12 -v0.11.13 -v0.11.14 -v0.11.15 -v0.11.16 -v0.12.0 -v0.12.1 -v0.12.2 -v0.12.3 -v0.12.4 -v0.12.5 -v0.12.6 -v0.12.7 -v0.12.8 -v0.12.9 -v0.12.10 -v0.12.11 -v0.12.12 -v0.12.13 -v0.12.14 -v0.12.15 -v0.12.16 -v0.12.17 -v0.12.18 -v4.0.0 -v4.1.0 -v4.1.1 -v4.1.2 -v4.2.0 Argon -v4.2.1 Argon -v4.2.2 Argon -v4.2.3 Argon -v4.2.4 Argon -v4.2.5 Argon -v4.2.6 Argon -v4.3.0 Argon -v4.3.1 Argon -v4.3.2 Argon -v4.4.0 Argon -v4.4.1 Argon -v4.4.2 Argon -v4.4.3 Argon -v4.4.4 Argon -v4.4.5 Argon -v4.4.6 Argon -v4.4.7 Argon -v4.5.0 Argon -v4.6.0 Argon -v4.6.1 Argon -v4.6.2 Argon -v4.7.0 Argon -v4.7.1 Argon -v4.7.2 Argon -v4.7.3 Argon -v4.8.0 Argon -v4.8.1 Argon -v4.8.2 Argon -v4.8.3 Argon -v4.8.4 Argon -v4.8.5 Argon -v4.8.6 Argon -v4.8.7 Argon -v4.9.0 Argon -v4.9.1 Argon -v5.0.0 -v5.1.0 -v5.1.1 -v5.2.0 -v5.3.0 -v5.4.0 -v5.4.1 -v5.5.0 -v5.6.0 -v5.7.0 -v5.7.1 -v5.8.0 -v5.9.0 -v5.9.1 -v5.10.0 -v5.10.1 -v5.11.0 -v5.11.1 -v5.12.0 -v6.0.0 -v6.1.0 -v6.2.0 -v6.2.1 -v6.2.2 -v6.3.0 -v6.3.1 -v6.4.0 -v6.5.0 -v6.6.0 -v6.7.0 -v6.8.0 -v6.8.1 -v6.9.0 Boron -v6.9.1 Boron -v6.9.2 Boron -v6.9.3 Boron -v6.9.4 Boron -v6.9.5 Boron -v6.10.0 Boron -v6.10.1 Boron -v6.10.2 Boron -v6.10.3 Boron -v6.11.0 Boron -v6.11.1 Boron -v6.11.2 Boron -v6.11.3 Boron -v6.11.4 Boron -v6.11.5 Boron -v6.12.0 Boron -v6.12.1 Boron -v6.12.2 Boron -v6.12.3 Boron -v6.13.0 Boron -v6.13.1 Boron -v6.14.0 Boron -v6.14.1 Boron -v7.0.0 -v7.1.0 -v7.2.0 -v7.2.1 -v7.3.0 -v7.4.0 -v7.5.0 -v7.6.0 -v7.7.0 -v7.7.1 -v7.7.2 -v7.7.3 -v7.7.4 -v7.8.0 -v7.9.0 -v7.10.0 -v7.10.1 -v8.0.0 -v8.1.0 -v8.1.1 -v8.1.2 -v8.1.3 -v8.1.4 -v8.2.0 -v8.2.1 -v8.3.0 -v8.4.0 -v8.5.0 -v8.6.0 -v8.7.0 -v8.8.0 -v8.8.1 -v8.9.0 Carbon -v8.9.1 Carbon -v8.9.2 Carbon -v8.9.3 Carbon -v8.9.4 Carbon -v8.10.0 Carbon -v8.11.0 Carbon -v8.11.1 Carbon -v9.0.0 -v9.1.0 -v9.2.0 -v9.2.1 -v9.3.0 -v9.4.0 -v9.5.0 -v9.6.0 -v9.6.1 -v9.7.0 -v9.7.1 -v9.8.0 -v9.9.0 -v9.10.0 -v9.10.1 -v9.11.0 -v9.11.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote_iojs.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote_iojs.txt deleted file mode 100644 index d263a733..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_ls_remote_iojs.txt +++ /dev/null @@ -1,41 +0,0 @@ -iojs-v1.0.0 -iojs-v1.0.1 -iojs-v1.0.2 -iojs-v1.0.3 -iojs-v1.0.4 -iojs-v1.1.0 -iojs-v1.2.0 -iojs-v1.3.0 -iojs-v1.4.1 -iojs-v1.4.2 -iojs-v1.4.3 -iojs-v1.5.0 -iojs-v1.5.1 -iojs-v1.6.0 -iojs-v1.6.1 -iojs-v1.6.2 -iojs-v1.6.3 -iojs-v1.6.4 -iojs-v1.7.1 -iojs-v1.8.1 -iojs-v1.8.2 -iojs-v1.8.3 -iojs-v1.8.4 -iojs-v2.0.0 -iojs-v2.0.1 -iojs-v2.0.2 -iojs-v2.1.0 -iojs-v2.2.0 -iojs-v2.2.1 -iojs-v2.3.0 -iojs-v2.3.1 -iojs-v2.3.2 -iojs-v2.3.3 -iojs-v2.3.4 -iojs-v2.4.0 -iojs-v2.5.0 -iojs-v3.0.0 -iojs-v3.1.0 -iojs-v3.2.0 -iojs-v3.3.0 -iojs-v3.3.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_make_alias LTS alias calls.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_make_alias LTS alias calls.txt deleted file mode 100644 index feea00ae..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_make_alias LTS alias calls.txt +++ /dev/null @@ -1,4 +0,0 @@ -lts/*|lts/carbon -lts/carbon|v8.11.1 -lts/boron|v6.14.1 -lts/argon|v4.9.1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_print_implicit_alias remote stable.txt b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_print_implicit_alias remote stable.txt deleted file mode 100644 index d4ce17d7..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/mocks/nvm_print_implicit_alias remote stable.txt +++ /dev/null @@ -1 +0,0 @@ -9.11 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/node_version_has_solaris_binary b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/node_version_has_solaris_binary deleted file mode 100755 index bb70a995..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/node_version_has_solaris_binary +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh -\. ../../common.sh - -# Invalid version numbers fail -assert_not_ok node_version_has_solaris_binary "" -assert_not_ok node_version_has_solaris_binary "foo" - -# "Invalid" node version numbers fail -assert_not_ok node_version_has_solaris_binary "v1.0.0" -assert_not_ok node_version_has_solaris_binary "v3.3.1" - -# Valid io.js version numbers that have a Solaris binary fail -assert_not_ok node_version_has_solaris_binary "iojs-v3.3.1" - -# Invalid io.js version numbers fail -assert_not_ok node_version_has_solaris_binary "iojs-v0.12.7" - -# Valid node version numbers that don't have a Solaris binary fail -assert_not_ok node_version_has_solaris_binary "v0.8.5" - -# Valid node version numbers that have a Solaris binary succeed -assert_ok node_version_has_solaris_binary "v0.8.6" -assert_ok node_version_has_solaris_binary "v0.10.0" -assert_ok node_version_has_solaris_binary "v0.12.7" - -# Valid "merged" version numbers fail, because they're not -# considered node version numbers -assert_not_ok node_version_has_solaris_binary "v4.0.0" -assert_not_ok node_version_has_solaris_binary "v4.1.1" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm ls-remote b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm ls-remote deleted file mode 100755 index 074cfe22..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm ls-remote +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_download nvm_ls_remote nvm_ls_remote_iojs -} - -\. ../../../nvm.sh - -nvm deactivate 2>/dev/null || die 'unable to deactivate' - -\. ../../common.sh - -REMOTE="$PWD/mocks/nvm_ls_remote.txt" -nvm_ls_remote() { - cat "$REMOTE" -} -REMOTE_IOJS="$PWD/mocks/nvm_ls_remote_iojs.txt" -nvm_ls_remote_iojs() { - cat "$REMOTE_IOJS" -} - -EXPECTED_OUTPUT_PATH="$PWD/mocks/nvm ls-remote.txt" - -OUTPUT="$(nvm ls-remote | sed 's/[ \t]*$//')" -EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH" | sed 's/[ \t]*$//' )" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "bare nvm ls-remote did not output expected sorted versions; got $(echo ">$OUTPUT<") expected $(echo ">$EXPECTED_OUTPUT<")" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm version-remote b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm version-remote deleted file mode 100755 index 6a3beebf..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm version-remote +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_remote_version -} - -\. ../../../nvm.sh - -\. ../../common.sh - -nvm_remote_version() { - echo "NVM_VERSION_ONLY:${NVM_VERSION_ONLY-},NVM_LTS:${NVM_LTS-},PATTERN:${PATTERN-}" -} - -OUTPUT="$(nvm version-remote foo)" -EXPECTED_OUTPUT='NVM_VERSION_ONLY:true,NVM_LTS:,PATTERN:foo' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote foo\` called nvm_remote_version with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -OUTPUT="$(nvm version-remote --lts foo)" -EXPECTED_OUTPUT='NVM_VERSION_ONLY:true,NVM_LTS:*,PATTERN:foo' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote --lts foo\` called nvm_remote_version with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -OUTPUT="$(nvm version-remote foo --lts)" -EXPECTED_OUTPUT='NVM_VERSION_ONLY:true,NVM_LTS:*,PATTERN:foo' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote foo --lts\` called nvm_remote_version with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -OUTPUT="$(nvm version-remote --lts=argon foo)" -EXPECTED_OUTPUT='NVM_VERSION_ONLY:true,NVM_LTS:argon,PATTERN:foo' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote --lts=argon foo\` called nvm_remote_version with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -OUTPUT="$(nvm version-remote lts/foo)" -EXPECTED_OUTPUT='NVM_VERSION_ONLY:true,NVM_LTS:foo,PATTERN:' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote lts/foo\` called nvm_remote_version with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -OUTPUT="$(nvm version-remote 'lts/*')" -EXPECTED_OUTPUT='NVM_VERSION_ONLY:true,NVM_LTS:*,PATTERN:' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote lts/*\` called nvm_remote_version with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -set +ex # needed for stderr -OUTPUT="$(nvm version-remote --foo bar 2>&1)" -set -ex -EXPECTED_OUTPUT='Unsupported option "--foo".' -EXIT_CODE="$(nvm version-remote --foo bar >/dev/null 2>&1 && echo $? || echo $?)" -[ "${EXIT_CODE}" = 55 ] || die "\`nvm version-remote --foo bar\` did not exit with code 55, got >${EXIT_CODE}<" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm version-remote --foo bar\` errored with >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_add_iojs_prefix b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_add_iojs_prefix deleted file mode 100755 index f947118a..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_add_iojs_prefix +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "_$(nvm_add_iojs_prefix 1)" = "_iojs-v1" ] || die '"nvm_add_iojs_prefix 1" did not return "iojs-v1"' -[ "_$(nvm_add_iojs_prefix iojs-1)" = "_iojs-v1" ] || die '"nvm_add_iojs_prefix iojs-1" did not return "iojs-v1"' -[ "_$(nvm_add_iojs_prefix iojs-1.2.3)" = "_iojs-v1.2.3" ] || die '"nvm_add_iojs_prefix iojs-1.2.3" did not return "iojs-v1.2.3"' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias deleted file mode 100755 index 49cac2dd..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup () { - rm -rf ../../../alias/test -} - -\. ../../../nvm.sh - -OUTPUT="$(nvm_alias 2>&1)" -EXPECTED_OUTPUT='An alias is required.' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_alias' produced wrong output; got $OUTPUT" - -EXIT_CODE="$(nvm_alias >/dev/null 2>&1 ; echo $?)" -[ "_$EXIT_CODE" = "_1" ] || die "'nvm_alias' exited with $EXIT_CODE, expected 1" - -rm -rf ../../../alias/nonexistent - -OUTPUT="$(nvm_alias nonexistent 2>&1)" -EXPECTED_OUTPUT='Alias does not exist.' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_alias nonexistent' produced wrong output; got $OUTPUT" - -EXIT_CODE="$(nvm_alias nonexistent >/dev/null 2>&1 ; echo $?)" -[ "_$EXIT_CODE" = "_2" ] || die "'nvm_alias nonexistent' exited with $EXIT_CODE, expected 2" - -EXPECTED_OUTPUT="0.10" -nvm alias test "$EXPECTED_OUTPUT" || die "'nvm alias test $EXPECTED_OUTPUT' failed" -OUTPUT="$(nvm_alias test)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_alias test' produced wrong output; got $OUTPUT" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias_path b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias_path deleted file mode 100755 index fe304af0..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_alias_path +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "_$(nvm_alias_path)" = "_$NVM_DIR/alias" ] || die "nvm_alias_path did not return correct location" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_change_path b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_change_path deleted file mode 100755 index 621729f6..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_change_path +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -TEST_PATH=/usr/bin:/usr/local/bin - -# New version dir -NEW_PATH=`nvm_change_path "$TEST_PATH" "/bin" "$NVM_DIR/versions/node/v7.1.0"` - -[ "$NEW_PATH" = "$NVM_DIR/versions/node/v7.1.0/bin:/usr/bin:/usr/local/bin" ] || die "Not correctly changed: $NEW_PATH " - -# Old version dir -NEW_PATH=`nvm_change_path "$TEST_PATH" "/bin" "$NVM_DIR/v0.1.2"` - -[ "$NEW_PATH" = "$NVM_DIR/v0.1.2/bin:/usr/bin:/usr/local/bin" ] || die "Not correctly changed: $NEW_PATH " - - -TEST_PATH=/home/user/code/test/node_modules/.bin:$NVM_DIR/versions/node/v4.5.0/bin:/usr/bin:/usr/local/bin - -# New version dir -NEW_PATH=`nvm_change_path "$TEST_PATH" "/bin" "$NVM_DIR/versions/node/v7.1.0"` - -[ "$NEW_PATH" = "/home/user/code/test/node_modules/.bin:$NVM_DIR/versions/node/v7.1.0/bin:/usr/bin:/usr/local/bin" ] || die "Not correctly changed: $NEW_PATH " - -# Old version dir -NEW_PATH=`nvm_change_path "$TEST_PATH" "/bin" "$NVM_DIR/v0.1.2"` - -[ "$NEW_PATH" = "/home/user/code/test/node_modules/.bin:$NVM_DIR/v0.1.2/bin:/usr/bin:/usr/local/bin" ] || die "Not correctly changed: $NEW_PATH " - - -EMPTY_PATH= - -# New version dir -NEW_PATH=`nvm_change_path "$EMPTY_PATH" "/bin" "$NVM_DIR/versions/node/v7.1.0"` - -[ "$NEW_PATH" = "$NVM_DIR/versions/node/v7.1.0/bin" ] || die "Not correctly prepended: $NEW_PATH " - -# Old version dir -NEW_PATH=`nvm_change_path "$EMPTY_PATH" "/bin" "$NVM_DIR/v0.1.2"` - -[ "$NEW_PATH" = "$NVM_DIR/v0.1.2/bin" ] || die "Not correctly prepended: $NEW_PATH " diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_checksum b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_checksum deleted file mode 100755 index 4103af17..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_checksum +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -cleanup () { - rm tmp/emptyfile tmp/testfile - rmdir tmp -} -die () { echo "$@" ; cleanup; exit 1; } - -\. ../../../nvm.sh - -mkdir -p tmp -touch tmp/emptyfile -echo -n "test" > tmp/testfile - -nvm_checksum tmp/emptyfile "da39a3ee5e6b4b0d3255bfef95601890afd80709" || die "nvm_checksum on an empty file did not match the SHA1 digest of the empty string" -nvm_checksum tmp/testfile "da39a3ee5e6b4b0d3255bfef95601890afd80709" && die "nvm_checksum allowed a bad checksum" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_clang_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_clang_version deleted file mode 100755 index dda1dad4..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_clang_version +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f die -} - -die () { echo -e "$@" ; cleanup ; exit 1; } - -if type "clang" > /dev/null 2>&1 ; then - clang_exec="$(type "clang")" - sudo rm -rf "${clang_exec}" -fi -if type "clang++" > /dev/null 2>&1 ; then - clangxx_exec="$(type "clang++")" - sudo rm -rf "${clangxx_exec}" -fi - -NVM_ENV=testing \. ../../../nvm.sh - -clang() { - if [ "$1" = "--version" ]; then - echo "${VERSION_MESSAGE}" - fi -} - -assert_version_is() { - if [ "${1}" != "${2}" ]; then - die "Expected ${2}, got ${1}, origin version message:\n${VERSION_MESSAGE}" - return 1 - fi -} - -CLANG_VERSION_ON_DEBIAN_JESSIE="Debian clang version 3.5.0-10 (tags/RELEASE_350/final) (based on LLVM 3.5.0) -Target: x86_64-pc-linux-gnu -Thread model: posix" - -CLANG_VERSION_ON_UBUNTU_TRUSTY="Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) -Target: x86_64-pc-linux-gnu -Thread model: posix" - -CLANG_VERSION_ON_ARCHLINUX="clang version 3.9.0 (tags/RELEASE_390/final) -Target: x86_64-unknown-linux-gnu -Thread model: posix -InstalledDir: /usr/sbin" - -CLANG_VERSION_ON_FREEBSD="FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 -Target: x86_64-unknown-freebsd10.3 -Thread model: posix" - -VERSION_MESSAGE="${CLANG_VERSION_ON_DEBIAN_JESSIE}" -assert_version_is "$(nvm_clang_version)" "3.5.0" - -VERSION_MESSAGE="${CLANG_VERSION_ON_UBUNTU_TRUSTY}" -assert_version_is "$(nvm_clang_version)" "3.4" - -VERSION_MESSAGE="${CLANG_VERSION_ON_ARCHLINUX}" -assert_version_is "$(nvm_clang_version)" "3.9.0" - -VERSION_MESSAGE="${CLANG_VERSION_ON_FREEBSD}" -assert_version_is "$(nvm_clang_version)" "3.4.1" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_command_info b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_command_info deleted file mode 100755 index a2f813a4..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_command_info +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -cleanup() { - unalias wget - unset -f wget - unset WGET_EXPECTED_INFO WGET_COMMAND_INFO -} - -die() { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - - -# 1. test wget command -WGET_COMMAND_INFO="$(nvm_command_info wget)" -WGET_EXPECTED_INFO="$(which wget)" -[ "${WGET_COMMAND_INFO}" = "${WGET_EXPECTED_INFO}" ] || die "wget command info wrong(stage 1), expected: '${WGET_EXPECTED_INFO}', got '${WGET_COMMAND_INFO}'" - -cleanup - -# 2. test aliased wget -shopt -s expand_aliases -# enable expand_aliases to make alias working in interactive shell -alias wget="wget -V" -WGET_COMMAND_INFO="$(nvm_command_info wget)" -WGET_EXPECTED_INFO="$(which wget) (wget -V)" -[ "${WGET_COMMAND_INFO}" = "${WGET_EXPECTED_INFO}" ] || die "wget command info wrong(stage 2), expected: '${WGET_EXPECTED_INFO}', got '${WGET_COMMAND_INFO}'" - -cleanup - -# 3. test wget function -wget() { - echo "wget function" -} - -WGET_COMMAND_INFO="$(nvm_command_info wget)" -WGET_EXPECTED_INFO="$(type wget)" -[ "${WGET_COMMAND_INFO}" = "${WGET_EXPECTED_INFO}" ] || die "wget command info wrong(stage 3), expected: '${WGET_EXPECTED_INFO}', got '${WGET_COMMAND_INFO}'" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compare_checksum b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compare_checksum deleted file mode 100755 index c14aee43..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compare_checksum +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f nvm_compute_checksum -} -die () { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - -set -ex - -nvm_compute_checksum() { - echo -} - -set +x -OUTPUT="$(nvm_compare_checksum 2>&1 >/dev/null || echo)" -EXIT_CODE="$(nvm_compare_checksum >/dev/null 2>&1 || echo $?)" -set -x -EXPECTED_OUTPUT='Provided file to checksum is empty.' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 4 ] || die "expected to exit with code 4, got ${EXIT_CODE}" - -set +x -OUTPUT="$(nvm_compare_checksum foo 2>&1 >/dev/null || echo)" -EXIT_CODE="$(nvm_compare_checksum foo >/dev/null 2>&1 || echo $?)" -set -x -EXPECTED_OUTPUT='Provided file to checksum does not exist.' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 3 ] || die "expected to exit with code 3, got ${EXIT_CODE}" - -set +x -OUTPUT="$(nvm_compare_checksum ../../../nvm.sh 2>&1 >/dev/null || echo)" -EXIT_CODE="$(nvm_compare_checksum ../../../nvm.sh >/dev/null 2>&1 || echo $?)" -set -x -EXPECTED_OUTPUT='Provided checksum to compare to is empty.' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 2 ] || die "expected to exit with code 2, got ${EXIT_CODE}" - -set +x -OUTPUT="$(nvm_compare_checksum ../../../nvm.sh checksum 2>&1 >/dev/null)" -EXIT_CODE="$(nvm_compare_checksum ../../../nvm.sh checksum >/dev/null 2>&1 ; echo $?)" -set -x -EXPECTED_OUTPUT="Computed checksum of '../../../nvm.sh' is empty. -WARNING: Continuing *without checksum verification*" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 0 ] || die "expected to exit with code 0, got ${EXIT_CODE}" - -nvm_compute_checksum() { - echo "not checksum: ${1}" -} - -set +x -OUTPUT="$(nvm_compare_checksum ../../../nvm.sh checksum 2>&1 >/dev/null || echo)" -EXIT_CODE="$(nvm_compare_checksum ../../../nvm.sh checksum >/dev/null 2>&1 || echo $?)" -set -x -EXPECTED_OUTPUT="Checksums do not match: 'not checksum: ../../../nvm.sh' found, 'checksum' expected." -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 1 ] || die "expected to exit with code 1, got ${EXIT_CODE}" - -nvm_compute_checksum() { - echo checksum -} -set +x -OUTPUT="$(nvm_compare_checksum ../../../nvm.sh checksum 2>&1 >/dev/null)" -EXIT_CODE="$(nvm_compare_checksum ../../../nvm.sh checksum >/dev/null 2>&1; echo $?)" -set -x -EXPECTED_OUTPUT='Checksums matched!' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 0 ] || die "expected to exit with code 0, got ${EXIT_CODE}" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compute_checksum b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compute_checksum deleted file mode 100755 index 6b52eb9c..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_compute_checksum +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -set +x -OUTPUT="$(nvm_compute_checksum 2>&1 >/dev/null || echo)" -EXIT_CODE="$(nvm_compute_checksum >/dev/null 2>&1 || echo $?)" -set -x -EXPECTED_OUTPUT='Provided file to checksum is empty.' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 2 ] || die "expected to exit with code 2, got ${EXIT_CODE}" - -set +x -OUTPUT="$(nvm_compute_checksum foo 2>&1 >/dev/null || echo)" -EXIT_CODE="$(nvm_compute_checksum foo >/dev/null 2>&1 || echo $?)" -set -x -EXPECTED_OUTPUT='Provided file to checksum does not exist.' -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 1 ] || die "expected to exit with code 1, got ${EXIT_CODE}" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_libz_support b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_libz_support deleted file mode 100755 index 34602be8..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_libz_support +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -cleanup() { - unset -f curl -} - -die() { cleanup; echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -curl() { - # curl with libz feature - if [ $# -ne 1 ] || [ "$1" != "-V" ]; then - die "This fake curl only takes one parameter -V" - fi - echo " -curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3 -Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp -Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets" -} - -nvm_curl_libz_support || die "nvm_curl_libz_support should return 0" - -unset -f curl - -curl() { - # curl without libz feature - if [ "$#" -ne 1 ] || [ "$1" != "-V" ]; then - die "This fake curl only takes one parameter -V" - fi - echo " -curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.32 -Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp -Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL TLS-SRP UnixSockets" -} - -! nvm_curl_libz_support || die "nvm_curl_libz_support should return 1" - -unset -f curl diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_use_compression b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_use_compression deleted file mode 100755 index e2638641..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_use_compression +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f die -} - -die () { echo -e "$@" ; cleanup ; exit 1; } - -NVM_ENV=testing \. ../../../nvm.sh - -curl() { - if [ "$1" = "-V" ]; then - echo "${VERSION_MESSAGE}" - fi -} - -CURL_VERSION_ON_ARCHLINUX_WITH_LIBZ="curl 7.54.0 (x86_64-pc-linux-gnu) libcurl/7.54.0 OpenSSL/1.1.0f zlib/1.2.11 libpsl/0.17.0 (+libicu/59.1) libssh2/1.8.0 nghttp2/1.22.0 -Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp -Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL" - -CURL_VERSION_ON_ARCHLINUX_WITHOUT_LIBZ="curl 7.54.0 (x86_64-pc-linux-gnu) libcurl/7.54.0 OpenSSL/1.1.0f zlib/1.2.11 libpsl/0.17.0 (+libicu/59.1) libssh2/1.8.0 nghttp2/1.22.0 -Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp -Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL" - -CURL_VERSION_ON_CENTOS6_WITH_LIBZ="curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 -Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp -Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz" - -VERSION_MESSAGE="${CURL_VERSION_ON_ARCHLINUX_WITH_LIBZ}" -nvm_curl_use_compression || die "nvm_curl_use_compression should return 0" - -VERSION_MESSAGE="${CURL_VERSION_ON_ARCHLINUX_WITHOUT_LIBZ}" -! nvm_curl_use_compression || die "nvm_curl_use_compression should return 1 without libz support" - -VERSION_MESSAGE="${CURL_VERSION_ON_CENTOS6_WITH_LIBZ}" -! nvm_curl_use_compression || die "nvm_curl_use_compression should return 1 when curl < 7.21.0" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_version deleted file mode 100755 index d61014ee..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_curl_version +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f die - unset -f curl -} - -die () { echo -e "$@" ; cleanup ; exit 1; } - -NVM_ENV=testing \. ../../../nvm.sh - -curl() { - if [ "$1" = "-V" ]; then - echo "${VERSION_MESSAGE}" - fi -} - -assert_version_is() { - if [ "${1}" != "${2}" ]; then - die "Expected ${2}, got ${1}, origin version message:\n${VERSION_MESSAGE}" - return 1 - fi -} - -CURL_VERSION_MESSAGE="curl 7.54.0 (x86_64-pc-linux-gnu) libcurl/7.54.0 OpenSSL/1.1.0f zlib/1.2.11 libpsl/0.17.0 (+libicu/59.1) libssh2/1.8.0 nghttp2/1.22.0 -Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp -Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL" - -VERSION_MESSAGE="${CURL_VERSION_MESSAGE}" -assert_version_is "$(nvm_curl_version)" "7.54.0" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_default_packages b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_default_packages deleted file mode 100755 index 0ae318d1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_default_packages +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/sh - -FILE="$NVM_DIR/default-packages" - -die () { echo "$@" ; cleanup ; exit 1; } -setup () { - if [ -f $FILE ]; then - ORIG_DEFAULT_PACKAGES=$(cat $FILE) - mkdir ./tmp/ ||: - mv $FILE ./tmp/default-packages ||: - fi - touch $FILE -} -cleanup () { - rm -rf "$(nvm_version_path v6.10.1)" $FILE - if [ "$ORIG_DEFAULT_PACKAGES" != "" ]; then - rm -rf ./tmp/ - echo "$ORIG_DEFAULT_PACKAGES" > $FILE - fi -} - -setup - -\. ../../../nvm.sh - -cat > $FILE << EOF -rimraf -object-inspect@1.0.2 - -# commented-package - -stevemao/left-pad -EOF - -nvm install v6.10.1 2>&1 -EXIT_CODE=$? -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm install v6.10.1' to exit with 0, got $EXIT_CODE" - -nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'rimraf' -if [ -z "$?" ]; then - die "expected 'nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'rimraf'' to exit with 0, got $?" -fi - -cleanup - -setup - -\. ../../../nvm.sh - -cat > $FILE << EOF -rimraf -object-inspect@1.0.2 - -# commented-package - -stevemao/left-pad -EOF - -nvm install v6.10.1 --skip-default-packages 2>&1 -EXIT_CODE=$? -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm install v6.10.1' to exit with 0, got $EXIT_CODE" - -if nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'rimraf'; then - die "expected 'nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'rimraf'' to be empty" -fi - -cleanup - -setup - -cat > $FILE << EOF -not~a~package~name -EOF - -nvm install v6.10.1 -EXIT_CODE=$? -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm install v6.10.1' to exit with 0, got $EXIT_CODE" - -if nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'not~a~package~name'; then - die "expected 'nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'not~a~package~name'' to exit with 1, got $?" -fi - -cleanup - -setup - -cat > $FILE << EOF -object-inspect @ 1.0.2 -EOF - -nvm install v6.10.1 2>&1 -EXIT_CODE=$? -[ "_$EXIT_CODE" = "_1" ] || die "expected 'nvm install v6.10.1' to exit with 1, got $EXIT_CODE" - -if nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'object-inspect'; then - die "expected 'nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'object-inspect'' to exit with 1, got $?" -fi - -cleanup - -setup - -rm -rf $FILE - -nvm install v6.10.1 2>&1 -EXIT_CODE=$? -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm install v6.10.1' to exit with 0, got $EXIT_CODE" - -if nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'object-inspect'; then - die "expected 'nvm exec v6.10.1 npm ls -g --depth=0 | grep -q 'object-inspect'' to exit with 1, got $?" -fi - -touch $FILE - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_die_on_prefix b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_die_on_prefix deleted file mode 100755 index 7429cb80..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_die_on_prefix +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh - -cleanup () { - alias nvm_has='\nvm_has' - alias npm='\npm' - unset -f nvm_has npm -} -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -OUTPUT="$(nvm_die_on_prefix 2>&1)" -EXPECTED_OUTPUT="First argument \"delete the prefix\" must be zero or one" -EXIT_CODE="$(nvm_die_on_prefix >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_die_on_prefix' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_1" ] || die "'nvm_die_on_prefix' did not exit with 1; got "$EXIT_CODE"" - -OUTPUT="$(nvm_die_on_prefix 2 2>&1)" -EXPECTED_OUTPUT="First argument \"delete the prefix\" must be zero or one" -EXIT_CODE="$(nvm_die_on_prefix 2 >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_die_on_prefix 2' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_1" ] || die "'nvm_die_on_prefix' did not exit with 1; got "$EXIT_CODE"" - -OUTPUT="$(nvm_die_on_prefix 0 2>&1)" -EXPECTED_OUTPUT="Second argument \"nvm command\" must be nonempty" -EXIT_CODE="$(nvm_die_on_prefix 0 >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_die_on_prefix 0' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_2" ] || die "'nvm_die_on_prefix 0' did not exit with 2; got '$EXIT_CODE'" - -nvm_has() { return 1; } # ie, npm is not installed -OUTPUT="$(nvm_die_on_prefix 0 foo 2>&1)" -[ -z "$OUTPUT" ] || die "nvm_die_on_prefix was not a noop when nvm_has returns 1, got '$OUTPUT'" - -nvm_has() { return 0; } - -npm() { - local args - args="$@" - if [ "_$args" = "_config --loglevel=warn get prefix" ]; then - echo "$(nvm_version_dir new)/good prefix" - fi -} -OUTPUT="$(nvm_die_on_prefix 0 foo 2>&1)" -[ -z "$OUTPUT" ] || die "'nvm_die_on_prefix' was not a noop when prefix is good; got '$OUTPUT'" - -OUTPUT="$(PREFIX=bar nvm_die_on_prefix 0 foo 2>&1)" -EXPECTED_OUTPUT='nvm is not compatible with the "PREFIX" environment variable: currently set to "bar" -Run `unset PREFIX` to unset it.' -EXIT_CODE="$(export PREFIX=bar ; nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_3" ] || die "'PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 3; got '$EXIT_CODE'" - -OUTPUT="$(export NPM_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo 2>&1)" -EXPECTED_OUTPUT='nvm is not compatible with the "NPM_CONFIG_PREFIX" environment variable: currently set to "bar" -Run `unset NPM_CONFIG_PREFIX` to unset it.' -EXIT_CODE="$(export NPM_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_4" ] || die "'NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 4; got '$EXIT_CODE'" - -OUTPUT="$(export npm_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo 2>&1)" -EXPECTED_OUTPUT='nvm is not compatible with the "npm_CONFIG_PREFIX" environment variable: currently set to "bar" -Run `unset npm_CONFIG_PREFIX` to unset it.' -EXIT_CODE="$(export npm_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'npm_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_4" ] || die "'npm_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 4; got '$EXIT_CODE'" - -npm() { - local args - args="$@" - if [ "_$args" = "_config --loglevel=warn get prefix" ]; then - echo "./bad prefix" - fi -} -OUTPUT="$(nvm_die_on_prefix 0 foo 2>&1)" -EXPECTED_OUTPUT="nvm is not compatible with the npm config \"prefix\" option: currently set to \"./bad prefix\" -Run \`npm config delete prefix\` or \`foo\` to unset it." -EXIT_CODE="$(nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT' with bad prefix set; got '$OUTPUT'" -[ "_$EXIT_CODE" = "_10" ] || die "'nvm_die_on_prefix 0 foo' did not exit with 10 with bad prefix set; got '$EXIT_CODE'" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_default_set b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_default_set deleted file mode 100755 index 14b53ebe..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_default_set +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -\. ../../common.sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -EXPECTED_OUTPUT="nvm_ensure_default_set: a version is required" -OUTPUT="$(nvm_ensure_default_set 2>&1 >/dev/null)" -EXIT_CODE="$?" -[ "_$(echo "$OUTPUT" | strip_colors)" = "_$EXPECTED_OUTPUT" ] || die "'nvm_ensure_default_set' did not output "$EXPECTED_OUTPUT", got "$OUTPUT"" -[ "_$EXIT_CODE" = "_1" ] || die "'nvm_ensure_default_set' did not exit with 1, got "$EXIT_CODE"" - -# see test/fast/Aliases for remaining nvm_ensure_default_set tests diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_installed b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_installed deleted file mode 100755 index e8196576..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_installed +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } -cleanup () { - rm -rf "$(nvm_version_path v0.1.2)" - unset -f nvm_has_system_node nvm_has_system_iojs -} - -\. ../../../nvm.sh - -mkdir -p "$(nvm_version_path v0.1.2)" - -OUTPUT="$(nvm_ensure_version_installed foo 2>&1)" -EXIT_CODE=$? -EXPECTED_OUTPUT='N/A: version "foo" is not yet installed. - -You need to run "nvm install foo" to install it before using it.' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "expected 'nvm_ensure_version_installed foo' to give $EXPECTED_OUTPUT, got $OUTPUT" -[ "_$EXIT_CODE" = "_1" ] || die "expected 'nvm_ensure_version_installed foo' to exit with 1, got $EXIT_CODE" - -OUTPUT="$(nvm_ensure_version_installed 0.1)" -EXIT_CODE=$? -[ "_$OUTPUT" = "_" ] || die "expected 'nvm_ensure_version_installed 0.1' to have no output, got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm_ensure_version_installed 0.1' to exit with 0, got $EXIT_CODE" - -# Special case for "iojs" -OUTPUT="$(nvm_ensure_version_installed iojs 2>&1)" -EXIT_CODE=$? -EXPECTED_OUTPUT='N/A: version "iojs" is not yet installed. - -You need to run "nvm install iojs" to install it before using it.' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "expected 'nvm_ensure_version_installed iojs' to give $EXPECTED_OUTPUT, got $OUTPUT" -[ "_$EXIT_CODE" = "_1" ] || die "expected 'nvm_ensure_version_installed iojs' to exit with 1, got $EXIT_CODE" - -nvm_has_system_node() { return 1; } -nvm_has_system_iojs() { return 1; } - -OUTPUT="$(nvm_ensure_version_installed system 2>&1)" -EXIT_CODE=$? -EXPECTED_OUTPUT='N/A: no system version of node/io.js is installed.' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "expected 'nvm_ensure_version_installed system' with neither installed to give $EXPECTED_OUTPUT, got $OUTPUT" -[ "_$EXIT_CODE" = "_1" ] || die "expected 'nvm_ensure_version_installed system' with neither installed to exit with 1, got $EXIT_CODE" - -nvm_has_system_node() { return 0; } -nvm_has_system_iojs() { return 1; } - -OUTPUT="$(nvm_ensure_version_installed system 2>&1)" -EXIT_CODE=$? -EXPECTED_OUTPUT='' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "expected 'nvm_ensure_version_installed system' with node installed to give $EXPECTED_OUTPUT, got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm_ensure_version_installed system' with node installed to exit with 0, got $EXIT_CODE" - -nvm_has_system_node() { return 1; } -nvm_has_system_iojs() { return 0; } - -OUTPUT="$(nvm_ensure_version_installed system 2>&1)" -EXIT_CODE=$? -EXPECTED_OUTPUT='' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "expected 'nvm_ensure_version_installed system' with iojs installed to give $EXPECTED_OUTPUT, got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm_ensure_version_installed system' with iojs installed to exit with 0, got $EXIT_CODE" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_prefix b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_prefix deleted file mode 100755 index b54ea025..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ensure_version_prefix +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "_$(nvm_ensure_version_prefix 1)" = "_v1" ] || die '"nvm_ensure_version_prefix 1" did not return "v1"' -[ "_$(nvm_ensure_version_prefix v1)" = "_v1" ] || die '"nvm_ensure_version_prefix v1" did not return "v1"' -[ "_$(nvm_ensure_version_prefix foo)" = "_foo" ] || die '"nvm_ensure_version_prefix foo" did not return "foo"' - -[ "_$(nvm_ensure_version_prefix iojs-1)" = "_iojs-v1" ] || die '"nvm_ensure_version_prefix iojs-1" did not return "iojs-v1"' -[ "_$(nvm_ensure_version_prefix iojs-v1)" = "_iojs-v1" ] || die '"nvm_ensure_version_prefix iojs-v1" did not return "iojs-v1"' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_find_up b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_find_up deleted file mode 100755 index 29c4e424..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_find_up +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } -setup() { - cleanup - mkdir -p tmp_nvm_find_up/a/b/c/d - touch tmp_nvm_find_up/test - touch tmp_nvm_find_up/a/b/c/test -} -cleanup () { - rm -rf tmp_nvm_find_up -} - -\. ../../../nvm.sh - -setup - -TEST_DIR="$PWD" - -[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up" ] || die "failed to find 1 dir up" -[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up" ] || die "failed to find 2 dirs up" -[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find in current dir" -[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c/d nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find 1 level up from current dir" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_format_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_format_version deleted file mode 100755 index 98541fe6..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_format_version +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -INPUT="0.1.2" -OUTPUT="$(nvm_format_version "$INPUT")" -EXPECTED_OUTPUT="v0.1.2" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_format_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT" - -INPUT="0.1" -OUTPUT="$(nvm_format_version "$INPUT")" -EXPECTED_OUTPUT="v0.1.0" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_format_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT" - -INPUT="1.2.3.4.5" -OUTPUT="$(nvm_format_version "$INPUT")" -EXPECTED_OUTPUT="v1.2.3" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_format_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_arch b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_arch deleted file mode 100755 index f064203e..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_arch +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/sh - -# Save the PATH as it was when the test started to restore it when it -# finishes -ORIG_PATH=$PATH - -cleanup() { - # Restore the PATH as it was when the test started - export PATH=ORIG_PATH -} - -die () { cleanup; echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -# Directory where mocked binaries used by nvm_get_arch for each OS/arch are -# located -MOCKS_DIR=`pwd`/../../mocks -# Sets the PATH for these tests to include the symlinks to the mocked -# binaries -export PATH=.:${PATH} - -# Setups mock binaries for a given OS and arch that mimic -# the output of the real binaries used by nvm_get_arch to guess -# the architecture of a given system. -setup_mock_arch() { - local OS=$1 - local ARCH=$2 - local OPT=$3 - - if [ "_$OS" = "_solaris" ] || [ "_$OS" = "_smartos" ]; then - ln -sf "${MOCKS_DIR}/isainfo_${ARCH}" ./isainfo - if [ "_$OPT" != "_no_pkg_info" ]; then - ln -sf "${MOCKS_DIR}/pkg_info_${ARCH}" ./pkg_info - else - ln -sf "${MOCKS_DIR}/pkg_info_fail" ./pkg_info - fi - fi - - ln -sf "${MOCKS_DIR}/uname_${OS}_${ARCH}" ./uname -} - -# Cleans up the setup done by setup_mock_arch. -cleanup_mock_arch() { - local OS=$1 - local ARCH=$2 - - if [ "_$OS" = "_solaris" ] || [ "_$OS" = "_smartos" ]; then - rm -f ./isainfo - rm -f ./pkg_info - fi - - rm -f ./uname -} - -# Runs nvm_get_arch for architecture $ARCH and OS $OS, and compares the -# expected output $EXPECTED_OUTPUT with the actual output. Does nothing -# and exits cleanly if they match, dies otherwise. -run_test() { - local ARCH=$1 - local OS=$2 - local EXPECTED_OUTPUT=$3 - local OPT=$4 - - setup_mock_arch $OS $ARCH $OPT - local OUTPUT="$(nvm_get_arch)" - cleanup_mock_arch $OS $ARCH - [ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || - die "nvm_get_arch for OS \"$OS\" and arch \"$ARCH\" with OPT \"$OPT\" did - not return \"$EXPECTED_OUTPUT\"; got \"$OUTPUT\"" -} - -run_test x86 smartos x86 -run_test x86 smartos x86 no_pkg_info - -run_test amd64 smartos x64 -run_test amd64 smartos x64 no_pkg_info - -run_test x86 osx x86 -run_test amd64 osx x64 - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum deleted file mode 100755 index 53e6839b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -ex - -cleanup () { - unset -f nvm_download nvm_get_checksum_alg nvm_get_mirror -} -die () { echo "$@" ; cleanup ; exit 1; } - -set +e # TODO: fix -\. ../../../nvm.sh -set -e - -nvm_get_mirror() { - echo "mirror-${1}-${2}" -} - -set +ex # needed to capture error output -OUTPUT="$(nvm_get_checksum 2>&1 >/dev/null)" -EXPECTED_OUTPUT='supported flavors: node, iojs' -EXIT_CODE="$(nvm_get_checksum >/dev/null 2>&1 ; echo $?)" -set -ex -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected error output >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" -[ "${EXIT_CODE}" = 2 ] || die "expected exit code 2, got ${EXIT_CODE}" - -nvm_download() { - echo "ERROR_FAILED_MATCH no_match more fields" - echo "${3} bar.tar.baz more fields" -} - -nvm_get_checksum_alg() { - echo 'sha-256' -} -OUTPUT="$(nvm_get_checksum node std foo bar baz)" -EXPECTED_OUTPUT="mirror-node-std/foo/SHASUMS256.txt" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" - -nvm_get_checksum_alg() { - echo 'sha-1' -} -OUTPUT="$(nvm_get_checksum iojs std foo bar baz)" -EXPECTED_OUTPUT="mirror-iojs-std/foo/SHASUMS.txt" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum_alg b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum_alg deleted file mode 100755 index 1869437d..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_checksum_alg +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -set +e # TODO: fix -\. ../../../nvm.sh -set -e - -ALG="$(nvm_get_checksum_alg)" - -case "$ALG" in - 'sha-256' | 'sha-1') - echo 'sha-256 or sha-1 found' - ;; - *) - die "sha-256 or sha-1 not found: found ${ALG}" - ;; -esac diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_latest missing curl or wget b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_latest missing curl or wget deleted file mode 100755 index 2c9b1da9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_latest missing curl or wget +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_has -} - -\. ../../../nvm.sh - -nvm_has() { return 1 ; } - -OUTPUT="$(nvm_get_latest 2>&1)" -EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_nvm needs curl or wget to proceed." ] \ - || die "no curl/wget did not report correct error message, got '$OUTPUT'" -[ "_$EXIT_CODE" = "_1" ] \ - || die "no curl/wget did not exit with code 1, got $EXIT_CODE" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_minor_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_minor_version deleted file mode 100755 index dbfea5d9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_minor_version +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -expect () { - INPUT="$1" - EXPECTED_OUTPUT="$2" - - OUTPUT="$(nvm_get_minor_version "$INPUT")" - [ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_get_minor_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT" - - V_OUTPUT="$(nvm_get_minor_version "v$INPUT")" - [ "_$V_OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_get_minor_version v$INPUT did not return $EXPECTED_OUTPUT; got $V_OUTPUT" -} - -fail_with () { - INPUT="$1" - EXPECTED_CODE="$2" - - EXIT_CODE="$(nvm_get_minor_version "$INPUT" >/dev/null 2>&1; echo $?)" - [ "_$EXIT_CODE" = "_$EXPECTED_CODE" ] || die "nvm_get_minor_version "$INPUT" did not fail with code "$EXPECTED_CODE"; got $EXIT_CODE" -} - -expect 1 1.0 -expect 1. 1.0 -expect 1.2 1.2 -expect 1.2. 1.2 -expect 1.2.3 1.2 -expect 1.2.3. 1.2 -expect 1.2.3.4 1.2 - -fail_with '' 1 -fail_with '.' 2 -fail_with '..' 2 -fail_with v 2 -fail_with .a 2 -fail_with .1 2 -fail_with v.1 2 -fail_with a.b 2 -fail_with 1.a 2 -fail_with a.1 2 -fail_with v1.a 2 -fail_with va.1 2 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_mirror b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_mirror deleted file mode 100755 index 8d4b1928..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_get_mirror +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -unset NVM_NODEJS_ORG_MIRROR -unset NVM_IOJS_ORG_MIRROR - -set +e # TODO: fix -\. ../../../nvm.sh -set -e - -! nvm_get_mirror || die 'unknown release type did not error' -! nvm_get_mirror node || die 'unknown release type did not error' -! nvm_get_mirror iojs || die 'unknown release type did not error' -! nvm_get_mirror node foo || die 'unknown release type did not error' -! nvm_get_mirror iojs foo || die 'unknown release type did not error' - -[ -z "$NVM_NODEJS_ORG_MIRROR" ] || die "MIRROR environment variables should not be exported" -[ -z "$NVM_IOJS_ORG_MIRROR" ] || die "MIRROR environment variables should not be exported" - -[ "$(nvm_get_mirror node std)" = "https://nodejs.org/dist" ] || die "incorrect default node-std mirror" -[ "$(nvm_get_mirror iojs std)" = "https://iojs.org/dist" ] || die "incorrect default iojs-std mirror" - -NVM_NODEJS_ORG_MIRROR="test://domain" -[ "$(nvm_get_mirror node std)" = "test://domain" ] || die "node-std mirror should respect NVM_NODEJS_ORG_MIRROR" -unset NVM_NODEJS_ORG_MIRROR - -NVM_IOJS_ORG_MIRROR="test://domain" -[ "$(nvm_get_mirror iojs std)" = "test://domain" ] || die "iojs-std mirror should respect NVM_IOJS_ORG_MIRROR" -unset NVM_IOJS_ORG_MIRROR diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has deleted file mode 100755 index 8a7d7be1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm_has cat && type cat > /dev/null || die 'nvm_has locates "cat" properly' - -[ "~$(nvm_has foobarbaz 2>&1)" = "~" ] || die "nvm_has does not suppress error output" - -! nvm_has foobarbaz && ! type foobarbaz >/dev/null 2>&1 || die "nvm_has does not return a nonzero exit code when not found" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_non_aliased b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_non_aliased deleted file mode 100755 index e42b2c68..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_non_aliased +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -cleanup () { unalias foo; unalias grep; } -die () { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - -alias foo='bar' -! nvm_has_non_aliased foo || die '"nvm_has_non_aliased foo" was not true' - -alias grep='grep' -unalias grep || die '"unalias grep" failed' -nvm_has_non_aliased grep || die '"nvm_has_non_aliased grep" with unaliased grep was not false' - -alias grep='grep' -! nvm_has_non_aliased grep || die '"nvm_is_alias grep" with aliased grep was not true' - -nvm_has_non_aliased cat && type cat > /dev/null || die 'nvm_has_non_aliased locates "cat" properly' - -[ "~$(nvm_has_non_aliased foobarbaz 2>&1)" = "~" ] || die "nvm_has_non_aliased does not suppress error output" - -! nvm_has_non_aliased foobarbaz && ! type foobarbaz >/dev/null 2>&1 || die "nvm_has_non_aliased does not return a nonzero exit code when not found" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_solaris_binary b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_solaris_binary deleted file mode 100755 index 9d949e4b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_solaris_binary +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh -\. ../../common.sh - -# Invalid version numbers fail -assert_not_ok nvm_has_solaris_binary "" -assert_not_ok nvm_has_solaris_binary "foo" - -# "Invalid" node version numbers fail -assert_not_ok nvm_has_solaris_binary "v1.0.0" -assert_not_ok nvm_has_solaris_binary "v3.3.1" - -# Valid io.js version numbers that have a Solaris binary succeed -assert_ok nvm_has_solaris_binary "iojs-v3.3.1" - -# Invalid io.js version numbers fail -assert_not_ok nvm_has_solaris_binary "iojs-v0.12.7" - -# Valid node version numbers that don't have a Solaris binary fail -assert_not_ok nvm_has_solaris_binary "v0.8.5" - -# Valid node version numbers that have a Solaris binary succeed -assert_ok nvm_has_solaris_binary "v0.8.6" -assert_ok nvm_has_solaris_binary "v0.10.0" -assert_ok nvm_has_solaris_binary "v0.12.7" - -# Valid "merged" version numbers succeed -assert_ok nvm_has_solaris_binary "v4.0.0" -assert_ok nvm_has_solaris_binary "v4.1.1" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_iojs b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_iojs deleted file mode 100755 index 5d3240b9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_iojs +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -cleanup () { - rm "${NVM_DIR}/versions/io.js/v0.1.2/node" - rm "${NVM_DIR}/versions/io.js/v0.1.2/iojs" - rmdir "${NVM_DIR}/versions/io.js/v0.1.2" -} -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/versions/io.js/v0.1.2" -touch "${NVM_DIR}/versions/io.js/v0.1.2/node" -touch "${NVM_DIR}/versions/io.js/v0.1.2/iojs" - -nvm use iojs-v0.1.2 - -if command -v iojs; then - nvm_has_system_iojs -else - ! nvm_has_system_iojs -fi - -nvm deactivate /dev/null 2>&1 - -if command -v iojs; then - nvm_has_system_iojs -else - ! nvm_has_system_iojs -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_node b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_node deleted file mode 100755 index 86f6bbc1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_has_system_node +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -cleanup () { - rm -rf "${NVM_DIR}/v0.1.2/node" -} -die () { echo "$@" ; exit 1; } - -mkdir "${NVM_DIR}/v0.1.2" -touch "${NVM_DIR}/v0.1.2/node" - -nvm use 0.1.2 - -if command -v node; then - nvm_has_system_node -else - ! nvm_has_system_node -fi - -nvm deactivate /dev/null 2>&1 - -if command -v node; then - nvm_has_system_node -else - ! nvm_has_system_node -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_install_latest_npm b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_install_latest_npm deleted file mode 100755 index ecf9c74d..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_install_latest_npm +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh - -\. ../../common.sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate >/dev/null 2>&1 - -CURRENT="$(nvm current)" -[ "$CURRENT" = 'none' ] || [ "$CURRENT" = 'system' ] || die "nvm should be using none or system; got $CURRENT" - -nvm_ls_current() { - echo 'none' -} -node() { - return 1 -} -npm() { - echo '1.2.3' -} - -OUTPUT="$(nvm_install_latest_npm 2>&1 >/dev/null)" -EXIT_CODE="$(nvm_install_latest_npm >/dev/null 2>&1 ; echo $?)" - -EXPECTED="Unable to obtain node version." -[ "${OUTPUT}" = "${EXPECTED}" ] || die "When node is unavailable, expected >${EXPECTED}<; got >${OUTPUT}" - -node() { - echo 'v4.5.6' -} -nvm_ls_current() { - node --version -} -npm() { - return 1 -} -OUTPUT="$(nvm_install_latest_npm 2>&1 >/dev/null)" -EXIT_CODE="$(nvm_install_latest_npm >/dev/null 2>&1 ; echo $?)" - -EXPECTED="Unable to obtain npm version." -[ "${OUTPUT}" = "${EXPECTED}" ] || die "When node is available and npm is unavailable, expected >${EXPECTED}<; got >${OUTPUT}" - -node() { - echo 'v4.5.6' -} -nvm_ls_current() { - echo 'system' -} -npm() { - return 1 -} -OUTPUT="$(nvm_install_latest_npm 2>&1 >/dev/null)" -EXIT_CODE="$(nvm_install_latest_npm >/dev/null 2>&1 ; echo $?)" - -EXPECTED="Unable to obtain npm version." -[ "${OUTPUT}" = "${EXPECTED}" ] || die "When node is system and npm is unavailable, expected >${EXPECTED}<; got >${OUTPUT}" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_iojs_prefix b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_iojs_prefix deleted file mode 100755 index fef23731..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_iojs_prefix +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "$(nvm_iojs_prefix)" = "iojs" ] || die '"nvm_iojs_prefix" did not return the string "iojs". why did this fail?!' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_alias deleted file mode 100755 index eba9506e..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_alias +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -cleanup () { unalias foo; unalias grep; } -die () { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - -alias foo='bar' -nvm_is_alias foo || die '"nvm_is_alias foo" was not true' - -! nvm_is_alias nvm_is_alias || die '"nvm_is_alias nvm_is_alias was not false' - -alias grep='grep' -unalias grep || die '"unalias grep" failed' -! nvm_is_alias grep || die '"nvm_is_alias grep" with unaliased grep was not false' - -alias grep='grep' -nvm_is_alias grep || die '"nvm_is_alias grep" with aliased grep was not true' - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_iojs_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_iojs_version deleted file mode 100755 index d846e717..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_iojs_version +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm_is_iojs_version 'iojs-' || die '"nvm_is_iojs_version iojs- was not true' -nvm_is_iojs_version 'iojs-foo' || die '"nvm_is_iojs_version iojs- was not true' -! nvm_is_iojs_version 'iojs' || die '"nvm_is_iojs_version iojs was not false' -! nvm_is_iojs_version 'v1.0.0' || die '"nvm_is_iojs_version v1.0.0" was not false' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_merged_node_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_merged_node_version deleted file mode 100755 index 7501c2ad..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_merged_node_version +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm_is_merged_node_version '4.0' || die '"nvm_is_merged_node_version 4.0 was not true' -nvm_is_merged_node_version '5.1' || die '"nvm_is_merged_node_version 5.1 was not true' -! nvm_is_merged_node_version '3.99' || die '"nvm_is_merged_node_version 3.99 was not false' -! nvm_is_merged_node_version 'v1.0.0' || die '"nvm_is_merged_node_version v1.0.0" was not false' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_natural_num b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_natural_num deleted file mode 100755 index d66d6c84..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_natural_num +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -! nvm_is_natural_num || die 'no args is not false' -! nvm_is_natural_num '' || die 'empty string is not false' -! nvm_is_natural_num a || die 'a is not false' -! nvm_is_natural_num -1 || 'negative number is not false' -! nvm_is_natural_num --1 || 'double negative number is not false' -! nvm_is_natural_num 1.2 || 'decimal number is not false' -! nvm_is_natural_num 0 || die 'zero is not false' - -nvm_is_natural_num 1 || die '1 is not true' -nvm_is_natural_num 2 || die '2 is not true' -nvm_is_natural_num 1234 || die '1234 is not true' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_valid_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_valid_version deleted file mode 100755 index edfe5370..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_is_valid_version +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm_is_valid_version 0.1.2 || die "nvm_is_valid_version 0.1.2 did not return 0" -nvm_is_valid_version foo && die "nvm_is_valid_version foo did not return 1" -nvm_is_valid_version iojs-1 || die "nvm_is_valid_version iojs-1 did not return 0" -nvm_is_valid_version iojs || die "nvm_is_valid_version iojs did not return 0" -nvm_is_valid_version node || die "nvm_is_valid_version node did not return 0" -nvm_is_valid_version stable || die "nvm_is_valid_version stable did not return 0" -nvm_is_valid_version unstable || die "nvm_is_valid_version unstable did not return 0" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_current b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_current deleted file mode 100755 index 0e44b20b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_current +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -TEST_PWD=$(pwd) -TEST_DIR="$TEST_PWD/nvm_ls_current_tmp" - -cleanup() { rm -rf "$TEST_DIR"; unset -f return_zero; alias node='node' ; unalias node; } -die () { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - -return_zero () { return 0; } - -if nvm_has_system_node || nvm_has_system_iojs; then - EXPECTED_SYSTEM_NODE="system" -else - EXPECTED_SYSTEM_NODE="none" -fi -[ "_$(nvm deactivate > /dev/null 2>&1 ; nvm_ls_current)" = "_$EXPECTED_SYSTEM_NODE" ] || die "when deactivated, did not return $EXPECTED_SYSTEM_NODE" - -rm -rf "$TEST_DIR" -mkdir "$TEST_DIR" -ln -s "$(command which which)" "$TEST_DIR/which" -ln -s "$(command which dirname)" "$TEST_DIR/dirname" -ln -s "$(command which printf)" "$TEST_DIR/printf" - -[ "$(PATH="$TEST_DIR" nvm_ls_current)" = "none" ] || die 'when node not installed, nvm_ls_current did not return "none"' -[ "@$(PATH="$TEST_DIR" nvm_ls_current 2> /dev/stdout 1> /dev/null)@" = "@@" ] || die 'when node not installed, nvm_ls_current returned error output' - -echo "#!/bin/bash" > "$TEST_DIR/node" -echo "echo 'VERSION FOO!'" > "$TEST_DIR/node" -chmod a+x "$TEST_DIR/node" - -[ "$(alias nvm_tree_contains_path='return_zero' && PATH="$TEST_DIR" nvm_ls_current)" = "VERSION FOO!" ] || die 'when activated, did not return nvm node version' - -alias node='node --harmony' -[ "$(alias nvm_tree_contains_path='return_zero' && PATH="$TEST_DIR" nvm_ls_current)" = "VERSION FOO!" ] || die 'when activated and node aliased, did not return nvm node version' - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote deleted file mode 100755 index 2171650f..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_download -} - -\. ../../../nvm.sh - -MOCKS_DIR="$PWD/mocks" - -# sample output at the time the test was written -TAB_PATH="$MOCKS_DIR/nodejs.org-dist-index.tab" -nvm_download() { - cat "$TAB_PATH" -} - -EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote.txt" - -OUTPUT="$(nvm_ls_remote foo)" -EXIT_CODE="$(nvm_ls_remote foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A" -[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE" - -OUTPUT="$(nvm_ls_remote)" -EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "bare nvm_ls_remote did not output expected sorted versions; got $(echo ">$OUTPUT<") expected $(echo ">$EXPECTED_OUTPUT<")" - -OUTPUT="$(nvm_ls_remote 0.3)" -EXPECTED_OUTPUT="v0.3.0 -v0.3.1 -v0.3.2 -v0.3.3 -v0.3.4 -v0.3.5 -v0.3.6 -v0.3.7 -v0.3.8" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote 0.3 did not output 0.3.x versions; got $OUTPUT" - -# Sanity checks -OUTPUT="$(nvm_print_implicit_alias remote stable)" -EXPECTED_OUTPUT_PATH="${MOCKS_DIR}/nvm_print_implicit_alias remote stable.txt" -EXPECTED_OUTPUT="$(cat "${EXPECTED_OUTPUT_PATH}")" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_print_implicit_alias remote stable did not output $EXPECTED_OUTPUT; got $OUTPUT" - -OUTPUT="$(nvm_print_implicit_alias remote unstable)" -EXPECTED_OUTPUT="0.11" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_print_implicit_alias remote unstable did not output $EXPECTED_OUTPUT; got $OUTPUT" - -OUTPUT="$(nvm_ls_remote stable)" -EXPECTED_OUTPUT_PATH="${MOCKS_DIR}/nvm_ls_remote stable.txt" -EXPECTED_OUTPUT="$(cat "${EXPECTED_OUTPUT_PATH}")" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote stable did not output $EXPECTED_OUTPUT; got $OUTPUT" - -OUTPUT="$(nvm_ls_remote unstable)" -EXPECTED_OUTPUT="v0.11.16" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote unstable did not output $EXPECTED_OUTPUT; got $OUTPUT" - -EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote LTS.txt" -EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")" -OUTPUT="$(NVM_LTS='*' nvm_ls_remote)" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "\`NVM_LTS='*' nvm_ls_remote\` did not output >$EXPECTED_OUTPUT<; got >$OUTPUT<" - -EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote LTS argon.txt" -EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")" -OUTPUT="$(NVM_LTS=argon nvm_ls_remote)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "\`NVM_LTS=argon nvm_ls_remote\` did not output >$EXPECTED_OUTPUT<; got >$OUTPUT<" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote LTS aliases b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote LTS aliases deleted file mode 100755 index 02e3f109..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote LTS aliases +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -TEST_PATH="$PWD/test_output" -mkdir -p "$TEST_PATH" -CALL_COUNT_PATH="$TEST_PATH/call_count.txt" -: > "$CALL_COUNT_PATH" -ALIAS_ARGS_PATH="$TEST_PATH/nvm_make_alias_args.txt" -: > "$ALIAS_ARGS_PATH" - -cleanup() { - unset -f nvm_download nvm_make_alias - rm -rf "$TEST_PATH" -} - -\. ../../../nvm.sh - -set -ex - -MOCKS_DIR="$PWD/mocks" - -# sample output at the time the test was written -TAB_PATH="$MOCKS_DIR/nodejs.org-dist-index.tab" -nvm_download() { - cat "$TAB_PATH" -} - -nvm_make_alias() { - CALL_COUNT="$(cat "$CALL_COUNT_PATH")" - CALL_COUNT="$((CALL_COUNT + 1))" - echo "$CALL_COUNT" > "$CALL_COUNT_PATH" - echo "${1}|${2}" >> "$ALIAS_ARGS_PATH" -} - -nvm_ls_remote >/dev/null || die "nvm_ls_remote_failed?!" - -CALL_COUNT="$(cat "$CALL_COUNT_PATH")" - -EXPECTED_COUNT=4 -[ "$CALL_COUNT" = "$EXPECTED_COUNT" ] || die "nvm_make_alias called $CALL_COUNT times; expected $EXPECTED_COUNT" - -ARGS="$(cat "$ALIAS_ARGS_PATH")" -EXPECTED_ARGS_PATH="$MOCKS_DIR/nvm_make_alias LTS alias calls.txt" -EXPECTED_ARGS="$(cat "$EXPECTED_ARGS_PATH")" -[ "${ARGS}" = "${EXPECTED_ARGS}" ] || die "nvm_make_alias called with >${ARGS}<; expected >${EXPECTED_ARGS}<" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote_iojs b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote_iojs deleted file mode 100755 index 553aefd9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_ls_remote_iojs +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_download -} - -\. ../../../nvm.sh - -# sample output at the time the test was written -TAB_PATH="$PWD/mocks/iojs.org-dist-index.tab" -nvm_download() { - cat "$TAB_PATH" -} - -EXPECTED_OUTPUT_PATH="$PWD/mocks/nvm_ls_remote_iojs.txt" - -OUTPUT="$(nvm_ls_remote_iojs foo)" -EXIT_CODE="$(nvm_ls_remote_iojs foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A" -[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE" - -OUTPUT="$(nvm_ls_remote_iojs)" -EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "bare nvm_ls_remote_iojs did not output expected sorted versions; got $(echo ">$OUTPUT<") expected $(echo ">$EXPECTED_OUTPUT<")" - -OUTPUT="$(nvm_ls_remote_iojs 1.0)" -EXPECTED_OUTPUT="iojs-v1.0.0 -iojs-v1.0.1 -iojs-v1.0.2 -iojs-v1.0.3 -iojs-v1.0.4" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote_iojs 1.0 did not output 1.0.x versions; got $OUTPUT" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_make_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_make_alias deleted file mode 100755 index f04e5187..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_make_alias +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -OUTPUT="$(nvm_make_alias 2>&1)" -EXIT_CODE="$(nvm_make_alias >/dev/null 2>&1 ; echo $?)" -EXPECTED_OUTPUT='an alias name is required' - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "\`nvm_make_alias\` did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "$EXIT_CODE" -eq 1 ] || die "\`nvm_make_alias\` did not exit with 1, got '$EXIT_CODE'" - -OUTPUT="$(nvm_make_alias foo 2>&1)" -EXIT_CODE="$(nvm_make_alias foo >/dev/null 2>&1 ; echo $?)" -EXPECTED_OUTPUT='an alias target version is required' - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "\`nvm_make_alias foo\` did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'" -[ "$EXIT_CODE" -eq 2 ] || die "\`nvm_make_alias foo\` did not exit with 2, got '$EXIT_CODE'" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_node_prefix b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_node_prefix deleted file mode 100755 index c0ffd1d5..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_node_prefix +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "$(nvm_node_prefix)" = "node" ] || die '"nvm_node_prefix" did not return the string "node". why did this fail?!' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_num_version_groups b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_num_version_groups deleted file mode 100755 index ab09f0c5..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_num_version_groups +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "~$(nvm_num_version_groups)" = "~0" ] || die "no args should give 0" -[ "~$(nvm_num_version_groups v)" = "~0" ] || die "just "v" should give 0" -[ "~$(nvm_num_version_groups .)" = "~0" ] || die "just "." should give 0" -[ "~$(nvm_num_version_groups a)" = "~1" ] || die "one letter should give 1" - -[ "~$(nvm_num_version_groups 1)" = "~1" ] || die "1 should give 1" -[ "~$(nvm_num_version_groups 1.)" = "~1" ] || die "1. should give 1" -[ "~$(nvm_num_version_groups v1)" = "~1" ] || die "v1 should give 1" -[ "~$(nvm_num_version_groups v1.)" = "~1" ] || die "v1. should give 1" - -[ "~$(nvm_num_version_groups 1.2)" = "~2" ] || die "1.2 should give 2" -[ "~$(nvm_num_version_groups 1.2.)" = "~2" ] || die "1.2. should give 2" -[ "~$(nvm_num_version_groups v1.2)" = "~2" ] || die "v1.2 should give 2" -[ "~$(nvm_num_version_groups v1.2.)" = "~2" ] || die "v1.2. should give 2" - -[ "~$(nvm_num_version_groups 1.2.3)" = "~3" ] || die "1.2.3 should give 3" -[ "~$(nvm_num_version_groups v1.2.3)" = "~3" ] || die "v1.2.3 should give 3" -[ "~$(nvm_num_version_groups v1.2.3.)" = "~3" ] || die "v1.2.3. should give 3" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_alias_path b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_alias_path deleted file mode 100755 index 14cf152a..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_alias_path +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -\. ../../common.sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup () { - unset -f nvm_alias nvm_version -} - -\. ../../../nvm.sh - -NVM_ALIAS_DIR='path/to/the alias/dir' - -OUTPUT="$(nvm_print_alias_path 2>&1)" -EXPECTED_OUTPUT='An alias dir is required.' -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "'nvm_print_alias_path' produced wrong output; got '$OUTPUT', expected '$EXPECTED_OUTPUT'" - -OUTPUT="$(nvm_print_alias_path "$NVM_ALIAS_DIR" 2>&1)" -EXPECTED_OUTPUT='An alias path is required.' -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "'nvm_print_alias_path \"\$NVM_ALIAS_DIR\"' produced wrong output; got '$OUTPUT', expected '$EXPECTED_OUTPUT'" - -nvm_alias() { - echo '' -} - -OUTPUT="$(nvm_print_alias_path "$NVM_ALIAS_DIR" foo | strip_colors)" -EXPECTED_OUTPUT='' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_print_alias_path \"\$NVM_ALIAS_DIR\" foo' should produce no output when nvm_alias does not; got '$OUTPUT'" - -EXIT_CODE="$(nvm_print_alias_path "$NVM_ALIAS_DIR" foo >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = '0' ] || die "'nvm_print_alias_path \"\$NVM_ALIAS_DIR\" foo' should exit zero when nvm_alias produces no output; got $EXIT_CODE" - -nvm_alias() { - echo "\"$1\"" -} -nvm_version() { - echo "v$1" -} - -OUTPUT="$(nvm_print_alias_path "$NVM_ALIAS_DIR" "$NVM_ALIAS_DIR/blah" | strip_colors)" -EXPECTED_OUTPUT='blah -> "blah" (-> v"blah")' -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "'nvm_print_alias_path \"\$NVM_ALIAS_DIR\" \"\$NVM_ALIAS_DIR/blah\"' should strip alias dir and print nvm_alias output; got '$OUTPUT', expected '$EXPECTED_OUTPUT'" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_default_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_default_alias deleted file mode 100755 index fcb3ab22..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_default_alias +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -\. ../../common.sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup () { - unset -f nvm_print_implicit_alias nvm_version -} - -\. ../../../nvm.sh - -nvm_print_implicit_alias() { - echo '' -} - -OUTPUT="$(nvm_print_default_alias 2>&1)" -EXPECTED_OUTPUT='A default alias is required.' -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "'nvm_print_default_alias' produced wrong output; got '$OUTPUT', expected '$EXPECTED_OUTPUT'" - -OUTPUT="$(nvm_print_default_alias foo | strip_colors)" -EXPECTED_OUTPUT='' -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_print_default_alias foo' should produce no output when nvm_print_implicit_alias does not; got '$OUTPUT'" - -EXIT_CODE="$(nvm_print_default_alias foo >/dev/null 2>&1 ; echo $?)" -[ "$EXIT_CODE" = '0' ] || die "'nvm_print_default_alias foo' should exit zero when nvm_print_implicit_alias produces no output; got $EXIT_CODE" - -nvm_print_implicit_alias() { - echo "\"$1-$2\"" -} -nvm_version() { - echo "v$1" -} - -OUTPUT="$(nvm_print_default_alias blah | strip_colors)" -EXPECTED_OUTPUT='blah -> "local-blah" (-> v"local-blah") (default)' -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "'nvm_print_default_alias blah' should strip alias dir and print nvm_print_implicit_alias output; got '$OUTPUT', expected '$EXPECTED_OUTPUT'" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias errors b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias errors deleted file mode 100755 index 5565eea0..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias errors +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -EXPECTED_FIRST_MSG="nvm_print_implicit_alias must be specified with local or remote as the first argument." -[ "_$(nvm_print_implicit_alias 2>&1)" = "_$EXPECTED_FIRST_MSG" ] \ - || die "nvm_print_implicit_alias did not require local|remote as first argument" -[ "_$(nvm_print_implicit_alias foo 2>&1)" = "_$EXPECTED_FIRST_MSG" ] \ - || die "nvm_print_implicit_alias did not require local|remote as first argument" - -FIRST_EXIT_CODE="$(nvm_print_implicit_alias > /dev/null 2>&1 ; echo $?)" -[ "_$FIRST_EXIT_CODE" = "_1" ] \ - || die "nvm_print_implicit_alias without local|remote had wrong exit code: expected 1, got $FIRST_EXIT_CODE" - -EXPECTED_SECOND_MSG="Only implicit aliases 'stable', 'unstable', 'iojs', and 'node' are supported." -[ "_$(nvm_print_implicit_alias local 2>&1)" = "_$EXPECTED_SECOND_MSG" ] \ - || die "nvm_print_implicit_alias did not require stable|unstable|iojs|node as second argument" -[ "_$(nvm_print_implicit_alias local foo 2>&1)" = "_$EXPECTED_SECOND_MSG" ] \ - || die "nvm_print_implicit_alias did not require stable|unstable|iojs|node as second argument" - -SECOND_EXIT_CODE="$(nvm_print_implicit_alias local > /dev/null 2>&1 ; echo $?)" -[ "_$SECOND_EXIT_CODE" = "_2" ] \ - || die "nvm_print_implicit_alias without stable|unstable|iojs|node had wrong exit code: expected 2, got $SECOND_EXIT_CODE" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias success b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias success deleted file mode 100755 index fe99b589..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_implicit_alias success +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } -cleanup() { - rm -rf "${NVM_DIR}/v0.2.3" - rm -rf "${NVM_DIR}/v0.3.4" - rm -rf "${NVM_DIR}/v0.4.6" - rm -rf "${NVM_DIR}/v0.5.7" - rm -rf "${NVM_DIR}/v0.7.7" - rm -rf "${NVM_DIR}/versions/io.js/v0.98.0" - rm -rf "${NVM_DIR}/versions/node/v1.0.0" - rm -rf "${NVM_DIR}/versions/node/v1.1.0" - unset -f nvm_ls_remote nvm_ls_remote_iojs -} - -\. ../../../nvm.sh - -mkdir "${NVM_DIR}/v0.2.3" -mkdir "${NVM_DIR}/v0.3.4" -mkdir "${NVM_DIR}/v0.4.6" -mkdir "${NVM_DIR}/v0.5.7" -mkdir "${NVM_DIR}/v0.7.7" -mkdir -p "${NVM_DIR}/versions/io.js/v0.98.0" - -LATEST_STABLE="$(nvm_print_implicit_alias local stable)" -[ "_$LATEST_STABLE" = "_0.4" ] || die "local stable is not latest even minor: expected 0.4, got $LATEST_STABLE" - -LATEST_NODE="$(nvm_print_implicit_alias local node)" -[ "_$LATEST_NODE" = "_stable" ] || die "local node is not stable: expected stable, got $LATEST_NODE" - -LATEST_UNSTABLE="$(nvm_print_implicit_alias local unstable)" -[ "_$LATEST_UNSTABLE" = "_0.7" ] || die "local unstable is not latest odd minor: expected 0.7, got $LATEST_UNSTABLE" - -LATEST_IOJS="$(nvm_print_implicit_alias local iojs)" -[ "_$LATEST_IOJS" = "_iojs-v0.98" ] || die "local iojs is not latest iojs: expected iojs-v0.98, got $LATEST_IOJS" - -## node post v1.0/io.js merger ## -mkdir -p "${NVM_DIR}/versions/node/v1.0.0" -mkdir -p "${NVM_DIR}/versions/node/v1.1.0" - -LATEST_STABLE="$(nvm_print_implicit_alias local stable)" -[ "_$LATEST_STABLE" = "_1.1" ] || die "local stable when post-v1.0 exists is not latest: expected 1.1, got $LATEST_STABLE" - -LATEST_UNSTABLE="$(nvm_print_implicit_alias local unstable)" -[ "_$LATEST_UNSTABLE" = "_0.7" ] || die "local unstable is not latest pre-v1.0 odd minor: expected 0.7, got $LATEST_UNSTABLE" -## ** ## - -nvm_ls_remote() { - echo "v0.4.3" - echo "v0.5.4" - echo "v0.6.6" - echo "v0.7.7" - echo "v0.9.7" - echo "v0.4.3" - echo "v0.5.4" - echo "v0.6.6" - echo "v0.7.7" - echo "v0.9.7" -} - -nvm_ls_remote_iojs() { - echo "iojs-v0.1.0" - echo "iojs-v0.1.1" - echo "iojs-v0.7.8" - echo "iojs-v0.98.5" - echo "iojs-v0.99.0" -} - -LATEST_STABLE="$(nvm_print_implicit_alias remote stable)" -[ "_$LATEST_STABLE" = "_0.6" ] || die "remote stable is not latest even minor: expected 0.6, got $LATEST_STABLE" - -LATEST_NODE="$(nvm_print_implicit_alias remote node)" -[ "_$LATEST_NODE" = "_stable" ] || die "remote node is not stable: expected stable, got $LATEST_NODE" - -LATEST_UNSTABLE="$(nvm_print_implicit_alias remote unstable)" -[ "_$LATEST_UNSTABLE" = "_0.9" ] || die "remote unstable is not latest odd minor: expected 0.9, got $LATEST_UNSTABLE" - -LATEST_IOJS="$(nvm_print_implicit_alias remote iojs)" -[ "_$LATEST_IOJS" = "_iojs-v0.99" ] || die "remote iojs is not latest: expected iojs-v0.99, got $LATEST_IOJS" - -## node post v1.0/io.js merger ## -nvm_ls_remote() { - echo "v0.4.3" - echo "v0.5.4" - echo "v0.6.6" - echo "v0.7.7" - echo "v0.9.7" - echo "v0.4.3" - echo "v0.5.4" - echo "v0.6.6" - echo "v0.7.7" - echo "v0.9.7" - echo "v1.0.0" - echo "v1.1.0" -} - -LATEST_STABLE="$(nvm_print_implicit_alias remote stable)" -[ "_$LATEST_STABLE" = "_1.1" ] || die "remote stable when post-v1.0 exists is not latest: expected 1.1, got $LATEST_STABLE" - -LATEST_UNSTABLE="$(nvm_print_implicit_alias remote unstable)" -[ "_$LATEST_UNSTABLE" = "_0.9" ] || die "remote unstable is not latest odd pre-v1.0 minor: expected 0.9, got $LATEST_UNSTABLE" -## ** ## - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_npm_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_npm_version deleted file mode 100755 index a9cbc2cb..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_print_npm_version +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -cleanup () { - alias nvm_has='\nvm_has' - alias npm='\npm' - unset -f nvm_has npm -} -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm_has() { return 1; } -OUTPUT="$(nvm_print_npm_version)" -[ -z "$OUTPUT" ] || die "nvm_print_npm_version did not return empty when nvm_has returns 1, got '$OUTPUT'" - -nvm_has() { return 0; } -npm() { - if [ "_$@" = "_--version" ]; then - echo "1.2.3" - else - echo "error" - fi -} -OUTPUT="$(nvm_print_npm_version)" -EXPECTED_OUTPUT=" (npm v1.2.3)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_print_npm_version did not provided '$EXPECTED_OUTPUT', got '$OUTPUT'" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_version deleted file mode 100755 index 9a4f94f2..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_version +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_ls_remote nvm_ls_remote_iojs -} - -\. ../../../nvm.sh - -nvm_ls_remote() { - echo "N/A" -} -OUTPUT="$(nvm_remote_version foo)" -EXIT_CODE="$(nvm_remote_version foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A" -[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE" - -nvm_ls_remote_iojs() { - echo "N/A" -} -OUTPUT="$(nvm_remote_version iojs-foo)" -EXIT_CODE="$(nvm_remote_version iojs-foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A" -[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE" - - -nvm_ls_remote() { - if [ -z "$1" ] || ! nvm_is_iojs_version "$1"; then - echo "test_output" - echo "more_test_output" - echo "pattern_received:_$1_" - fi -} -nvm_ls_remote_iojs() { - if [ -z "$1" ] || nvm_is_iojs_version "$1"; then - echo "test_iojs_output" - echo "more_iojs_test_output" - echo "iojs_pattern_received:_$1_" - fi -} -OUTPUT="$(nvm_remote_version foo)" -EXIT_CODE="$(nvm_remote_version foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_pattern_received:_foo_" ] \ - || die "nvm_remote_version foo did not return last line only of nvm_ls_remote foo; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_version foo did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_version iojs-foo)" -EXIT_CODE="$(nvm_remote_version iojs-foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_iojs_pattern_received:_iojs-foo_" ] \ - || die "nvm_remote_version iojs-foo did not return last line only of nvm_ls_remote_iojs foo; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_version iojs-foo did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_version iojs)" -EXIT_CODE="$(nvm_remote_version iojs >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_iojs_pattern_received:__" ] \ - || die "nvm_remote_version iojs did not return last line only of nvm_ls_remote_iojs; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_version iojs did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_version stable)" -EXIT_CODE="$(nvm_remote_version stable >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote stable)" ] \ - || die "nvm_remote_version stable did not return contents of nvm_ls_remote stable; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_version stable did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_version unstable)" -EXIT_CODE="$(nvm_remote_version unstable >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote unstable)" ] \ - || die "nvm_remote_version unstable did not return contents of nvm_ls_remote unstable; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_version unstable did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_version node)" -EXIT_CODE="$(nvm_remote_version node >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote node)" ] \ - || die "nvm_remote_version node did not return contents of nvm_ls_remote node; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_version node did not exit with 0, got $EXIT_CODE" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_versions b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_versions deleted file mode 100755 index e4136b29..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_remote_versions +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f nvm_ls_remote nvm_ls_remote_iojs -} - -\. ../../../nvm.sh - -OUTPUT="$(nvm_remote_versions stable 2>&1)" -EXPECTED_OUTPUT="Implicit aliases are not supported in nvm_remote_versions." -EXIT_CODE="$(nvm_remote_versions stable >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "implicit alias 'stable' did not error out with correct message, got $OUTPUT" -[ "_$EXIT_CODE" = "_1" ] || die "implicit alias 'stable' did not exit with code 1, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_versions unstable 2>&1)" -EXPECTED_OUTPUT="Implicit aliases are not supported in nvm_remote_versions." -EXIT_CODE="$(nvm_remote_versions unstable >/dev/null 2>&1; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "implicit alias 'unstable' did not error out with correct message, got $OUTPUT" -[ "_$EXIT_CODE" = "_1" ] || die "implicit alias 'unstable' did not exit with code 1, got $EXIT_CODE" - -nvm_ls_remote() { - echo "N/A" -} -OUTPUT="$(nvm_remote_versions foo)" -EXIT_CODE="$(nvm_remote_versions foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A" -[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE" - -nvm_ls_remote_iojs() { - echo "N/A" -} -OUTPUT="$(nvm_remote_versions iojs-foo)" -EXIT_CODE="$(nvm_remote_versions iojs-foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A" -[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE" - - -nvm_ls_remote() { - echo "test output" - echo "more test output" - echo "pattern received: _$1_" -} -nvm_ls_remote_iojs() { - echo "test iojs output" - echo "more iojs test output" - echo "iojs pattern received: _$1_" -} - -OUTPUT="$(nvm_remote_versions foo)" -EXIT_CODE="$(nvm_remote_versions foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote foo) -$(nvm_ls_remote_iojs foo)" ] \ - || die "nvm_remote_versions foo did not return contents of nvm_ls_remote foo combined with nvm_ls_remote_iojs foo; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions foo did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_versions node)" -EXIT_CODE="$(nvm_remote_versions node >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote)" ] \ - || die "nvm_remote_versions node did not return contents of nvm_ls_remote; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions node did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_versions iojs-foo)" -EXIT_CODE="$(nvm_remote_versions iojs-foo >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote iojs-foo) -$(nvm_ls_remote_iojs iojs-foo)" ] \ - || die "nvm_remote_versions iojs-foo did not return contents of nvm_ls_remote iojs-foo combined with nvm_ls_remote_iojs iojs-foo; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions iojs-foo did not exit with 0, got $EXIT_CODE" - -OUTPUT="$(nvm_remote_versions iojs)" -EXIT_CODE="$(nvm_remote_versions iojs >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$(nvm_ls_remote_iojs)" ] \ - || die "nvm_remote_versions iojs did not return contents of nvm_ls_remote_iojs; got $OUTPUT" -[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions iojs did not exit with 0, got $EXIT_CODE" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_iojs_prefix b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_iojs_prefix deleted file mode 100755 index 6924b5fc..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_iojs_prefix +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "_$(nvm_strip_iojs_prefix iojs)" = "_" ] || die '"nvm_strip_iojs_prefix iojs" did not return an empty string' -[ "_$(nvm_strip_iojs_prefix iojs-)" = "_" ] || die '"nvm_strip_iojs_prefix iojs-" did not return an empty string' -[ "_$(nvm_strip_iojs_prefix iojs-foo)" = "_foo" ] || die '"nvm_strip_iojs_prefix iojs-foo" did not return "foo"' -[ "_$(nvm_strip_iojs_prefix iojsfoo)" = "_iojsfoo" ] || die '"nvm_strip_iojs_prefix iojsfoo" did not return "iojsfoo"' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_path b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_path deleted file mode 100755 index a57a4247..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_strip_path +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -TEST_PATH=$NVM_DIR/v0.10.5/bin:/usr/bin:$NVM_DIR/v0.11.5/bin:$NVM_DIR/v0.9.5/bin:/usr/local/bin:$NVM_DIR/v0.2.5/bin:$NVM_DIR/versions/node/v0.12.0/bin:$NVM_DIR/versions/io.js/v1.0.0/bin - -STRIPPED_PATH=`nvm_strip_path "$TEST_PATH" "/bin"` - -[ "$STRIPPED_PATH" = "/usr/bin:/usr/local/bin" ] || die "Not correctly stripped: $STRIPPED_PATH " diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_supports_xz b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_supports_xz deleted file mode 100755 index 97c5a38d..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_supports_xz +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -OLDPATH=$PATH -TEST_PATH=../../xz-test - -cleanup() { - rm -rf $TEST_PATH/{xz,which,awk,rm,command} - export PATH=$OLDPATH -} -die () { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - -OLDPATH=$PATH - -mkdir -p $TEST_PATH -touch ../../xz-test/xz -chmod +x ../../xz-test/xz - -export PATH=$TEST_PATH:$PATH - -$(nvm_supports_xz "v2.3.2") || \ - die "expected 'nvm_supports_xz v2.3.2' to exit with 0" - -$(nvm_supports_xz "v0.12.7") && \ - die "expected 'nvm_supports_xz v0.12.7' to exit with 1" - - -# set up for a failure by having a minimal toolset available -# but remove xz -ln -s /usr/bin/which $TEST_PATH/which -ln -s /usr/bin/command $TEST_PATH/command -ln -s /usr/bin/awk $TEST_PATH/awk -ln -s $(which rm) $TEST_PATH/rm - -export PATH=$TEST_PATH -rm $TEST_PATH/xz - -$(nvm_supports_xz "v2.3.2") && \ - die "expected 'nvm_supports_xz v2.3.2' with a missing xz binary to exit with 1" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_tree_contains_path b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_tree_contains_path deleted file mode 100755 index 9b40854b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_tree_contains_path +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -cleanup () { - rm tmp/node - rmdir tmp - rm tmp2/node - rmdir tmp2 -} -die () { echo "$@" ; cleanup; exit 1; } - -\. ../../../nvm.sh - -mkdir -p tmp -touch tmp/node -mkdir -p tmp2 -touch tmp2/node - -[ "$(nvm_tree_contains_path 2>&1)" = "both the tree and the node path are required" ] || die 'incorrect error message with no args' -[ "$(nvm_tree_contains_path > /dev/null 2>&1 ; echo $?)" = "2" ] || die 'incorrect error code with no args' -[ "$(nvm_tree_contains_path tmp 2>&1)" = "both the tree and the node path are required" ] || die 'incorrect error message with one arg' -[ "$(nvm_tree_contains_path > /dev/null 2>&1 ; echo $?)" = "2" ] || die 'incorrect error code with one arg' - -nvm_tree_contains_path tmp tmp/node || die '"tmp" should contain "tmp/node"' - -nvm_tree_contains_path tmp tmp2/node && die '"tmp" should not contain "tmp2/node"' - -nvm_tree_contains_path tmp2 tmp2/node || die '"tmp2" should contain "tmp2/node"' - -nvm_tree_contains_path tmp2 tmp/node && die '"tmp2" should not contain "tmp/node"' - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_use_if_needed b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_use_if_needed deleted file mode 100755 index dd04ccf9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_use_if_needed +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -cleanup() { unset -f nvm_ls_current nvm; } -die () { echo "$@" ; cleanup ; exit 1; } - -\. ../../../nvm.sh - -nvm_ls_current() { echo foo; } - -nvm() { - echo "nvm: $@" -} - -OUTPUT="$(nvm_use_if_needed foo)" -EXPECTED_OUTPUT='' - -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<" - -OUTPUT="$(nvm_use_if_needed bar)" -EXPECTED_OUTPUT='nvm: use bar' - -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_validate_implicit_alias b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_validate_implicit_alias deleted file mode 100755 index 8fd6ecf1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_validate_implicit_alias +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -EXPECTED_MSG="Only implicit aliases 'stable', 'unstable', 'iojs', and 'node' are supported." -[ "_$(nvm_validate_implicit_alias 2>&1)" = "_$EXPECTED_MSG" ] \ - || die "nvm_validate_implicit_alias did not require stable|unstable|iojs|node" -[ "_$(nvm_validate_implicit_alias foo 2>&1)" = "_$EXPECTED_MSG" ] \ - || die "nvm_validate_implicit_alias did not require stable|unstable|iojs|node" - -EXIT_CODE="$(nvm_validate_implicit_alias >/dev/null 2>&1 ; echo $?)" -[ "_$EXIT_CODE" = "_1" ] \ - || die "nvm_validate_implicit_alias without stable|unstable|iojs|node had wrong exit code: expected 1, got $EXIT_CODE" - -nvm_validate_implicit_alias stable || die "nvm_validate_implicit_alias stable did not exit 0" -nvm_validate_implicit_alias unstable || die "nvm_validate_implicit_alias unstable did not exit 0" -nvm_validate_implicit_alias node || die "nvm_validate_implicit_alias node did not exit 0" -nvm_validate_implicit_alias iojs || die "nvm_validate_implicit_alias iojs did not exit 0" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version deleted file mode 100755 index 6c94d857..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } -cleanup () { - unset -f nvm_ls_current nvm_ls -} - -\. ../../../nvm.sh - -nvm_ls_current() { - echo "CURRENT!" - return 7 -} - -OUTPUT="$(nvm_version current)" -EXPECTED_OUTPUT="CURRENT!" -EXIT_CODE="$(nvm_version current 2>&1 >/dev/null ; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die '"nvm_version current" did not return nvm_ls_current output' -[ "_$EXIT_CODE" = "_7" ] || die '"nvm_version current" did not return nvm_ls_current exit code' - -OUTPUT="$(nvm_version)" -EXPECTED_OUTPUT="CURRENT!" -EXIT_CODE="$(nvm_version 2>&1 >/dev/null ; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die '"nvm_version" did not return nvm_ls_current output' -[ "_$EXIT_CODE" = "_7" ] || die '"nvm_version" did not return nvm_ls_current exit code' - -nvm_ls() { - echo "line 1" - echo "line 2" - echo "pattern: $1" -} -[ "_$(nvm_version foo)" = "_pattern: foo" ] || die '"nvm_version foo" did not pass the pattern to "nvm_ls", or return the last line' -[ "_$(nvm_version node)" = "_pattern: stable" ] || die '"nvm_version node" did not pass "stable" to "nvm_ls"' -[ "_$(nvm_version node-)" = "_pattern: stable" ] || die '"nvm_version node-" did not pass "stable" to "nvm_ls"' - -nvm_ls() { echo "N/A"; } -OUTPUT="$(nvm_version foo)" -EXPECTED_OUTPUT="N/A" -EXIT_CODE="$(nvm_version foo 2>&1 >/dev/null ; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die '"nvm_version" did not return N/A when nvm_ls returns N/A' -[ "_$EXIT_CODE" = "_3" ] || die '"nvm_version" returning N/A did not exit code with code 3' - -nvm_ls() { echo; } -OUTPUT="$(nvm_version foo)" -EXPECTED_OUTPUT="N/A" -EXIT_CODE="$(nvm_version foo 2>&1 >/dev/null ; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die '"nvm_version" did not return N/A when nvm_ls returns nothing' -[ "_$EXIT_CODE" = "_3" ] || die '"nvm_version" returning N/A did not exit code with code 3' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_dir deleted file mode 100755 index ad4bd96b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_dir +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "$(nvm_version_dir)" = "$NVM_DIR/versions/node" ] || die '"nvm_version_dir" did not return new dir path' -[ "$(nvm_version_dir iojs)" = "$NVM_DIR/versions/io.js" ] || die '"nvm_version_dir iojs" did not return iojs dir path' -[ "$(nvm_version_dir new)" = "$(nvm_version_dir)" ] || die '"nvm_version_dir new" did not return new dir path' -[ "$(nvm_version_dir old)" = "$NVM_DIR" ] || die '"nvm_version_dir old" did not return old dir path' -[ "$(nvm_version_dir foo 2>&1)" = "unknown version dir" ] || die '"nvm_version_dir foo" did not error out' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_greater b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_greater deleted file mode 100755 index 2a345ea4..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_greater +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm_version_greater 0.10.0 0.2.12 || die '"nvm_version_greater 0.10.0 0.2.12" did not return true' - -if nvm_version_greater 0.10.0 0.20.12; then - die '"nvm_version_greater 0.10.0 0.20.12" returned true' -fi - -if nvm_version_greater 0.10.0 0.10.0; then - die '"nvm_version_greater" returned false for the same two versions' -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_path b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_path deleted file mode 100755 index 2d4ad789..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/Unit tests/nvm_version_path +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -OUTPUT="$(nvm_version_path foo)" -EXPECTED_OUTPUT="$NVM_DIR/foo" -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "'nvm_version_path foo' did not return correct location; expected '$EXPECTED_OUTPUT', got '$OUTPUT'" - -[ "$(nvm_version_path 2>&1)" = "version is required" ] || die '"nvm_version_path" did not error out' -[ "$(nvm_version_path v0.11.0)" = "$NVM_DIR/v0.11.0" ] || die 'old version has the wrong path' -[ "$(nvm_version_path v0.12.0)" = "$NVM_DIR/versions/node/v0.12.0" ] || die 'new version has the wrong path' -[ "$(nvm_version_path iojs-v0.12.0)" = "$NVM_DIR/versions/io.js/v0.12.0" ] || die 'iojs version has the wrong path' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup deleted file mode 100755 index 6de3378e..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -ex - -( - cd ../.. - - # Back up - - type setopt >/dev/null 2>&1 && setopt NULL_GLOB - type shopt >/dev/null 2>&1 && shopt -s nullglob - rm -Rf v* src alias - mkdir src alias -) diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup_dir deleted file mode 100755 index fd36775c..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/setup_dir +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -set -ex - -( - cd ../.. - - # Back up - - mkdir -p bak - for SRC in v* src alias; do - [ -e "$SRC" ] && mv "$SRC" bak - done - if [ -d versions ]; then - mv versions bak - fi - true -) diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown deleted file mode 100755 index 75a406e7..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -set -ex - -# Remove temporary files -( - cd ../.. - - type setopt >/dev/null 2>&1 && setopt NULL_GLOB - type shopt >/dev/null 2>&1 && shopt -s nullglob - rm -fR v* src alias test/test-xz -) diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown_dir deleted file mode 100755 index 9efb49e0..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/fast/teardown_dir +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -ex - -( - cd ../.. - - # Restore - if [ -d bak ] - then - mv bak/* . > /dev/null 2>&1 || sleep 0s - rmdir bak - fi - mkdir -p src alias -) diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_check_global_modules b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_check_global_modules deleted file mode 100755 index 4183b970..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_check_global_modules +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -cleanup () { - rm -rf "$npm_config_prefix/lib" >/dev/null 2>&1 - unset npm_config_prefix - - rm -f npm - PATH="$ORIGINAL_PATH" - - unset -f setup cleanup die - unset message ORIGINAL_PATH -} -die () { echo "$@" ; cleanup ; exit 1; } - -NVM_ENV=testing \. ../../install.sh - -setup () { - ORIGINAL_PATH="$PATH" - - npm_config_prefix="$(pwd)" - export npm_config_prefix - mkdir -p "$npm_config_prefix/lib" -} - - -setup - -npm install -g nop >/dev/null || die 'nvm_check_global_modules cannot be tested because `npm` cannot install the `nop` package' -message=$(nvm_check_global_modules) -[ ! -z "$message" ] || die "nvm_check_global_modules should have printed a notice when npm had global modules installed" - -npm uninstall -g nop >/dev/null -message=$(nvm_check_global_modules) -[ -z "$message" ] || die "nvm_check_global_modules should not have printed a notice when npm had no global modules installed" - -# Faking an installation of npm -mkdir -p "$npm_config_prefix/lib/node_modules/npm" -cat <<'JSON' >"$npm_config_prefix/lib/node_modules/npm/package.json" -{ "name": "npm", "version": "0.0.1fake" } -JSON - -message=$(nvm_check_global_modules) -[ -z "$message" ] || die "nvm_check_global_modules should have not printed a notice when npm had only itself installed as a global module" - -# Faking the absence of npm -PATH=".:$PATH" -touch npm -chmod +x npm - -message=$(nvm_check_global_modules) -[ -z "$message" ] || die "nvm_check_global_modules should have not printed a notice when npm was unavailable" - - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_detect_profile b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_detect_profile deleted file mode 100755 index 1044659f..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_detect_profile +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/sh - -setup () { - HOME="." - NVM_ENV=testing \. ../../install.sh - touch ".bashrc" - touch ".bash_profile" - touch ".zshrc" - touch ".profile" - touch "test_profile" -} - -cleanup () { - unset HOME - unset NVM_ENV - unset NVM_DETECT_PROFILE - unset BASH_VERSION - unset ZSH_VERSION - unset -f setup cleanup die - rm -f ".bashrc" ".bash_profile" ".zshrc" ".profile" "test_profile" > "/dev/null" 2>&1 -} - -die () { echo "$@" '$NVM_DETECT_PROFILE:' "$NVM_DETECT_PROFILE"; cleanup; exit 1; } - -setup - -# -# Confirm profile detection via $SHELL works and that $PROFILE overrides profile detection -# - -# .bashrc should be detected for bash -NVM_DETECT_PROFILE="$(BASH_VERSION="1"; unset PROFILE; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then - die "nvm_detect_profile didn't pick \$HOME/.bashrc for bash" -fi - -# $PROFILE should override .bashrc profile detection -NVM_DETECT_PROFILE="$(SHELL="/bin/bash"; PROFILE="test_profile"; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then - die "nvm_detect_profile ignored \$PROFILE" -fi - -# .zshrc should be detected for zsh -NVM_DETECT_PROFILE="$(ZSH_VERSION="1"; unset PROFILE; unset BASH_VERSION; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then - die "nvm_detect_profile didn't pick \$HOME/.zshrc for zsh" -fi - -# $PROFILE should override .zshrc profile detection -NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; PROFILE="test_profile"; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then - die "nvm_detect_profile ignored \$PROFILE" -fi - - -# -# Confirm $PROFILE is only returned when it points to a valid file -# - -# $PROFILE is a valid file -NVM_DETECT_PROFILE="$(PROFILE="test_profile"; unset ZSH_VERSION; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then - die "nvm_detect_profile didn't pick \$PROFILE when it was a valid file" -fi - -# $PROFILE is not a valid file -rm "test_profile" -NVM_DETECT_PROFILE="$(PROFILE="test_profile"; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" = "test_profile" ]; then - die "nvm_detect_profile picked \$PROFILE when it was an invalid file" -fi - -# -# When profile detection fails via both $PROFILE and $SHELL, profile detection should select based on the existence of -# one of the following files is the following order: .profile, .bashrc, .bash_profile, .zshrc and -# return an empty value if everything fails -# - -# It should favor .profile if file exists -NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.profile" ]; then - die "nvm_detect_profile should have selected .profile" -fi - -# Otherwise, it should favor .bashrc if file exists -rm ".profile" -NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then - die "nvm_detect_profile should have selected .bashrc" -fi - -# Otherwise, it should favor .bash_profile if file exists -rm ".bashrc" -NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.bash_profile" ]; then - die "nvm_detect_profile should have selected .bash_profile" -fi - -# Otherwise, it should favor .zshrc if file exists -rm ".bash_profile" -NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then - die "nvm_detect_profile should have selected .zshrc" -fi - -# It should be empty if none is found -rm ".zshrc" -NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" -if [ ! -z "$NVM_DETECT_PROFILE" ]; then - die "nvm_detect_profile should have returned an empty value" -fi - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_do_install b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_do_install deleted file mode 100755 index 5fb0d272..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_do_install +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -NVM_ENV=testing \. ../../install.sh - -#nvm_do_install is available -type nvm_do_install > /dev/null 2>&1 || die 'nvm_do_install is not available' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_dir deleted file mode 100755 index 1aeea18d..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_dir +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f die cleanup - unset install_dir -} -die () { echo "$@" ; cleanup ; exit 1; } - -NVM_ENV=testing \. ../../install.sh -HOME="__home__" - - -# NVM_DIR is set -NVM_DIR="some_dir" -install_dir=$(nvm_install_dir) -[ "_$install_dir" = "_$NVM_DIR" ] || die "nvm_install_dir should use \$NVM_DIR if it exists. Current output: $install_dir" - -unset NVM_DIR - -# NVM_DIR is not set -install_dir=$(nvm_install_dir) -[ "_$install_dir" = "_$HOME/.nvm" ] || die "nvm_install_dir should default to \$HOME/.nvm. Current output: $install_dir" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_aliased_dot b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_aliased_dot deleted file mode 100755 index b8f05a51..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_aliased_dot +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -setup () { - shopt -s expand_aliases - alias .=':' - NVM_ENV=testing \. ../../install.sh > /dev/null -} - -cleanup () { - unset -f setup cleanup die - unalias . - shopt -u expand_aliases -} - -die () { echo "$@"; exit 1; } - -setup - -nvm_do_install > /dev/null 2>&1 -command -v nvm || die 'nvm could not be loaded' - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_node_version b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_node_version deleted file mode 100755 index 5f5208f7..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_install_with_node_version +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -NODE_VERSION=8 \. ../../install.sh - -# nvm installed node 8 -nvm ls 8 > /dev/null 2>&1 || die "nvm didn't install node 8" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_profile_is_bash_or_zsh b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_profile_is_bash_or_zsh deleted file mode 100755 index aae9cc37..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_profile_is_bash_or_zsh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -NVM_ENV=testing \. ../../install.sh - -#nvm_profile_is_bash_or_zsh is available -type nvm_profile_is_bash_or_zsh > /dev/null 2>&1 || die 'nvm_profile_is_bash_or_zsh is not available' -nvm_profile_is_bash_or_zsh "/home/nvm/.bashrc" || die '/home/nvm/.bashrc is bash profile' -nvm_profile_is_bash_or_zsh "/home/nvm/.bash_profile" || die '/home/nvm/.bash_profile is bash profile' -nvm_profile_is_bash_or_zsh "/home/nvm/.zshrc" || die '/home/nvm/.zshrc is zsh profile' -if nvm_profile_is_bash_or_zsh "/home/nvm/.bash"; then die '/home/nvm/.bash is not bash nor zsh profile'; fi -if nvm_profile_is_bash_or_zsh "/home/nvm/.zsh" ; then die '/home/nvm/.zsh is not bash nor zsh profile'; fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_reset b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_reset deleted file mode 100755 index 77bac0a4..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_reset +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f safe_type die cleanup -} -die () { echo "$@" ; cleanup ; exit 1; } - -safe_type() { - type "$1" -} - -# precondition: the names should be unset -! safe_type nvm_do_install || die 'nvm_do_install is still available' -! safe_type nvm_has || die 'nvm_has is still available' -! safe_type nvm_download || die 'nvm_download is still available' -! safe_type install_nvm_as_script || die 'install_nvm_as_script is still available' -! safe_type install_nvm_from_git || die 'install_nvm_from_git is still available' -! safe_type nvm_reset || die 'nvm_reset is still available' -! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available' - -NVM_ENV=testing \. ../../install.sh - -# Check nvm_reset exists -safe_type nvm_reset || die 'nvm_reset is not available' - -# Apply nvm_reset -nvm_reset || die 'nvm_reset failed' - -# The names should be unset -! safe_type nvm_do_install || die 'nvm_do_install is still available' -! safe_type nvm_has || die 'nvm_has is still available' -! safe_type nvm_download || die 'nvm_download is still available' -! safe_type install_nvm_as_script || die 'install_nvm_as_script is still available' -! safe_type install_nvm_from_git || die 'install_nvm_from_git is still available' -! safe_type nvm_reset || die 'nvm_reset is still available' -! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available' - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_source b/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_source deleted file mode 100755 index 9c1ec080..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/install_script/nvm_source +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -cleanup () { - unset -f die cleanup - unset NVM_SOURCE out -} -die () { echo "$@" ; cleanup ; exit 1; } - -NVM_ENV=testing \. ../../install.sh - -# nvm_source with no parameter returns the git endpoint -echo $(nvm_source) | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo" - -# nvm_source with git parameter returns the location of the nvm repo -echo $(nvm_source "git") | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo" - -# nvm_source with script parameter returns the location of nvm.sh -echo $(nvm_source "script") | grep "nvm.sh$" > /dev/null || die "nvm_source \"script\" should return the location of nvm.sh" - -# nvm_source with script-nvm-exec parameter returns the location of nvm-exec -echo $(nvm_source "script-nvm-exec") | grep "nvm-exec$" > /dev/null || die "nvm_source \"script-nvm-exec\" should return the location of nvm.sh" - -# nvm_source with any other parameter errors out and exits -nvm_source "anything" 2> /dev/null && die "nvm_source with invalid parameter should exit" -out=$(nvm_source "anything" 2>&1 >/dev/null) || : #Saving the process here -[ -z "$out" ] && die "nvm_source with invalid parameter should error out" - -#nvm_source should always return NVM_SOURCE no matter the parameters -NVM_SOURCE="my_location" -out=$(nvm_source) -[ "_$out" = "_my_location" ] || die "nvm_source without arguments should have returned \$NVM_SOURCE. Got \"$out\"" -out=$(nvm_source "git") -[ "_$out" = "_my_location" ] || die "nvm_source git should have returned \$NVM_SOURCE. Got \"$out\"" -out=$(nvm_source "script") -[ "_$out" = "_my_location" ] || die "nvm_source script should have returned \$NVM_SOURCE. Got \"$out\"" -out=$(nvm_source "anything") -[ "_$out" = "_my_location" ] || die "nvm_source script should have returned \$NVM_SOURCE. Got \"$out\"" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install already installed uses it b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install already installed uses it deleted file mode 100755 index 981c9818..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install already installed uses it +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -[ "$(nvm install invalid.invalid 2>&1)" = "Version 'invalid.invalid' not found - try \`nvm ls-remote\` to browse available versions." ] || die "nvm installing an invalid version did not print a nice error message" - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/versions/io.js/v1.0.0" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.0" -[ -e "${NVM_DIR}/versions/io.js/v1.0.1" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.1" - -# Install from binary -nvm install iojs-v1.0.0 -nvm install iojs-v1.0.1 - -nvm use iojs-v1.0.0 - -node --version | grep v1.0.0 || die "precondition failed: iojs node doesn't start at v1.0.0" -iojs --version | grep v1.0.0 || die "precondition failed: iojs binary doesn't start at v1.0.0" - -nvm install iojs-v1.0.1 - -node --version | grep v1.0.1 || die "nvm install on already installed version doesn't use it (node binary)" -iojs --version | grep v1.0.1 || die "nvm install on already installed version doesn't use it (iojs binary)" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from binary b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from binary deleted file mode 100755 index b20f50f3..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from binary +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_TEST_VERSION="v1.0.0" -NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION" - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}" ] && rm -R "${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}" - -# Install from binary -nvm install $NVM_PREFIXED_TEST_VERSION || die "install $NVM_PREFIXED_TEST_VERSION failed" - -# Check -[ -d "${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}" ] -nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" || die "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from source b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from source deleted file mode 100644 index d834e786..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install from source +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -\. ../common.sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -set -ex - -NVM_TEST_VERSION='v3.3.1' -NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}" - -# Remove the stuff we're clobbering. -nvm uninstall "${NVM_TEST_VERSION}" || echo 'not installed' - -# Install from source -(watch nvm install -s "${NVM_PREFIXED_TEST_VERSION}") || die "'nvm install -s ${NVM_PREFIXED_TEST_VERSION}' failed" - -# Check -nvm_is_version_installed "${NVM_PREFIXED_TEST_VERSION}" || die 'version not installed' -nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" || "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install two versions and use the latest one b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install two versions and use the latest one deleted file mode 100755 index 2ec99cdd..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install two versions and use the latest one +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/versions/io.js/v1.0.0" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.0" -[ -e "${NVM_DIR}/versions/io.js/v1.0.1" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.1" - -# Install from binary -nvm install iojs-v1.0.0 || die "'nvm install iojs-v1.0.0' failed" -nvm i iojs-v1.0.1 || die "'nvm i iojs-v1.0.1' failed" - -# Check -[ -d "${NVM_DIR}/versions/io.js/v1.0.0" ] || die "iojs v1.0.0 didn't exist" -[ -d "${NVM_DIR}/versions/io.js/v1.0.1" ] || die "iojs v1.0.1 didn't exist" - -# Use the first one -nvm use iojs-1.0.0 || die "'nvm use iojs-1.0.0' failed" - -# Use the latest one -nvm use iojs-1 || die "'nvm use iojs-1' failed" -[ "_$(node --version)" = "_v1.0.1" ] || die "'node --version' was not v1.0.1, got: $(node --version)" -[ "_$(iojs --version)" = "_v1.0.1" ] || die "'iojs --version' was not v1.0.1, got: $(iojs --version)" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from binary b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from binary deleted file mode 100755 index 30e8b700..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from binary +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_TEST_VERSION=v1.0.0 -NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}" -VERSION_PATH="${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}" - -# Remove the stuff we're clobbering. -[ -e "${VERSION_PATH}" ] && rm -R "${VERSION_PATH}" - -# Install from binary -echo "${NVM_PREFIXED_TEST_VERSION}" > .nvmrc - -nvm install || die "'nvm install' failed" - -# Check -[ -d "${VERSION_PATH}" ] || die "./${VERSION_PATH} did not exist" -nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" \ - || "'nvm run \'${NVM_PREFIXED_TEST_VERSION}\' --version | grep \'${NVM_TEST_VERSION}\'' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from source b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from source deleted file mode 100644 index d02ddc7b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install version specified in .nvmrc from source +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -set -ex - -NVM_TEST_VERSION='v3.3.0' -NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}" - -# Remove the stuff we're clobbering. -nvm uninstall "${NVM_TEST_VERSION}" || echo 'not installed' - -# Install from binary -echo "${NVM_PREFIXED_TEST_VERSION}" > .nvmrc - -nvm install -s || "'nvm install -s' failed" - -# Check -nvm_is_version_installed "${NVM_PREFIXED_TEST_VERSION}" || die 'version is not installed' -nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" \ - || die "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install while reinstalling packages b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install while reinstalling packages deleted file mode 100755 index 072eb91f..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/install while reinstalling packages +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/versions/io.js/v1.0.0" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.0" -[ -e "${NVM_DIR}/versions/io.js/v1.0.1" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.1" - -# Install from binary -nvm install iojs-v1.0.0 - -# Check -[ -d "${NVM_DIR}/versions/io.js/v1.0.0" ] || die "nvm install iojs-v1.0.0 didn't install" - -node --version | grep v1.0.0 > /dev/null || die "nvm install didn't use iojs-v1.0.0" - -npm install -g object-is@0.0.0 || die "npm install -g object-is failed" -npm list --global | grep object-is > /dev/null || die "object-is isn't installed" - -nvm ls iojs-1 | grep iojs-v1.0.0 > /dev/null || die "nvm ls iojs-1 didn't show iojs-v1.0.0" - -nvm install iojs-v1.0.1 --reinstall-packages-from=iojs-1.0.0 || die "nvm install iojs-v1.0.1 --reinstall-packages-from=iojs-1.0.0 failed" - -[ -d "${NVM_DIR}/versions/io.js/v1.0.1" ] || die "nvm install iojs-v1.0.1 didn't install" - -nvm use iojs-1 -node --version | grep v1.0.1 > /dev/null || die "nvm use iojs-1 didn't use v1.0.1" - -npm list --global | grep object-is > /dev/null || die "object-is isn't installed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/nvm install v1 works b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/nvm install v1 works deleted file mode 100755 index bb3e7c3b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/nvm install v1 works +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_VERSION="v1" -NVM_PREFIXED_TEST_VERSION="$(nvm ls-remote "$NVM_VERSION" | tail -1 | sed 's/^[ ]*//;s/[ ]*$//')" -NVM_TEST_VERSION="$(nvm_strip_iojs_prefix "$NVM_PREFIXED_TEST_VERSION")" - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Install from binary -nvm install "$NVM_VERSION" || die "nvm install $NVM_VERSION failed" - -# Check -[ -d "${NVM_DIR}/versions/io.js/$NVM_TEST_VERSION" ] -nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION || die "'nvm run $NVM_PREFIXED_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/setup_dir deleted file mode 100755 index cb4522d1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/setup_dir +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ -f ".nvmrc" ]; then - mv .nvmrc .nvmrc.bak -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/teardown_dir deleted file mode 100755 index 2ca9cf11..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_iojs/teardown_dir +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -\. ../../nvm.sh -nvm deactivate -nvm uninstall iojs-v1.0.0 -nvm uninstall iojs-v1.0.3 -nvm uninstall iojs-v3.3.0 -nvm uninstall iojs-v3.3.1 - -if [ -f ".nvmrc" ]; then - rm .nvmrc -fi - -if [ -f ".nvmrc.bak" ]; then - mv .nvmrc.bak .nvmrc -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install LTS b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install LTS deleted file mode 100755 index e5638e27..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install LTS +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -set -eux - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -nvm unalias default >/dev/null 2>&1 || die 'unable to unalias default' - -set +ex # needed for stderr -OUTPUT="$(nvm install --lts 3 2>&1)" -set -ex -EXIT_CODE="$(nvm install --lts 3 >/dev/null 2>&1 && echo $? || echo $?)" -EXPECTED_OUTPUT="Version '3' (with LTS filter) not found - try \`nvm ls-remote --lts\` to browse available versions." -[ "${EXIT_CODE}" = 3 ] || die "\`nvm install --lts 3\` did not exit with 3, got >${EXIT_CODE}<" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm install --lts 3\` output >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -set +ex # needed for stderr -OUTPUT="$(nvm install --lts=argon 3 2>&1)" -set -ex -EXIT_CODE="$(nvm install --lts=argon 3 >/dev/null 2>&1 && echo $? || echo $?)" -EXPECTED_OUTPUT="Version '3' (with LTS filter 'argon') not found - try \`nvm ls-remote --lts=argon\` to browse available versions." -[ "${EXIT_CODE}" = 3 ] || die "\`nvm install --lts=argon 3\` did not exit with 3, got >${EXIT_CODE}<" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm install --lts=argon 3\` output >${OUTPUT}<, expected >${EXPECTED_OUTPUT}<" - -nvm install --lts 4.2.2 || die 'nvm install --lts 4.2.2 failed' - -[ "$(nvm current)" = "v4.2.2" ] || die "v4.2.2 not current, got $(nvm_current)" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install already installed uses it b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install already installed uses it deleted file mode 100755 index a346d7d2..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install already installed uses it +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -[ "$(nvm install invalid.invalid 2>&1)" = "Version 'invalid.invalid' not found - try \`nvm ls-remote\` to browse available versions." ] || die "nvm installing an invalid version did not print a nice error message" - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/v0.9.7" ] && rm -R "${NVM_DIR}/v0.9.7" -[ -e "${NVM_DIR}/v0.9.12" ] && rm -R "${NVM_DIR}/v0.9.12" - -# Install from binary -nvm install 0.9.7 -nvm install 0.9.12 - -nvm use 0.9.7 - -node --version | grep v0.9.7 || die "precondition failed: node doesn't start at 0.9.7" - -nvm install 0.9.12 - -node --version | grep v0.9.12 || die "nvm install on already installed version doesn't use it" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from binary b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from binary deleted file mode 100755 index e66b3715..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from binary +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -nvm unalias default || die 'unable to unalias default' - -NVM_TEST_VERSION=v0.10.7 - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Install from binary -nvm install $NVM_TEST_VERSION || die "install $NVM_TEST_VERSION failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || die "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" - -# ensure default is set -NVM_CURRENT_DEFAULT="$(nvm_alias default)" -[ "$NVM_CURRENT_DEFAULT" = "$NVM_TEST_VERSION" ] || die "wrong default alias: $(nvm alias)" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source deleted file mode 100755 index d458c87b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -set +e # TODO: fix -\. ../../nvm.sh -set -e - -nvm deactivate || die 'deactivate failed' - -nvm unalias default || die 'unable to unalias default' - -NVM_TEST_VERSION=v0.10.7 - -# Remove the stuff we're clobbering. -nvm uninstall "${NVM_TEST_VERSION}" || die 'nvm uninstall failed' - -# Install from source -nvm install -s "${NVM_TEST_VERSION}" || die "'nvm install -s ${NVM_TEST_VERSION}' failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] || die "../../${NVM_TEST_VERSION} is not a directory" -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run ${NVM_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed" - -# ensure default is set -NVM_CURRENT_DEFAULT="$(nvm_alias default)" -[ "${NVM_CURRENT_DEFAULT}" = "${NVM_TEST_VERSION}" ] || die "wrong default alias: $(nvm alias)" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source implicitly b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source implicitly deleted file mode 100755 index a07efc74..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source implicitly +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -set +e # TODO: fix -\. ../../nvm.sh -set -e - -nvm deactivate || die 'deactivate failed' - -NVM_TEST_VERSION=v0.8.5 - -# Remove the stuff we're clobbering. -nvm uninstall "${NVM_TEST_VERSION}" || die 'uninstall failed' - -# Install from source implicitly (v0.8.6 is when binaries started) -nvm install $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source with thread parameter b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source with thread parameter deleted file mode 100755 index 1b3faae9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source with thread parameter +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_TEST_VERSION=v0.10.7 - -# STAGE 1 # - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Install from source with 1 make job -nvm install -s -j 1 $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" - - - -# STAGE 2 # - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Install from source with 2 make jobs (and swapped arg order) -nvm install -j 2 -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source without V8 snapshot for ARM b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source without V8 snapshot for ARM deleted file mode 100755 index fe8241d9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install from source without V8 snapshot for ARM +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_TEST_VERSION=v0.10.7 - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Fake ARM arch -nvm_get_arch() { - echo "armv7l" -} - -# Install from source -nvm install -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed" - -# Check Install -[ -d ../../$NVM_TEST_VERSION ] -node --version | grep $NVM_TEST_VERSION || "'node --version | grep $NVM_TEST_VERSION' failed" - -# Check V8 snapshot isn't compiled -node -p "if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }" | grep "no-snapshot" || "'node -p \"if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }\" | grep \"no-snapshot\"' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install hook b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install hook deleted file mode 100755 index 896037b9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install hook +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -. ../../nvm.sh - -VERSION='v0.11.0' -VERSION_PATH="$(nvm_version_path "${VERSION}")" - -succeed() { - nvm_echo "$@" - NVM_INSTALL_THIRD_PARTY_HOOK= nvm install "${VERSION}" -} - -fail() { - succeed "$@" - return 11 -} - -! nvm_is_version_installed "${VERSION}" || nvm uninstall "${VERSION}" || die 'uninstall failed' - -OUTPUT="$(NVM_INSTALL_THIRD_PARTY_HOOK=succeed nvm install "${VERSION}")" -USE_OUTPUT="$(nvm use "${VERSION}")" -EXPECTED_OUTPUT="${VERSION} node std binary ${VERSION_PATH} -Downloading and installing node ${VERSION}... -${USE_OUTPUT}" - -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<" - -! nvm_is_version_installed "${VERSION}" || nvm uninstall "${VERSION}" || die 'uninstall 2 failed' - -OUTPUT="$(NVM_INSTALL_THIRD_PARTY_HOOK=fail nvm install "${VERSION}" || echo 'failed')" -USE_OUTPUT="$(nvm use "${VERSION}")" -EXPECTED_OUTPUT="${VERSION} node std binary ${VERSION_PATH} -Downloading and installing node ${VERSION}... -${USE_OUTPUT} -failed" - -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install latest npm b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install latest npm deleted file mode 100755 index bb7e57f6..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install latest npm +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -set +e # todo: fix -\. ../../nvm.sh -set -e - -nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 1' -nvm install 4 >/dev/null 2>&1 || die 'install v4 failed' -nvm install-latest-npm || die 'nvm install-latest-npm failed: 1' -NPM_VERSION="$(npm --version)" -nvm_version_greater_than_or_equal_to "${NPM_VERSION}" 5.0.0 || die "node v4.x updates to ${NPM_VERSION}; expected >= v5" - -nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 2' -nvm install 1.0 >/dev/null 2>&1 || die 'install v1.0 failed' -nvm install-latest-npm || die 'nvm install-latest-npm failed: 2' -NPM_VERSION="$(npm --version)" -[ "${NPM_VERSION}" = '4.5.0' ] || die "io.js v1.0.x updates to ${NPM_VERSION}; expected v4.5.0" - -nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 3' -nvm install 1 >/dev/null 2>&1 || die 'install v1 failed' -nvm install-latest-npm || die 'nvm install-latest-npm failed: 3' -NPM_VERSION="$(npm --version)" -[ "${NPM_VERSION}" = '4.6.1' ] || die "io.js v1.x updates to ${NPM_VERSION}; expected v4.6.1" - -nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 4' -nvm install 0.8.27 >/dev/null 2>&1 || die 'install v0.8 failed' -nvm install-latest-npm || die 'nvm install-latest-npm failed: 4' -NPM_VERSION="$(npm --version)" -[ "${NPM_VERSION}" = '4.5.0' ] || die "node 0.8.27 updates to ${NPM_VERSION}; expected v4.5.0" - -## Commented to work around travis-ci breaking 0,6 installs -# nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 5' -# nvm install 0.6.21 >/dev/null 2>&1 || die 'install v0.6 failed' -# export NPM_CONFIG_STRICT_SSL=false # npm 1 on travis can't handle SSL to npm -# nvm install-latest-npm || die 'nvm install-latest-npm failed: 5' -# NPM_VERSION="$(npm --version)" -# [ "${NPM_VERSION}" = '1.3.26' ] || die "node 0.6.21 updates to ${NPM_VERSION}; expected v1.3.26" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install two versions and use the latest one b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install two versions and use the latest one deleted file mode 100755 index 1fac2786..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install two versions and use the latest one +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/v0.9.7" ] && rm -R "${NVM_DIR}/v0.9.7" -[ -e "${NVM_DIR}/v0.9.12" ] && rm -R "${NVM_DIR}/v0.9.12" - -# Install from binary -nvm install 0.9.7 || die "'nvm install 0.9.7' failed" -nvm i 0.9.12 || die "'nvm i 0.9.12' failed" - -# Check -[ -d "${NVM_DIR}/v0.9.7" ] || die "v0.9.7 didn't exist" -[ -d "${NVM_DIR}/v0.9.12" ] || die "v0.9.12 didn't exist" - -# Use the first one -nvm use 0.9.7 || die "'nvm use 0.9.7' failed" - -# Use the latest one -nvm use 0.9 || die "'nvm use 0.9' failed" -node --version | grep v0.9.12 || die "'node --version' was not v0.9.12, got: $(node --version)" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from binary b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from binary deleted file mode 100755 index 0c90c999..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from binary +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_TEST_VERSION=v0.10.7 - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Install from binary -echo "$NVM_TEST_VERSION" > .nvmrc - -nvm install || die "'nvm install' failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] || die "./$NVM_TEST_VERSION did not exist" -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION \ - || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from source b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from source deleted file mode 100755 index 85ede4d0..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install version specified in .nvmrc from source +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -NVM_TEST_VERSION=v0.10.7 - -# Remove the stuff we're clobbering. -[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION - -# Install from binary -echo "$NVM_TEST_VERSION" > .nvmrc - -nvm install -s || "'nvm install -s' failed" - -# Check -[ -d ../../$NVM_TEST_VERSION ] || die "$NVM_TEST_VERSION did not exist" -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION \ - || die "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install while reinstalling packages b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install while reinstalling packages deleted file mode 100755 index 0c1046da..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install while reinstalling packages +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -# Remove the stuff we're clobbering. -[ -e "${NVM_DIR}/v0.9.7" ] && rm -R "${NVM_DIR}/v0.9.7" -[ -e "${NVM_DIR}/v0.9.12" ] && rm -R "${NVM_DIR}/v0.9.12" - -# Install from binary -nvm install 0.9.7 - -# Check -[ -d "${NVM_DIR}/v0.9.7" ] || die "nvm install 0.9.7 didn't install" - -nvm use 0.9.7 - -node --version | grep v0.9.7 > /dev/null || die "nvm use 0.9.7 failed" - -npm install -g object-is@0.0.0 || die "npm install -g object-is failed" -npm list --global | grep object-is > /dev/null || die "object-is isn't installed" - -nvm ls 0.9 | grep v0.9.7 > /dev/null || die "nvm ls 0.9 didn't show v0.9.7" - -nvm install 0.9.12 --reinstall-packages-from=0.9 || die "nvm install 0.9.12 --reinstall-packages-from=0.9 failed" - -[ -d "${NVM_DIR}/v0.9.12" ] || die "nvm install 0.9.12 didn't install" - -nvm use 0.9 -node --version | grep v0.9.12 > /dev/null || die "nvm ls 0.9 didn't use v0.9.12" - -npm list --global | grep object-is > /dev/null || die "object-is isn't installed" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install with --latest-npm b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install with --latest-npm deleted file mode 100755 index 55ac74b1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/install with --latest-npm +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -set +e # todo: fix -\. ../../nvm.sh -set -e - -NVM_DEBUG=1 nvm install --latest-npm 4.2.2 \ - | grep 'Attempting to upgrade to the latest working version of npm...' || die 'did not call through to nvm_install_latest_npm' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/setup_dir deleted file mode 100755 index cb4522d1..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/setup_dir +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ -f ".nvmrc" ]; then - mv .nvmrc .nvmrc.bak -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/teardown_dir deleted file mode 100755 index 2aad1204..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/installation_node/teardown_dir +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -\. ../../nvm.sh -nvm deactivate -nvm uninstall v0.10.7 -nvm uninstall v4.2.2 - -if [ -f ".nvmrc" ]; then - rm .nvmrc -fi - -if [ -f ".nvmrc.bak" ]; then - mv .nvmrc.bak .nvmrc -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_amd64 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_amd64 deleted file mode 100755 index 37f805be..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_amd64 +++ /dev/null @@ -1,5 +0,0 @@ -if [ "_$1" = "_-n" ]; then - echo "amd64" -else - echo "amd64 i386" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_x86 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_x86 deleted file mode 100755 index 4658d2ad..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/isainfo_x86 +++ /dev/null @@ -1,5 +0,0 @@ -if [ "_$1" = "_-n" ]; then - echo "i386" -else - echo "i386" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_amd64 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_amd64 deleted file mode 100755 index d25c527a..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_amd64 +++ /dev/null @@ -1,4 +0,0 @@ -# On SmartOS 64bits setups, pkg_info outputs _both_ i386 and x86_64 -# architectures as architectures supported by pkg_install. -echo "i386" -echo "x86_64" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_fail b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_fail deleted file mode 100755 index 379a4c98..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_fail +++ /dev/null @@ -1 +0,0 @@ -exit 1 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_x86 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_x86 deleted file mode 100755 index a5554697..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/pkg_info_x86 +++ /dev/null @@ -1 +0,0 @@ -echo "i386" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_amd64 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_amd64 deleted file mode 100755 index 03805ee9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_amd64 +++ /dev/null @@ -1,5 +0,0 @@ -if [ "_$1" = "_-m" ]; then - echo "x86_64" -else - echo "Darwin foo.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_x86 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_x86 deleted file mode 100755 index 1a345a3b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_osx_x86 +++ /dev/null @@ -1,5 +0,0 @@ -if [ "_$1" = "_-m" ]; then - echo "i386" -else - echo "Darwin foo.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_I386 i386" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_amd64 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_amd64 deleted file mode 100755 index 452f3bcf..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_amd64 +++ /dev/null @@ -1,5 +0,0 @@ -if [ "_$1" = "_-m" ]; then - echo "i86pc" -else - echo "SunOS dev 5.11 joyent_20150219T102159Z i86pc i386 i86pc Solaris" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_x86 b/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_x86 deleted file mode 100755 index 452f3bcf..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/mocks/uname_smartos_x86 +++ /dev/null @@ -1,5 +0,0 @@ -if [ "_$1" = "_-m" ]; then - echo "i86pc" -else - echo "SunOS dev 5.11 joyent_20150219T102159Z i86pc i386 i86pc Solaris" -fi diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/Running \"nvm current\" should display current nvm environment." "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/Running \"nvm current\" should display current nvm environment." deleted file mode 100755 index 01d765de..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/Running \"nvm current\" should display current nvm environment." +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -nvm install 0.10 - -[ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version: got \"$(nvm current)\", expected \"$(node -v)\"" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/node 0.6.21 should install 0.6.21-pre b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/node 0.6.21 should install 0.6.21-pre deleted file mode 100755 index f326adde..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/node 0.6.21 should install 0.6.21-pre +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../nvm.sh - -nvm install 0.6.21 || die 'v0.6.21 installation failed' -[ "_$(node -v)" = "_v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21, got $(node -v)" -[ "_$(nvm current)" = "_v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21, got $(nvm current)" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Preamble works and respects \"silent\" flag" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Preamble works and respects \"silent\" flag" deleted file mode 100755 index 08d0410e..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Preamble works and respects \"silent\" flag" +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm use 0.10 -NPM_VERSION_TEN="$(npm --version)" -NODE_VERSION_TEN="$(node --version)" - -nvm use 1.0.0 && [ "$(node --version)" = "v1.0.0" ] || die "\`nvm use\` failed!" -NPM_VERSION_ONE="$(npm --version)" - -OUTPUT="$(nvm exec 0.10 npm --version)" -EXPECTED_OUTPUT="Running node ${NODE_VERSION_TEN} (npm v${NPM_VERSION_TEN}) -${NPM_VERSION_TEN}" -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "\`nvm exec\` failed to report node preamble; expected '$EXPECTED_OUTPUT', got '$OUTPUT'" - -OUTPUT="$(nvm exec --silent 0.10 npm --version | head -1)" -EXPECTED_OUTPUT="${NPM_VERSION_TEN}" -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "\`nvm exec --silent\` failed to node suppress preamble; expected '$EXPECTED_OUTPUT', got '$OUTPUT'" - -OUTPUT="$(nvm exec 1 npm --version)" -EXPECTED_OUTPUT="Running io.js v1.0.0 (npm v${NPM_VERSION_ONE}) -${NPM_VERSION_ONE}" -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "\`nvm exec\` failed to report io.js preamble; expected '$EXPECTED_OUTPUT', got '$OUTPUT'" - -OUTPUT="$(nvm exec --silent 1 npm --version | head -1)" -EXPECTED_OUTPUT="${NPM_VERSION_ONE}" -[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "\`nvm exec --silent\` failed to suppress io.js preamble; expected '$EXPECTED_OUTPUT', got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec --lts\" should work" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec --lts\" should work" deleted file mode 100755 index 1be7c61f..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec --lts\" should work" +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm install --lts || die 'nvm install --lts failed' - -NPM_VERSION_LTS="$(npm --version)" -TEST_STRING="foo bar" - -nvm use 1.0.0 && [ "$(node --version)" = "v1.0.0" ] || die "\`nvm use\` failed!" - -[ "$(nvm exec --lts npm --version | tail -1)" = "$NPM_VERSION_LTS" ] || die "`nvm exec` failed to run with the correct version" - -[ "$(nvm exec --lts bash -c "printf '$TEST_STRING'" | tail -1)" = "$TEST_STRING" ] || die "\`nvm exec\` failed to run with a command including whitespace" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" deleted file mode 100755 index 88ff70a4..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm use 0.10 -NPM_VERSION_TEN="$(npm --version)" -TEST_STRING="foo bar" - -nvm use 1.0.0 && [ "$(node --version)" = "v1.0.0" ] || die "\`nvm use\` failed!" - -[ "$(nvm exec 0.10 npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "\`nvm exec\` failed to run with the correct version" - -[ "$(nvm exec 0.10 bash -c "printf '$TEST_STRING'" | tail -1)" = "$TEST_STRING" ] || die "\`nvm exec\` failed to run with a command including whitespace" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" deleted file mode 100755 index 8d3dcaee..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm use 0.10.7 -NPM_VERSION_TEN="$(npm --version)" - -nvm use 1.0.0 && [ "$(node --version)" = "v1.0.0" ] || die "\`nvm use\` failed!" - -echo "0.10.7" > .nvmrc - -[ "$(nvm exec npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "\`nvm exec\` failed to run with the .nvmrc version" - -[ "$(nvm exec npm --version | head -1)" = "Found '$PWD/.nvmrc' with version <0.10.7>" ] || die "\`nvm exec\` failed to print out the \"found in .nvmrc\" message" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/setup_dir deleted file mode 100755 index 79217427..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/setup_dir +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -nvm install 0.10.7 -nvm install 1.0.0 -nvm install --lts - -if [ -f ".nvmrc" ]; then - mv .nvmrc .nvmrc.bak -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/teardown_dir deleted file mode 100755 index b16b4169..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm exec/teardown_dir +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -nvm deactivate -nvm uninstall v0.10.7 -nvm uninstall v1.0.0 -nvm uninstall --lts - -rm .nvmrc - -if [ -f ".nvmrc.bak" ]; then - mv .nvmrc.bak .nvmrc -fi diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" deleted file mode 100755 index d5f8571e..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm use 0.10.28 > /dev/null - -nvm install-latest-npm || die 'nvm install-latest-npm failed' - -EXPECTED_MSG="Can not reinstall packages from the current version of node." -ACTUAL_MSG="$(nvm reinstall-packages 0.10.28 2>&1 > /dev/null)" -[ "~$ACTUAL_MSG" = "~$EXPECTED_MSG" ] || die "'nvm use 0.10.28 && nvm reinstall-packages 0.10.28' did not fail with the right message: '$ACTUAL_MESSAGE'" - -EXPECTED_ERROR_CODE="2" -ACTUAL_ERROR_CODE="$(nvm reinstall-packages 0.10.28 > /dev/null 2>&1 ; echo $?)" -[ "~$ACTUAL_ERROR_CODE" = "~$EXPECTED_ERROR_CODE" ] || die "'nvm use 0.10.28 && nvm reinstall-packages 0.10.28' did not fail with the right error code: expected '$EXPECTED_ERROR_CODE', got '$ACTUAL_ERROR_CODE'" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/setup_dir deleted file mode 100755 index 2dd0f3ee..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/setup_dir +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -nvm install 0.10.28 -nvm install 0.10.29 -nvm install 4.7.1 -nvm install 4.7.2 - -if [ -f ".nvmrc" ]; then - mv .nvmrc .nvmrc.bak -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/should work as expected b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/should work as expected deleted file mode 100755 index f4edca47..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/should work as expected +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm exec 0.10.28 npm install -g npm@~1.4.11 && nvm install-latest-npm # this is required because before 1.4.10, npm ls doesn't indicated linked packages -nvm exec 0.10.29 npm install -g npm@~1.4.11 && nvm install-latest-npm # this is required because before 1.4.10, npm ls doesn't indicated linked packages - -nvm use 0.10.28 -(cd test-npmlink && npm link) - -EXPECTED_PACKAGES="autoprefixer bower david eslint grunt-cli grunth-cli http-server jshint marked node-gyp npmlist recursive-blame spawn-sync test-npmlink uglify-js" - -echo "$EXPECTED_PACKAGES yo@1" | sed -e 's/test-npmlink //' | xargs npm install -g --quiet - -get_packages() { - npm list -g --depth=0 | \sed -e '1 d' -e 's/^.* \(.*\)@.*/\1/' -e '/^npm$/ d' | xargs -} - -nvm use 0.10.29 -ORIGINAL_PACKAGES=$(get_packages) - -nvm reinstall-packages 0.10.28 -FINAL_PACKAGES=$(get_packages) - -[ "$FINAL_PACKAGES" = "$EXPECTED_PACKAGES yo" ] || die "final packages ($FINAL_PACKAGES) did not match expected packages ($EXPECTED_PACKAGES)" -[ "$ORIGINAL_PACKAGES" != "$FINAL_PACKAGES" ] || die "original packages matched final packages ($ORIGINAL_PACKAGES)" - -[ $(test-npmlink) = 'ok' ] || die "failed to run test-npmlink" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/teardown_dir deleted file mode 100755 index 95bd476c..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/teardown_dir +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -nvm uninstall v0.10.28 -nvm uninstall v0.10.29 -nvm uninstall v4.7.1 -nvm uninstall v4.7.2 - -rm -f .nvmrc - -if [ -f ".nvmrc.bak" ]; then - mv .nvmrc.bak .nvmrc -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/index.js b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/index.js deleted file mode 100755 index 9558516a..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/index.js +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -console.log('ok') diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/package.json b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/package.json deleted file mode 100644 index e596ea46..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/test-npmlink/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "test-npmlink", - "version": "0.0.1", - "description": "Stub package for testing npm link", - "bin": { - "test-npmlink": "index.js" - }, - "author": "hax", - "license": "ISC" -} diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/works with no installs b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/works with no installs deleted file mode 100755 index ade209a5..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm reinstall-packages/works with no installs +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -get_packages() { - npm list -g --depth=0 | \sed -e '1 d' -e 's/^.* \(.*\)@.*/\1/' -e '/^npm$/ d' | xargs -} - -nvm use 4.7.2 -ORIGINAL_PACKAGES=$(get_packages) - -nvm reinstall-packages 4.7.1 -FINAL_PACKAGES=$(get_packages) - -[ -z "${ORIGINAL_PACKAGES}" ] || die "original packages were not empty: ${ORIGINAL_PACKAGES}" -[ -z "${FINAL_PACKAGES}" ] || die "final packages were not empty: ${FINAL_PACKAGES}" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" deleted file mode 100755 index 28912d15..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm run 0.10.7 --harmony --version -[ "_$(nvm run 0.10.7 --harmony --version 2>/dev/null | tail -1)" = "_v0.10.7" ] || die "\`nvm run --harmony --version\` failed to run with the correct version" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --lts\" should work" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --lts\" should work" deleted file mode 100755 index ead0dbdc..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run --lts\" should work" +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -OUTPUT="$(nvm run --silent --lts --version)" -EXPECTED_OUTPUT="$(nvm_match_version 'lts/*')" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm run --lts\` failed to run with the correct version; expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" - -OUTPUT="$(nvm run --silent --lts=argon --version)" -EXPECTED_OUTPUT="$(nvm_match_version 'lts/argon')" -[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm run --lts=argon\` failed to run with the correct version; expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" deleted file mode 100755 index b9a2c2ca..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -EXPECTED_OUTPUT='N/A: version "v0.2" is not yet installed. - -You need to run "nvm install 0.2" to install it before using it.' -[ "_$(nvm run 0.2 --version 2>&1)" = "_$EXPECTED_OUTPUT" ] || die "\`nvm run\` with an uninstalled node version failed to error out correctly" - -EXPECTED_OUTPUT='N/A: version "iojs-v0.2" is not yet installed. - -You need to run "nvm install iojs-0.2" to install it before using it.' -[ "_$(nvm run iojs-0.2 --version 2>&1)" = "_$EXPECTED_OUTPUT" ] || die "\`nvm run\` with an uninstalled iojs version failed to error out correctly" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should work" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should work" deleted file mode 100755 index d537d4a1..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run 0.x\" should work" +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -[ "$(nvm run 0.10.7 --version | tail -1)" = "v0.10.7" ] || die "\`nvm run\` failed to run with the correct version" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" deleted file mode 100755 index 3273ea04..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -echo "0.10.7" > .nvmrc - -[ "$(nvm run --version | tail -1)" = "v0.10.7" ] || die "\`nvm run\` failed to run with the .nvmrc version" - -[ "$(nvm run --version | head -1)" = "Found '$PWD/.nvmrc' with version <0.10.7>" ] || die "\`nvm run\` failed to print out the \"found in .nvmrc\" message" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/setup_dir deleted file mode 100755 index 0fde4d4b..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/setup_dir +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -nvm install 0.10.7 -nvm install --lts=argon -nvm install --lts - -if [ -f ".nvmrc" ]; then - mv .nvmrc .nvmrc.bak -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/teardown_dir deleted file mode 100755 index 53e2838a..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm run/teardown_dir +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -nvm deactivate -nvm uninstall v0.10.7 -nvm uninstall --lts=argon -nvm uninstall --lts - -rm .nvmrc - -if [ -f ".nvmrc.bak" ]; then - mv .nvmrc.bak .nvmrc -fi diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" deleted file mode 100755 index 7e62c2f0..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -# Source nvm -\. ../../../nvm.sh - -# Version to install/uninstall -NVM_TEST_VERSION=0.12.6 - -# Make sure it's not already here -[ -e ../../../$NVM_TEST_VERSION ] && rm -R ../../../$NVM_TEST_VERSION - -# Install it -nvm install $NVM_TEST_VERSION - -# Make sure it installed -nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node" - -# Switch to another version so we can uninstall -nvm use 0.12.7 - -# if zsh, set "nomatch" opt to reproduce failure from https://github.com/creationix/nvm/issues/1228 -if nvm_has "setopt"; then - setopt nomatch -fi - -# Uninstall it -nvm uninstall $NVM_TEST_VERSION - -# Make sure it uninstalled -nvm ls | grep "$NVM_TEST_VERSION" -[ "$?" != "0" ] || die "Failed to uninstall node" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" deleted file mode 100755 index 10de1c49..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -# Source nvm -\. ../../../nvm.sh - -# Version to install/uninstall -NVM_TEST_VERSION=5.10.1 - -# Make sure it's not already here -[ -e ../../../$NVM_TEST_VERSION ] && rm -R ../../../$NVM_TEST_VERSION - -# Install it -nvm install $NVM_TEST_VERSION - -# Make sure it installed -nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node" - -# Install global module as root -npm_path=$(which npm) -sudo -n "$npm_path" install jspm -g || die 'either sudo failed, or `npm install jspm -g` failed`' - -# Switch to another version so we can uninstall -nvm use 0.12.7 - -# Attempt to uninstall it -RETURN_MESSAGE="$(nvm uninstall $NVM_TEST_VERSION 2>&1)" -CHECK_FOR="Cannot uninstall, incorrect permissions on installation folder" -test "${RETURN_MESSAGE#*$CHECK_FOR}" != "$RETURN_MESSAGE" || die "Failed to show error message" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/setup_dir deleted file mode 100755 index 108dbe33..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/setup_dir +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -nvm install 0.12.7 diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/teardown_dir deleted file mode 100755 index 2fad54c9..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm uninstall/teardown_dir +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh -nvm uninstall 0.12.7 -nvm deactivate diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" deleted file mode 100755 index f5b9ec03..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate >/dev/null 2>&1 || die 'deactivate failed' - -nvm use --lts || die 'nvm use --lts failed' -OUTPUT="$(nvm current)" -EXPECTED_OUTPUT="$(nvm_resolve_alias 'lts/*')" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --lts' + 'nvm current' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'" - -OUTPUT="$(nvm use --silent --lts)" -EXPECTED_OUTPUT="" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --silent --lts' output was not silenced '$EXPECTED_OUTPUT'; got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" deleted file mode 100755 index 08016738..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -set -ex - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' - -nvm use --lts=testing || die 'nvm use --lts=testing failed' -OUTPUT="$(nvm current)" -EXPECTED_OUTPUT="$(nvm_resolve_alias 'lts/testing')" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --lts=testing' + 'nvm current' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'" - -OUTPUT="$(nvm use --silent --lts=testing)" -EXPECTED_OUTPUT="" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --silent --lts=testing' output was not silenced '$EXPECTED_OUTPUT'; got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" deleted file mode 100755 index 9b83d082..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' - -nvm use iojs || die 'nvm use iojs failed' -OUTPUT="$(nvm current)" -EXPECTED_OUTPUT="iojs-v1.0.1" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use iojs' + 'nvm current' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'" - -OUTPUT="$(nvm use --silent iojs)" -EXPECTED_OUTPUT="" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --silent iojs' output was not silenced '$EXPECTED_OUTPUT'; got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" deleted file mode 100755 index c87f3b43..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' - -nvm use node || die 'nvm use node failed' -OUTPUT="$(nvm current)" -EXPECTED_OUTPUT="$(nvm_version stable)" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use node' + 'nvm current' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'" - -OUTPUT="$(nvm use --silent node)" -EXPECTED_OUTPUT="" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --silent node' output was not silenced '$EXPECTED_OUTPUT'; got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" deleted file mode 100755 index d47a48af..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' - -nvm use 'v1.0.0' || die 'nvm use v1.0.0 failed' -OUTPUT="$(nvm current)" -EXPECTED_OUTPUT="$(nvm_version v1.0.0)" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use v1.0.0' + 'nvm current' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'" - -OUTPUT="$(nvm use --silent 'v1.0.0')" -EXPECTED_OUTPUT="" - -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --silent v1.0.0' output was not silenced '$EXPECTED_OUTPUT'; got '$OUTPUT'" diff --git "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" "b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" deleted file mode 100755 index 2fe0de79..00000000 --- "a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -\. ../../../nvm.sh - -nvm deactivate >/dev/null 2>&1 || die 'deactivate failed' - -nvm_die_on_prefix() { - echo >&2 "| $1 | $2 |" - return 3 -} - -OUTPUT="$(nvm use --silent node)" -EXPECTED_OUTPUT="" -[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ - || die "'nvm use --silent node' did not call through to 'nvm_die_on_prefix' and give output '$EXPECTED_OUTPUT'; got '$OUTPUT'" - -EXIT_CODE="$(nvm use --silent node >/dev/null 2>&1; echo $?)" -EXPECTED_CODE="11" -[ "_$EXIT_CODE" = "_$EXPECTED_CODE" ] \ - || die "'nvm use --silent node' when 'nvm_die_on_prefix' fails did not return '$EXPECTED_CODE'; got '$EXIT_CODE'" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/setup_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/setup_dir deleted file mode 100755 index e917f0bd..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/setup_dir +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -mkdir -p "${NVM_DIR}/.nvm_use_bak" -if [ -d "${NVM_DIR}/v*" ]; then - mv "${NVM_DIR}/v*" "${NVM_DIR}/.nvm_use_bak/" -fi -mkdir -p "${NVM_DIR}/.nvm_use_lts_alias_bak" -if [ -d "${NVM_DIR}/alias/lts" ]; then - mv "${NVM_DIR}/alias/lts/*" "${NVM_DIR}/.nvm_use_lts_alias_bak/" -fi - -for VERSION in "0.8.7" "0.9.1" "0.10.1" "0.11.1"; do - nvm install "v$VERSION" -done - -for VERSION in "1.0.0" "1.0.1"; do - nvm install "iojs-v$VERSION" -done - -nvm_make_alias lts/testing 0.10.1 -nvm_make_alias 'lts/*' lts/testing diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/teardown_dir b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/teardown_dir deleted file mode 100755 index 947be611..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm use/teardown_dir +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -\. ../../../nvm.sh - -for VERSION in "0.8.7" "0.9.1" "0.10.1" "0.11.1"; do - nvm uninstall "$VERSION" -done - -for VERSION in "1.0.0" "1.0.1"; do - nvm uninstall "iojs-v$VERSION" -done - -if [ -d "${NVM_DIR}/.nvm_use_bak/*" ]; then - mv "${NVM_DIR}/.nvm_use_bak/*" "${NVM_DIR}" - rmdir "${NVM_DIR}/.nvm_use_bak" -fi - -if [ -d "${NVM_DIR}/.nvm_use_lts_alias_bak" ]; then - rm -rf "${NVM_DIR}/alias/lts/*" - mv "${NVM_DIR}/.nvm_use_lts_alias_bak/*" "${NVM_DIR}/alias/lts/" - rmdir "${NVM_DIR}/.nvm_use_lts_alias_bak" -fi diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest deleted file mode 100755 index 77ef8d03..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f curl wget nvm_has -} - -\. ../../../nvm.sh - -EXPECTED_VERSION="v12.3.456" -URL="https://github.com/creationix/nvm/releases/tag/$EXPECTED_VERSION" -EXPECTED_CURL_ARGS="--compressed -q -w %{url_effective}\n -L -s -S http://latest.nvm.sh -o /dev/null" -EXPECTED_WGET_ARGS="-q http://latest.nvm.sh --server-response -O /dev/null" - -curl() { - if [ $# -eq 1 ] && [ "$1" = "-V" ]; then - echo " -curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3 -Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp -Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets" - elif [ "_$*" != "_$EXPECTED_CURL_ARGS" ]; then - echo >&2 "expected args ($EXPECTED_CURL_ARGS), got ($*)" - return 1 - else - echo $URL - fi -} -wget() { - if [ "_$*" != "_$EXPECTED_WGET_ARGS" ]; then - echo >&2 "expected args ($EXPECTED_WGET_ARGS), got ($*)" - return 1 - else - local WGET_CONTENTS - WGET_CONTENTS=" - HTTP/1.1 301 Moved Permanently - Location: https://github.com/creationix/nvm/releases/latest - Content-Type: text/html; charset=utf-8 - Content-Length: 84 - Date: Mon, 22 Dec 2014 02:11:15 GMT - HTTP/1.1 302 Found - Server: GitHub.com - Date: Mon, 22 Dec 2014 02:11:15 GMT - Content-Type: text/html; charset=utf-8 - Transfer-Encoding: chunked - Status: 302 Found - X-XSS-Protection: 1; mode=block - X-Frame-Options: deny - Content-Security-Policy: default-src *; script-src assets-cdn.github.com collector-cdn.github.com; object-src assets-cdn.github.com; style-src 'self' 'unsafe-inline' 'unsafe-eval' assets-cdn.github.com; img-src 'self' data: assets-cdn.github.com identicons.github.com www.google-analytics.com collector.githubapp.com *.githubusercontent.com *.gravatar.com *.wp.com; media-src 'none'; frame-src 'self' render.githubusercontent.com gist.github.com www.youtube.com player.vimeo.com checkout.paypal.com; font-src assets-cdn.github.com; connect-src 'self' ghconduit.com:25035 live.github.com uploads.github.com www.google-analytics.com s3.amazonaws.com - Cache-Control: no-cache - Vary: X-PJAX - Location: $URL - X-UA-Compatible: IE=Edge,chrome=1 - Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Fri, 22-Dec-2034 02:11:15 GMT; secure; HttpOnly - Set-Cookie: _gh_sess=eyJzZXNzaW9uX2lkIjoiNTMzNGNjZWUxM2VhZjNhN2M3MzIwZWUxNGYwNzhmNDkiLCJzcHlfcmVwbyI6ImNyZWF0aW9uaXgvbnZtIiwic3B5X3JlcG9fYXQiOjE0MTkyMTQyNzV9--e2fa4cf5305d61aa58c0e0bf21fdb335a9660dcf; path=/; secure; HttpOnly - X-Request-Id: 4b99bf200157dd845f76ab83e4093acc - X-Runtime: 0.030872 - X-Rack-Cache: miss - X-GitHub-Request-Id: 45B56780:3913:880EF6:54977DC3 - Strict-Transport-Security: max-age=31536000; includeSubdomains; preload - X-Content-Type-Options: nosniff - Vary: Accept-Encoding - X-Served-By: ef97014f01ea59c1ef337fe51a4d0331 - HTTP/1.1 200 OK - Server: GitHub.com - Date: Mon, 22 Dec 2014 02:11:15 GMT - Content-Type: text/html; charset=utf-8 - Transfer-Encoding: chunked - Status: 200 OK - X-XSS-Protection: 1; mode=block - X-Frame-Options: deny - Content-Security-Policy: default-src *; script-src assets-cdn.github.com collector-cdn.github.com; object-src assets-cdn.github.com; style-src 'self' 'unsafe-inline' 'unsafe-eval' assets-cdn.github.com; img-src 'self' data: assets-cdn.github.com identicons.github.com www.google-analytics.com collector.githubapp.com *.githubusercontent.com *.gravatar.com *.wp.com; media-src 'none'; frame-src 'self' render.githubusercontent.com gist.github.com www.youtube.com player.vimeo.com checkout.paypal.com; font-src assets-cdn.github.com; connect-src 'self' ghconduit.com:25035 live.github.com uploads.github.com www.google-analytics.com s3.amazonaws.com - Cache-Control: no-cache, private - Vary: X-PJAX - X-UA-Compatible: IE=Edge,chrome=1 - Set-Cookie: _gh_sess=eyJzZXNzaW9uX2lkIjoiNTMzNGNjZWUxM2VhZjNhN2M3MzIwZWUxNGYwNzhmNDkiLCJzcHlfcmVwbyI6ImNyZWF0aW9uaXgvbnZtIiwic3B5X3JlcG9fYXQiOjE0MTkyMTQyNzUsIl9jc3JmX3Rva2VuIjoiemZTVDNIRGo0QzF0dzkyNXp6NFBRdGJVbTl4NSsxTGo1cngwVFQ3NDVwdz0ifQ%3D%3D--b72bfd5241907dcf557b226e74351ff39f0e9ede; path=/; secure; HttpOnly - X-Request-Id: 305b0d158bf8c0b3fa488a33d7687091 - X-Runtime: 0.038544 - X-Rack-Cache: miss - X-GitHub-Request-Id: 45B56780:3913:880F19:54977DC3 - Strict-Transport-Security: max-age=31536000; includeSubdomains; preload - X-Content-Type-Options: nosniff - Vary: Accept-Encoding - X-Served-By: 926b734ea1992f8ee1f88ab967a93dac -" - "$WGET_CONTENTS" | while read line - do - >&2 echo "$line" - done - fi -} - -OUTPUT="$(nvm_get_latest)" -EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_$EXPECTED_VERSION" ] \ - || die "success path did not return version '$EXPECTED_VERSION', got '$OUTPUT'" -[ "_$EXIT_CODE" = "_0" ] \ - || die "success path did not exit with code 0, got $EXIT_CODE" - - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest failed redirect b/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest failed redirect deleted file mode 100755 index 97534e9e..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/slow/nvm_get_latest/nvm_get_latest failed redirect +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; cleanup ; exit 1; } - -cleanup() { - unset -f curl wget -} - -\. ../../../nvm.sh - -curl() { - return 1 -} -wget() { - return 1 -} - -OUTPUT="$(nvm_get_latest 2>&1)" -EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)" -[ "_$OUTPUT" = "_http://latest.nvm.sh did not redirect to the latest release on GitHub" ] \ - || die "failed redirect did not report correct error message, got '$OUTPUT'" -[ "_$EXIT_CODE" = "_2" ] \ - || die "failed redirect did not exit with code 2, got $EXIT_CODE" - -cleanup diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh should use the default if available b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh should use the default if available deleted file mode 100755 index 67e30485..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh should use the default if available +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -echo '0.10.1' > ../../alias/default || die 'creation of default alias failed' - -\. ../../nvm.sh || die 'sourcing returned nonzero exit code' -\. ../common.sh - -NVM_LS_CURRENT="$(nvm ls current | strip_colors | \grep -o v0.10.1)" -[ "_$NVM_LS_CURRENT" = '_v0.10.1' ] || die "'nvm ls current' did not return '-> v0.10.1', got '$NVM_LS_CURRENT'" - -# NVM_LS_CURRENT_COLORED="$(nvm ls current | sed -n l)" - -NVM_ALIAS_DEFAULT="$(nvm alias default | strip_colors)" -[ "_$NVM_ALIAS_DEFAULT" = "_default -> 0.10.1 (-> v0.10.1)" ] \ - || die "'nvm alias default did not return 'default -> 0.10.1 (-> v0.10.1)', got '$NVM_ALIAS_DEFAULT'" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it deleted file mode 100755 index 35ed5534..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } -supports_source_options () { - [ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ] -} - -if ! supports_source_options; then - echo 'this shell does not support passing options on sourcing' - exit 0; -fi - -echo '0.10.2' > ../../.nvmrc || die 'creation of .nvmrc failed' - -\. ../../nvm.sh --install -EXIT_CODE="$(echo $?)" - -echo 'sourcing complete.' - -nvm_version 0.10.2 >/dev/null 2>&1 || die "v0.10.2 not installed: $(nvm ls)" - -[ "_$(nvm_rc_version | \grep -o -e 'with version .*$')" = "_with version <0.10.2>" ] || die "nvm_rc_version $(nvm_rc_version)" - -[ "_$EXIT_CODE" = "_0" ] || die "sourcing returned nonzero exit code: $EXIT_CODE" - -NVM_LS_CURRENT="$(nvm ls current | \grep -o v0.10.2)" -[ "_$NVM_LS_CURRENT" = '_v0.10.2' ] || die "'nvm ls current' did not return '-> v0.10.2', got '$NVM_LS_CURRENT' `nvm ls`" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install should install the default b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install should install the default deleted file mode 100755 index 8791455c..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --install should install the default +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -\. ../common.sh - -die () { echo "$@" ; exit 1; } -supports_source_options () { - [ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ] -} - -if ! supports_source_options; then - echo 'this shell does not support passing options on sourcing' - exit 0; -fi - -echo '0.10.2' > ../../alias/default || die 'creation of default alias failed' - -echo 'sourcing nvm with --install...' - -\. ../../nvm.sh --install -EXIT_CODE="$(echo $?)" - -echo 'sourcing complete.' - -nvm_version 0.10.2 >/dev/null 2>&1 || die "v0.10.2 not installed: $(nvm ls)" - -[ "_$EXIT_CODE" = "_0" ] || die "sourcing returned nonzero exit code: $EXIT_CODE" - -NVM_LS_CURRENT="$(nvm ls current | strip_colors | command grep -o v0.10.2)" -[ "_$NVM_LS_CURRENT" = '_v0.10.2' ] || die "'nvm ls current' did not return '-> v0.10.2', got '$NVM_LS_CURRENT'" - -NVM_ALIAS_DEFAULT="$(nvm alias default | strip_colors)" -[ "_$NVM_ALIAS_DEFAULT" = "_default -> 0.10.2 (-> v0.10.2)" ] \ - || die "'nvm alias default did not return 'default -> 0.10.2 (-> v0.10.2)', got '$NVM_ALIAS_DEFAULT'" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --no-use should not use anything b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --no-use should not use anything deleted file mode 100755 index 5b98d4b2..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with --no-use should not use anything +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } -supports_source_options () { - [ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ] -} - -if ! supports_source_options; then - echo 'this shell does not support passing options on sourcing' - exit 0; -fi - -\. ../../nvm.sh -nvm install 4.1.0 || die 'install of v4.1.0 failed' -nvm_version 4.1.0 >/dev/null 2>&1 || die "v4.1.0 not installed: $(nvm ls)" -nvm deactivate || die 'nvm deactivate failed' - -NVM_CURRENT="$(nvm current)" -[ "_$NVM_CURRENT" = '_none' ] || [ "_$NVM_CURRENT" = '_system' ] || die "'nvm current' did not return 'none' or 'system', got '$NVM_CURRENT' `nvm ls`" - -nvm unload || die 'nvm unload failed' - -\. ../../nvm.sh --no-use -EXIT_CODE="$(echo $?)" - -echo 'sourcing complete.' - -[ "_$EXIT_CODE" = "_0" ] || die "sourcing returned nonzero exit code: $EXIT_CODE" - -NVM_CURRENT="$(nvm current)" -[ "_$NVM_CURRENT" = '_none' ] || [ "_$NVM_CURRENT" = '_system' ] || die "'nvm current' did not return 'none' or 'system', got '$NVM_CURRENT' `nvm ls`" diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with no default should return 0 b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with no default should return 0 deleted file mode 100755 index 7fd4fc79..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/Sourcing nvm.sh with no default should return 0 +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -die () { echo "$@" ; exit 1; } - -touch ../../alias/default -rm ../../alias/default || die 'removal of default alias failed' -nvm_alias default && die '"nvm_alias default" did not fail' - -set -e # necessary to fail internally with a nonzero code - -\. ../../nvm.sh || die 'sourcing returned nonzero exit code' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/setup b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/setup deleted file mode 100755 index 44b688e4..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/setup +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -mkdir -p ../../alias -rm -rf ../../alias/default -rm -f ../../.nvmrc -rm -rf ../../v0.10.7 -rm -rf ../../v0.9.7 -rm -rf ../../v0.9.12 - -\. ../../nvm.sh -nvm install 0.10.1 || echo >&2 'nvm install 0.10.1 failed' -nvm unalias default || 'removing default alias failed' -nvm unload || echo >&2 'nvm unload failed' diff --git a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/teardown b/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/teardown deleted file mode 100755 index 00a87495..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/test/sourcing/teardown +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -rm -rf ../../alias -rm -rf ../../v0.10.1 -rm -rf ../../v0.10.2 -rm -f ../../.nvmrc diff --git a/buildroot-external/rootfs-overlay/root/.nvm/update_test_mocks.sh b/buildroot-external/rootfs-overlay/root/.nvm/update_test_mocks.sh deleted file mode 100755 index 981b32fc..00000000 --- a/buildroot-external/rootfs-overlay/root/.nvm/update_test_mocks.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -set -e - -echo 'Updating test mocks...' - -MOCKS_DIR="$PWD/test/fast/Unit tests/mocks" - -echo "creating $MOCKS_DIR" -mkdir -p "$MOCKS_DIR" - -\. "$NVM_DIR/nvm.sh" --no-use -nvm deactivate 2> /dev/null -nvm_is_version_installed() { - return 1 -} - -nvm_make_alias() { - # prevent local alias creation - return 0 -} - -nvm_ls_remote > "$MOCKS_DIR/nvm_ls_remote.txt" -nvm_ls_remote_iojs > "$MOCKS_DIR/nvm_ls_remote_iojs.txt" -NVM_LTS=* nvm_ls_remote > "$MOCKS_DIR/nvm_ls_remote LTS.txt" -NVM_LTS=argon nvm_ls_remote > "$MOCKS_DIR/nvm_ls_remote LTS argon.txt" -nvm_download -L -s "$(nvm_get_mirror node std)/index.tab" -o - > "$MOCKS_DIR/nodejs.org-dist-index.tab" -nvm_download -L -s "$(nvm_get_mirror iojs std)/index.tab" -o - > "$MOCKS_DIR/iojs.org-dist-index.tab" -nvm ls-remote > "$MOCKS_DIR/nvm ls-remote.txt" -nvm ls-remote --lts > "$MOCKS_DIR/nvm ls-remote lts.txt" -nvm ls-remote node > "$MOCKS_DIR/nvm ls-remote node.txt" -nvm ls-remote iojs > "$MOCKS_DIR/nvm ls-remote iojs.txt" -nvm_print_implicit_alias remote stable > "$MOCKS_DIR/nvm_print_implicit_alias remote stable.txt" -nvm_ls_remote stable > "$MOCKS_DIR/nvm_ls_remote stable.txt" - -ALIAS_PATH="$MOCKS_DIR/nvm_make_alias LTS alias calls.txt" -: > "$ALIAS_PATH" -nvm_make_alias() { - # prevent local alias creation, and store arguments - echo "${1}|${2}" >> "$ALIAS_PATH" -} -nvm ls-remote --lts > /dev/null - -echo "done! Don't forget to git commit them."