diff options
author | isaacs <i@izs.me> | 2012-05-03 10:16:25 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-05-04 14:30:54 -0700 |
commit | e63c7821d5fc4e2f92c0606ab16b7846893ac3d1 (patch) | |
tree | a5dab2064e436bce0157f6ffa72948c5f955a89e /Makefile | |
parent | e4dd8dc28efc8bbf8e2adb3d9ce17229db46219b (diff) | |
download | node-new-e63c7821d5fc4e2f92c0606ab16b7846893ac3d1.tar.gz |
Tests for memory leaks
Conflicts:
Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -42,14 +42,16 @@ uninstall: clean: -rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md -find out/ -name '*.o' -o -name '*.a' | xargs rm -rf + -rm -rf node_modules distclean: -rm -rf out -rm -f config.gypi -rm -f config.mk -rm -rf node node_g blog.html email.md + -rm -rf node_modules -test: all +test: all node_modules/weak $(PYTHON) tools/test.py --mode=release simple message PYTHONPATH=tools/closure_linter/ $(PYTHON) tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js @@ -59,9 +61,17 @@ test-http1: all test-valgrind: all $(PYTHON) tools/test.py --mode=release --valgrind simple message -test-all: all - python tools/test.py --mode=debug,release - $(MAKE) test-npm +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 test-all-http1: all $(PYTHON) tools/test.py --mode=debug,release --use-http1 |