| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ endif | |||
| 17 | 17 | ARCHTYPE := $(shell uname -m | tr '[:upper:]' '[:lower:]') | |
| 18 | 18 | COVTESTS ?= test-cov | |
| 19 | 19 | COV_SKIP_TESTS ?= core_line_numbers.js,testFinalizer.js,test_function/test.js | |
| 20 | - GTEST_FILTER ?= "*" | ||
| 20 | + GTEST_FILTER ?= * | ||
| 21 | 21 | GNUMAKEFLAGS += --no-print-directory | |
| 22 | 22 | GCOV ?= gcov | |
| 23 | 23 | PWD = $(CURDIR) | |
@@ -31,9 +31,9 @@ else | |||
| 31 | 31 | endif | |
| 32 | 32 | ||
| 33 | 33 | ifdef ENABLE_V8_TAP | |
| 34 | - TAP_V8 := --junitout $(PWD)/v8-tap.xml | ||
| 35 | - TAP_V8_INTL := --junitout $(PWD)/v8-intl-tap.xml | ||
| 36 | - TAP_V8_BENCHMARKS := --junitout $(PWD)/v8-benchmarks-tap.xml | ||
| 34 | + TAP_V8 := --junitout '$(PWD)/v8-tap.xml' | ||
| 35 | + TAP_V8_INTL := --junitout '$(PWD)/v8-intl-tap.xml' | ||
| 36 | + TAP_V8_BENCHMARKS := --junitout '$(PWD)/v8-benchmarks-tap.xml' | ||
| 37 | 37 | define convert_to_junit | |
| 38 | 38 | @true | |
| 39 | 39 | endef | |
@@ -47,12 +47,12 @@ ifdef ENABLE_CONVERT_V8_JSON_TO_XML | |||
| 47 | 47 | # By default, the V8's JSON test output only includes the tests which have | |
| 48 | 48 | # failed. We use --slow-tests-cutoff to ensure that all tests are present | |
| 49 | 49 | # in the output, including those which pass. | |
| 50 | - TAP_V8 := --json-test-results $(TAP_V8_JSON) --slow-tests-cutoff 1000000 | ||
| 51 | - TAP_V8_INTL := --json-test-results $(TAP_V8_INTL_JSON) --slow-tests-cutoff 1000000 | ||
| 52 | - TAP_V8_BENCHMARKS := --json-test-results $(TAP_V8_BENCHMARKS_JSON) --slow-tests-cutoff 1000000 | ||
| 50 | + TAP_V8 := --json-test-results '$(TAP_V8_JSON)' --slow-tests-cutoff 1000000 | ||
| 51 | + TAP_V8_INTL := --json-test-results '$(TAP_V8_INTL_JSON)' --slow-tests-cutoff 1000000 | ||
| 52 | + TAP_V8_BENCHMARKS := --json-test-results '$(TAP_V8_BENCHMARKS_JSON)' --slow-tests-cutoff 1000000 | ||
| 53 | 53 | ||
| 54 | 54 | define convert_to_junit | |
| 55 | - export PATH="$(NO_BIN_OVERRIDE_PATH)" && \ | ||
| 55 | + PATH="$(NO_BIN_OVERRIDE_PATH)" \ | ||
| 56 | 56 | $(PYTHON) tools/v8-json-to-junit.py < $(1) > $(1:.json=.xml) | |
| 57 | 57 | endef | |
| 58 | 58 | endif | |
@@ -83,11 +83,11 @@ NPM ?= ./deps/npm/bin/npm-cli.js | |||
| 83 | 83 | ||
| 84 | 84 | # Release build of node. | |
| 85 | 85 | # Use $(PWD) so we can cd to anywhere before calling this. | |
| 86 | - NODE ?= "$(PWD)/$(NODE_EXE)" | ||
| 86 | + NODE ?= $(PWD)/$(NODE_EXE) | ||
| 87 | 87 | # Prefer $(OUT_NODE) when running tests. Use $(NODE) | |
| 88 | 88 | # when generating coverage reports or running toolings as | |
| 89 | 89 | # debug build is be slower. | |
| 90 | - OUT_NODE ?= "$(PWD)/out/$(BUILDTYPE)/node$(EXEEXT)" | ||
| 90 | + OUT_NODE ?= $(PWD)/out/$(BUILDTYPE)/node$(EXEEXT) | ||
| 91 | 91 | ||
| 92 | 92 | # Flags for packaging. | |
| 93 | 93 | BUILD_DOWNLOAD_FLAGS ?= --download=all | |
@@ -100,8 +100,8 @@ V ?= 0 | |||
| 100 | 100 | ||
| 101 | 101 | # Use -e to double check in case it's a broken link | |
| 102 | 102 | available-node = \ | |
| 103 | - if [ -x "$(NODE)" ] && [ -e "$(NODE)" ]; then \ | ||
| 104 | - "$(NODE)" $(1); \ | ||
| 103 | + if [ -x '$(NODE)' ] && [ -e '$(NODE)' ]; then \ | ||
| 104 | + '$(NODE)' $(1); \ | ||
| 105 | 105 | elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then \ | |
| 106 | 106 | `command -v node` $(1); \ | |
| 107 | 107 | else \ | |
@@ -268,7 +268,7 @@ coverage-build: all ## Build coverage files. | |||
| 268 | 268 | coverage-build-js: ## Build JavaScript coverage files. | |
| 269 | 269 | mkdir -p node_modules | |
| 270 | 270 | if [ ! -d node_modules/c8 ]; then \ | |
| 271 | - $(NODE) ./deps/npm install c8 --no-save --no-package-lock;\ | ||
| 271 | + '$(NODE)' ./deps/npm install c8 --no-save --no-package-lock;\ | ||
| 272 | 272 | fi | |
| 273 | 273 | ||
| 274 | 274 | .PHONY: coverage-test | |
@@ -295,13 +295,13 @@ coverage-test: coverage-build ## Run the tests and generate a coverage report. | |||
| 295 | 295 | .PHONY: coverage-report-js | |
| 296 | 296 | coverage-report-js: ## Report JavaScript coverage results. | |
| 297 | 297 | -$(MAKE) coverage-build-js | |
| 298 | - $(NODE) ./node_modules/.bin/c8 report | ||
| 298 | + '$(NODE)' ./node_modules/.bin/c8 report | ||
| 299 | 299 | ||
| 300 | 300 | .PHONY: cctest | |
| 301 | 301 | ||
| 302 | 302 | cctest: all ## Run the C++ tests using the built `cctest` executable. | |
| 303 | 303 | @out/$(BUILDTYPE)/$@ --gtest_filter=$(GTEST_FILTER) | |
| 304 | - $(OUT_NODE) ./test/embedding/test-embedding.js | ||
| 304 | + '$(OUT_NODE)' ./test/embedding/test-embedding.js | ||
| 305 | 305 | ||
| 306 | 306 | .PHONY: list-gtests | |
| 307 | 307 | list-gtests: ## List all available C++ gtests. | |
@@ -393,7 +393,7 @@ test/addons/.docbuildstamp: $(DOCBUILDSTAMP_PREREQS) tools/doc/node_modules | |||
| 393 | 393 | echo "Skipping .docbuildstamp (no crypto and/or no ICU)"; \ | |
| 394 | 394 | else \ | |
| 395 | 395 | $(RM) -r test/addons/??_*/; \ | |
| 396 | - [ -x $(NODE) ] && $(NODE) $< || node $< ; \ | ||
| 396 | + [ -x '$(NODE)' ] && '$(NODE)' $< || node $< ; \ | ||
| 397 | 397 | [ $$? -eq 0 ] && touch $@; \ | |
| 398 | 398 | fi | |
| 399 | 399 | ||
@@ -613,7 +613,7 @@ test-ci: | clear-stalled bench-addons-build build-addons build-js-native-api-tes | |||
| 613 | 613 | $(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \ | |
| 614 | 614 | --mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \ | |
| 615 | 615 | $(TEST_CI_ARGS) $(CI_JS_SUITES) $(CI_NATIVE_SUITES) $(CI_DOC) | |
| 616 | - $(OUT_NODE) ./test/embedding/test-embedding.js | ||
| 616 | + '$(OUT_NODE)' ./test/embedding/test-embedding.js | ||
| 617 | 617 | $(info Clean up any leftover processes, error if found.) | |
| 618 | 618 | ps awwx | grep Release/node | grep -v grep | cat | |
| 619 | 619 | @PS_OUT=`ps awwx | grep Release/node | grep -v grep | awk '{print $$1}'`; \ | |
@@ -663,8 +663,8 @@ test-wpt: all ## Run the Web Platform Tests. | |||
| 663 | 663 | test-wpt-report: ## Run the Web Platform Tests and generate a report. | |
| 664 | 664 | $(RM) -r out/wpt | |
| 665 | 665 | mkdir -p out/wpt | |
| 666 | - -WPT_REPORT=1 $(PYTHON) tools/test.py --shell $(NODE) $(PARALLEL_ARGS) wpt | ||
| 667 | - $(NODE) "$$PWD/tools/merge-wpt-reports.mjs" | ||
| 666 | + -WPT_REPORT=1 $(PYTHON) tools/test.py --shell '$(NODE)' $(PARALLEL_ARGS) wpt | ||
| 667 | + '$(NODE)' "$$PWD/tools/merge-wpt-reports.mjs" | ||
| 668 | 668 | ||
| 669 | 669 | .PHONY: test-internet | |
| 670 | 670 | test-internet: all ## Run internet tests. | |
@@ -684,7 +684,7 @@ test-doc: doc-only lint-md ## Build, lint, and verify the docs. | |||
| 684 | 684 | ||
| 685 | 685 | .PHONY: test-doc-ci | |
| 686 | 686 | test-doc-ci: doc-only ## Build, lint, and verify the docs (CI). | |
| 687 | - $(PYTHON) tools/test.py --shell $(NODE) $(TEST_CI_ARGS) $(PARALLEL_ARGS) doctool | ||
| 687 | + $(PYTHON) tools/test.py --shell '$(NODE)' $(TEST_CI_ARGS) $(PARALLEL_ARGS) doctool | ||
| 688 | 688 | ||
| 689 | 689 | .PHONY: test-known-issues | |
| 690 | 690 | test-known-issues: all ## Run tests for known issues. | |
@@ -693,11 +693,11 @@ test-known-issues: all ## Run tests for known issues. | |||
| 693 | 693 | # Related CI job: node-test-npm | |
| 694 | 694 | .PHONY: test-npm | |
| 695 | 695 | test-npm: $(OUT_NODE) ## Run the npm test suite on deps/npm. | |
| 696 | - $(OUT_NODE) tools/test-npm-package --install --logfile=test-npm.tap deps/npm test | ||
| 696 | + '$(OUT_NODE)' tools/test-npm-package --install --logfile=test-npm.tap deps/npm test | ||
| 697 | 697 | ||
| 698 | 698 | .PHONY: test-npm-publish | |
| 699 | 699 | test-npm-publish: $(OUT_NODE) ## Test the `npm publish` command. | |
| 700 | - npm_package_config_publishtest=true $(OUT_NODE) deps/npm/test/run.js | ||
| 700 | + npm_package_config_publishtest=true '$(OUT_NODE)' deps/npm/test/run.js | ||
| 701 | 701 | ||
| 702 | 702 | .PHONY: test-js-native-api | |
| 703 | 703 | test-js-native-api: test-build-js-native-api ## Run JS Native-API tests. | |
@@ -841,7 +841,7 @@ out/doc/api/assets/%: doc/api_assets/% | out/doc/api/assets | |||
| 841 | 841 | @cp $< $@ ; $(RM) out/doc/api/assets/README.md | |
| 842 | 842 | ||
| 843 | 843 | ||
| 844 | - run-npm-ci = $(PWD)/$(NPM) ci | ||
| 844 | + run-npm-ci = '$(PWD)/$(NPM)' ci | ||
| 845 | 845 | ||
| 846 | 846 | LINK_DATA = out/doc/apilinks.json | |
| 847 | 847 | VERSIONS_DATA = out/previous-doc-versions.json | |
@@ -1181,7 +1181,7 @@ endif | |||
| 1181 | 1181 | $(MACOSOUTDIR)/dist/npm/usr/local/lib/node_modules | |
| 1182 | 1182 | unlink $(MACOSOUTDIR)/dist/node/usr/local/bin/npm | |
| 1183 | 1183 | unlink $(MACOSOUTDIR)/dist/node/usr/local/bin/npx | |
| 1184 | - $(NODE) tools/license2rtf.mjs < LICENSE > \ | ||
| 1184 | + '$(NODE)' tools/license2rtf.mjs < LICENSE > \ | ||
| 1185 | 1185 | $(MACOSOUTDIR)/installer/productbuild/Resources/license.rtf | |
| 1186 | 1186 | cp doc/osx_installer_logo.png $(MACOSOUTDIR)/installer/productbuild/Resources | |
| 1187 | 1187 | pkgbuild --version $(FULLVERSION) \ | |
@@ -1680,8 +1680,8 @@ HAS_DOCKER ?= $(shell command -v docker > /dev/null 2>&1; [ $$? -eq 0 ] && echo | |||
| 1680 | 1680 | ||
| 1681 | 1681 | .PHONY: gen-openssl | |
| 1682 | 1682 | ifeq ($(HAS_DOCKER), 1) | |
| 1683 | - DOCKER_COMMAND ?= docker run --rm -u $(shell id -u) -v $(PWD):/node | ||
| 1684 | - IS_IN_WORKTREE = $(shell grep '^gitdir: ' $(PWD)/.git 2>/dev/null) | ||
| 1683 | + DOCKER_COMMAND ?= docker run --rm -u $(shell id -u) -v '$(PWD):/node' | ||
| 1684 | + IS_IN_WORKTREE = $(shell grep '^gitdir: ' '$(PWD)/.git' 2>/dev/null) | ||
| 1685 | 1685 | GIT_WORKTREE_COMMON = $(shell git rev-parse --git-common-dir) | |
| 1686 | 1686 | DOCKER_COMMAND += $(if $(IS_IN_WORKTREE), -v $(GIT_WORKTREE_COMMON):$(GIT_WORKTREE_COMMON)) | |
| 1687 | 1687 | gen-openssl: ## Generate platform dependent openssl files (requires docker). | |
| Back | FazBrowse Home | New Git URL |
0 commit comments