diff options
author | Gibson Fahnestock <gibfahn@gmail.com> | 2017-02-23 01:05:19 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-10-24 00:18:17 +0300 |
commit | 6b1f75d26f627b5c4c58c9c9f4bf8bd7989135e3 (patch) | |
tree | 537e3e0d9e0fb63d153e2f5b5787ed4843f1ee54 /tools | |
parent | c9715bb9c2754b2978f870bbd814edb0c29b67c7 (diff) |
test: update test-npm to use test-npm-package.js
Deletes the old test-npm.sh script.
PR-URL: https://github.com/nodejs/node/pull/11540
Refs: https://github.com/nodejs/node/pull/7867
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-npm.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tools/test-npm.sh b/tools/test-npm.sh deleted file mode 100755 index 421bdc207b9..00000000000 --- a/tools/test-npm.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -set -e - -# always change the working directory to the project's root directory -cd $(dirname $0)/.. - -# pass a $NODE environment variable from something like Makefile -# it should point to either ./node or ./node.exe, depending on the platform -if [ -z $NODE ]; then - echo "No node executable provided. Bailing." >&2 - exit 0 -fi - -rm -rf test-npm - -# make a copy of deps/npm to run the tests on -cp -r deps/npm test-npm - -cd test-npm - -# do a rm first just in case deps/npm contained these -rm -rf npm-cache npm-tmp npm-prefix -mkdir npm-cache npm-tmp npm-prefix - -# set some npm env variables to point to our new temporary folders -export npm_config_cache="$(pwd)/npm-cache" -export npm_config_prefix="$(pwd)/npm-prefix" -export npm_config_tmp="$(pwd)/npm-tmp" - -# ensure npm always uses the local node -export PATH="$(../$NODE -p 'require("path").resolve("..")'):$PATH" -unset NODE - -# make sure the binaries from the non-dev-deps are available -node bin/npm-cli.js rebuild -# install npm devDependencies and run npm's tests -node bin/npm-cli.js install --ignore-scripts --no-save -# run the tests -node bin/npm-cli.js run-script test-node - -# clean up everything one single shot -cd .. && rm -rf test-npm |