Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-05-03 21:16:25 +0400
committerisaacs <i@izs.me>2012-05-03 21:36:17 +0400
commit91120e04297009ddabb6b7c68ec83a092041903c (patch)
tree13037730218f97edd9334f13e4c33876096cfc41 /Makefile
parentb7e8e35c0ed2d1faeac1354fcc6b34c5590075fa (diff)
Tests for memory leaks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0eb46052d2e..5bd675c334b 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ install:
uninstall:
@$(WAF) uninstall
-test: all
+test: all node_modules/weak
$(PYTHON) tools/test.py --mode=release simple message
test-http1: all
@@ -41,7 +41,15 @@ test-http1: all
test-valgrind: all
$(PYTHON) tools/test.py --mode=release --valgrind simple message
-test-all: all
+node_modules/weak:
+ @if [ ! -f node ]; then make all; fi
+ @if [ ! -d node_modules ]; then mkdir -p node_modules; fi
+ ./node deps/npm/bin/npm-cli.js install weak --prefix="$(shell pwd)"
+
+test-gc: all node_modules/weak
+ $(PYTHON) tools/test.py --mode=release gc
+
+test-all: all node_modules/weak
$(PYTHON) tools/test.py --mode=debug,release
make test-npm
@@ -153,6 +161,7 @@ clean:
$(WAF) clean
-find tools -name "*.pyc" | xargs rm -f
-rm -rf blog.html email.md
+ -rm -rf node_modules
distclean: docclean
-find tools -name "*.pyc" | xargs rm -f