summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-09-23 18:59:35 -0700
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-11-05 10:35:42 -0800
commit272aa589af50566a20a491910d4dc40bb3692102 (patch)
tree4daabc00f1ba5f94f55b8cbe61981da4fca8b816 /Makefile
parent3589a62104eac1daae782ab479bec09f4df4dc9a (diff)
downloadandroid-node-v8-272aa589af50566a20a491910d4dc40bb3692102.tar.gz
android-node-v8-272aa589af50566a20a491910d4dc40bb3692102.tar.bz2
android-node-v8-272aa589af50566a20a491910d4dc40bb3692102.zip
test: more thorough tests for npm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a42d392073..f84c213449 100644
--- a/Makefile
+++ b/Makefile
@@ -147,7 +147,19 @@ test-debugger: all
$(PYTHON) tools/test.py debugger
test-npm: node
- ./node deps/npm/test/run.js
+ rm -rf npm-cache npm-tmp npm-prefix
+ mkdir npm-cache npm-tmp npm-prefix
+ cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
+ npm_config_prefix="$(shell pwd)/npm-prefix" \
+ npm_config_tmp="$(shell pwd)/npm-tmp" \
+ ../../node cli.js install
+ cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
+ npm_config_prefix="$(shell pwd)/npm-prefix" \
+ npm_config_tmp="$(shell pwd)/npm-tmp" \
+ ../../node cli.js run-script test-all && \
+ ../../node cli.js prune --prod && \
+ cd ../.. && \
+ rm -rf npm-cache npm-tmp npm-prefix
test-npm-publish: node
npm_package_config_publishtest=true ./node deps/npm/test/run.js