summaryrefslogtreecommitdiff
path: root/tools/test-npm.sh
diff options
context:
space:
mode:
authorJeremiah Senkpiel <fishrock123@rocketmail.com>2015-06-15 09:10:44 -0700
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2015-07-24 17:58:49 -0700
commit68b06e94e3e1de11c45b613aff9836310360a8e2 (patch)
tree0de21423ee51b460305687cfd655b355fc2ff73c /tools/test-npm.sh
parentafd7e37ee04d49b9345df748f5f59fc34c6216e5 (diff)
downloadnode-new-68b06e94e3e1de11c45b613aff9836310360a8e2.tar.gz
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>
Diffstat (limited to 'tools/test-npm.sh')
-rwxr-xr-xtools/test-npm.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/test-npm.sh b/tools/test-npm.sh
index 5f6c5fd003..25e037c3e4 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