diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-08-17 12:48:01 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-08-24 05:52:23 +0200 |
commit | a36b5405029597ce09e15373a321c47930689c08 (patch) | |
tree | 1e5d6923a8bc8b00c8c6dcebdb6f18bdc209de11 /Makefile | |
parent | 86c4655a0fbeeaa29c49d5537e190f6cdedfd4d8 (diff) | |
download | node-new-a36b5405029597ce09e15373a321c47930689c08.tar.gz |
build: for --enable-static, run only cctest
Currently when building with --enable-static and running the test target
the following error will be reported:
Building addon
/node/test/addons/01_function_arguments/
env: ./node: No such file or directory
make[1]: *** [test/addons/.buildstamp] Error 1
Note that this is with a clean build where no prior node executable was
built.
This commit suggests only running the cctest target when --enable-static
is specified.
PR-URL: https://github.com/nodejs/node/pull/14892
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Lance Ball <lball@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -192,6 +192,10 @@ v8: tools/make-v8.sh $(MAKE) -C deps/v8 $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS) +ifeq ($(NODE_TARGET_TYPE),static_library) +test: all + $(MAKE) cctest +else test: all $(MAKE) build-addons $(MAKE) build-addons-napi @@ -200,6 +204,7 @@ test: all $(CI_JS_SUITES) \ $(CI_NATIVE_SUITES) $(MAKE) lint +endif test-parallel: all $(PYTHON) tools/test.py --mode=release parallel -J |