| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 13d0e46 commit 9606f76
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,23 @@ STAGINGSERVER ?= node-www | |||
| 11 | 11 | ||
| 12 | 12 | OSTYPE := $(shell uname -s | tr '[A-Z]' '[a-z]') | |
| 13 | 13 | ||
| 14 | + ifdef QUICKCHECK | ||
| 15 | + QUICKCHECK_ARG := --quickcheck | ||
| 16 | + endif | ||
| 17 | + | ||
| 18 | + ifdef ENABLE_V8_TAP | ||
| 19 | + TAP_V8 := --junitout v8-tap.xml | ||
| 20 | + TAP_V8_INTL := --junitout v8-intl-tap.xml | ||
| 21 | + TAP_V8_BENCHMARKS := --junitout v8-benchmarks-tap.xml | ||
| 22 | + endif | ||
| 23 | + | ||
| 24 | + ifdef DISABLE_V8_I18N | ||
| 25 | + V8_TEST_NO_I18N := --noi18n | ||
| 26 | + V8_BUILD_OPTIONS += i18nsupport=off | ||
| 27 | + endif | ||
| 28 | + | ||
| 29 | + BUILDTYPE_LOWER := $(shell echo $(BUILDTYPE) | tr '[A-Z]' '[a-z]') | ||
| 30 | + | ||
| 14 | 31 | # Determine EXEEXT | |
| 15 | 32 | EXEEXT := $(shell $(PYTHON) -c \ | |
| 16 | 33 | "import sys; print('.exe' if sys.platform == 'win32' else '')") | |
@@ -81,12 +98,18 @@ distclean: | |||
| 81 | 98 | -rm -rf deps/icu | |
| 82 | 99 | -rm -rf deps/icu4c*.tgz deps/icu4c*.zip deps/icu-tmp | |
| 83 | 100 | -rm -f $(BINARYTAR).* $(TARBALL).* | |
| 101 | + -rm -rf deps/v8/testing/gmock | ||
| 102 | + -rm -rf deps/v8/testing/gtest | ||
| 84 | 103 | ||
| 85 | 104 | check: test | |
| 86 | 105 | ||
| 87 | 106 | cctest: all | |
| 88 | 107 | @out/$(BUILDTYPE)/$@ | |
| 89 | 108 | ||
| 109 | + v8: | ||
| 110 | + tools/make-v8.sh v8 | ||
| 111 | + $(MAKE) -C deps/v8 $(V8_ARCH) $(V8_BUILD_OPTIONS) | ||
| 112 | + | ||
| 90 | 113 | test: | cctest # Depends on 'all'. | |
| 91 | 114 | $(PYTHON) tools/test.py --mode=release doctool message parallel sequential -J | |
| 92 | 115 | $(MAKE) jslint | |
@@ -187,6 +210,30 @@ test-timers: | |||
| 187 | 210 | test-timers-clean: | |
| 188 | 211 | $(MAKE) --directory=tools clean | |
| 189 | 212 | ||
| 213 | + test-v8: | ||
| 214 | + # note: performs full test unless QUICKCHECK is specified | ||
| 215 | + deps/v8/tools/run-tests.py --arch=$(V8_ARCH) \ | ||
| 216 | + --mode=$(BUILDTYPE_LOWER) $(V8_TEST_NO_I18N) $(QUICKCHECK_ARG) \ | ||
| 217 | + --no-presubmit \ | ||
| 218 | + --shell-dir=$(PWD)/deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) \ | ||
| 219 | + $(TAP_V8) | ||
| 220 | + | ||
| 221 | + test-v8-intl: | ||
| 222 | + # note: performs full test unless QUICKCHECK is specified | ||
| 223 | + deps/v8/tools/run-tests.py --arch=$(V8_ARCH) \ | ||
| 224 | + --mode=$(BUILDTYPE_LOWER) --no-presubmit $(QUICKCHECK_ARG) \ | ||
| 225 | + --shell-dir=deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) intl \ | ||
| 226 | + $(TAP_V8_INTL) | ||
| 227 | + | ||
| 228 | + test-v8-benchmarks: | ||
| 229 | + deps/v8/tools/run-tests.py --arch=$(V8_ARCH) --mode=$(BUILDTYPE_LOWER) \ | ||
| 230 | + --download-data $(QUICKCHECK_ARG) --no-presubmit \ | ||
| 231 | + --shell-dir=deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) benchmarks \ | ||
| 232 | + $(TAP_V8_BENCHMARKS) | ||
| 233 | + | ||
| 234 | + test-v8-all: test-v8 test-v8-intl test-v8-benchmarks | ||
| 235 | + # runs all v8 tests | ||
| 236 | + | ||
| 190 | 237 | apidoc_sources = $(wildcard doc/api/*.markdown) | |
| 191 | 238 | apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html)) \ | |
| 192 | 239 | $(addprefix out/,$(apidoc_sources:.markdown=.json)) | |
@@ -328,6 +375,15 @@ endif | |||
| 328 | 375 | endif | |
| 329 | 376 | endif | |
| 330 | 377 | ||
| 378 | + # node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32'). | ||
| 379 | + # pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU. | ||
| 380 | + ifeq ($(DESTCPU),x86) | ||
| 381 | + V8_ARCH=ia32 | ||
| 382 | + else | ||
| 383 | + V8_ARCH ?= $(DESTCPU) | ||
| 384 | + | ||
| 385 | + endif | ||
| 386 | + | ||
| 331 | 387 | # enforce "x86" over "ia32" as the generally accepted way of referring to 32-bit intel | |
| 332 | 388 | ifeq ($(ARCH),ia32) | |
| 333 | 389 | override ARCH=x86 | |
@@ -594,4 +650,4 @@ lint-ci: lint | |||
| 594 | 650 | blog blogclean tar binary release-only bench-http-simple bench-idle \ | |
| 595 | 651 | bench-all bench bench-misc bench-array bench-buffer bench-net \ | |
| 596 | 652 | bench-http bench-fs bench-tls cctest run-ci lint-ci bench-ci \ | |
| 597 | - $(TARBALL)-headers | ||
| 653 | + test-v8 test-v8-intl test-v8-benchmarks test-v8-all v8 $(TARBALL)-headers | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments