summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-01-18 22:49:18 +0000
committerFedor Indutny <fedor.indutny@gmail.com>2014-01-22 00:39:13 +0400
commit1442c1c6de1009a7f451a443c02b1450bcb5bc44 (patch)
tree32cace77dfd18e93d3edf85f1ace0e39456074a3 /Makefile
parent2a0b619f7b830b2e34f1707f4428c77a6fcf33fc (diff)
downloadandroid-node-v8-1442c1c6de1009a7f451a443c02b1450bcb5bc44.tar.gz
android-node-v8-1442c1c6de1009a7f451a443c02b1450bcb5bc44.tar.bz2
android-node-v8-1442c1c6de1009a7f451a443c02b1450bcb5bc44.zip
addons: build and test examples
fix #6910
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 22 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 0406b1d72f..cb27a33104 100644
--- a/Makefile
+++ b/Makefile
@@ -100,26 +100,38 @@ test/gc/node_modules/weak/build/Release/weakref.node:
--directory="$(shell pwd)/test/gc/node_modules/weak" \
--nodedir="$(shell pwd)"
+build-addons:
+ @if [ ! -f node ]; then make all; fi
+ rm -rf test/addons/doc-*/
+ ./node tools/doc/addon-verify.js
+ $(foreach dir, \
+ $(sort $(dir $(wildcard test/addons/*/*.gyp))), \
+ ./node deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
+ --directory="$(shell pwd)/$(dir)" \
+ --nodedir="$(shell pwd)" && ) echo "build done"
+
test-gc: all test/gc/node_modules/weak/build/Release/weakref.node
$(PYTHON) tools/test.py --mode=release gc
-test-all: all test/gc/node_modules/weak/build/Release/weakref.node
+test-build: all build-addons
+
+test-all: test-build test/gc/node_modules/weak/build/Release/weakref.node
$(PYTHON) tools/test.py --mode=debug,release
make test-npm
-test-all-http1: all
+test-all-http1: test-build
$(PYTHON) tools/test.py --mode=debug,release --use-http1
-test-all-valgrind: all
+test-all-valgrind: test-build
$(PYTHON) tools/test.py --mode=debug,release --valgrind
-test-release: all
+test-release: test-build
$(PYTHON) tools/test.py --mode=release
-test-debug: all
+test-debug: test-build
$(PYTHON) tools/test.py --mode=debug
-test-message: all
+test-message: test-build
$(PYTHON) tools/test.py message
test-simple: all
@@ -140,6 +152,9 @@ test-npm: node
test-npm-publish: node
npm_package_config_publishtest=true ./node deps/npm/test/run.js
+test-addons: test-build
+ $(PYTHON) tools/test.py --mode=release addons
+
apidoc_sources = $(wildcard doc/api/*.markdown)
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html)) \
$(addprefix out/,$(apidoc_sources:.markdown=.json))
@@ -418,4 +433,4 @@ cpplint:
lint: jslint cpplint
-.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all staticlib dynamiclib test test-all website-upload pkg blog blogclean tar binary release-only bench-http-simple bench-idle bench-all bench bench-misc bench-array bench-buffer bench-net bench-http bench-fs bench-tls
+.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all staticlib dynamiclib test test-all test-addons build-addons website-upload pkg blog blogclean tar binary release-only bench-http-simple bench-idle bench-all bench bench-misc bench-array bench-buffer bench-net bench-http bench-fs bench-tls