diff options
author | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-06-15 09:10:44 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-07-24 17:58:49 -0700 |
commit | 68b06e94e3e1de11c45b613aff9836310360a8e2 (patch) | |
tree | 0de21423ee51b460305687cfd655b355fc2ff73c | |
parent | afd7e37ee04d49b9345df748f5f59fc34c6216e5 (diff) | |
download | nodejs-68b06e94e3e1de11c45b613aff9836310360a8e2.tar.gz nodejs-68b06e94e3e1de11c45b613aff9836310360a8e2.tar.bz2 nodejs-68b06e94e3e1de11c45b613aff9836310360a8e2.zip |
tools: use local or specified $NODE for test-npm
PR-URL: https://github.com/nodejs/io.js/pull/1984
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Roman Reiss <me@silverwind.io>
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | tools/test-npm.sh | 13 |
2 files changed, 8 insertions, 7 deletions
@@ -139,7 +139,7 @@ test-debugger: all $(PYTHON) tools/test.py debugger test-npm: $(NODE_EXE) - NODE_EXE=$(NODE_EXE) tools/test-npm.sh + NODE=$(NODE) tools/test-npm.sh test-npm-publish: $(NODE_EXE) npm_package_config_publishtest=true $(NODE) deps/npm/test/run.js diff --git a/tools/test-npm.sh b/tools/test-npm.sh index 5f6c5fd00..25e037c3e 100755 --- a/tools/test-npm.sh +++ b/tools/test-npm.sh @@ -5,9 +5,9 @@ set -e # always change the working directory to the project's root directory cd $(dirname $0)/.. -# pass NODE_EXE from something like Makefile -# it should point to either {./}node or {./}node.exe, depending on the platform -if [ -z $NODE_EXE ]; then +# pass a $NODE environment variable from something like Makefile +# it should point to either ./iojs or ./iojs.exe, depending on the platform +if [ -z $NODE ]; then echo "No node executable provided. Bailing." >&2 exit 0 fi @@ -29,9 +29,10 @@ export npm_config_prefix="npm-prefix" export npm_config_tmp="npm-tmp" # install npm devDependencies and run npm's tests -../$NODE_EXE cli.js install --ignore-scripts -../$NODE_EXE cli.js run-script test-legacy -../$NODE_EXE cli.js run-script test + +../$NODE cli.js install --ignore-scripts +../$NODE cli.js run-script test-legacy +../$NODE cli.js run-script test # clean up everything one single shot cd .. && rm -rf test-npm |