Browse Source

tools: update npm test tooling for 3.3.10+

PR-URL: https://github.com/nodejs/node/pull/3599
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
process-exit-stdio-flushing
Rebecca Turner 9 years ago
committed by Jeremiah Senkpiel
parent
commit
754061f3ae
  1. 9
      tools/test-npm.sh

9
tools/test-npm.sh

@ -30,11 +30,14 @@ 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 cli.js rebuild
# install npm devDependencies and run npm's tests
../$NODE cli.js install --ignore-scripts
../$NODE test/run.js
../$NODE cli.js run-script tap -- "test/tap/*.js"
node cli.js install --ignore-scripts
# run the tests
node cli.js run-script test-node
# clean up everything one single shot
cd .. && rm -rf test-npm

Loading…
Cancel
Save