234
234
235
235
.PHONY : jstest
236
236
jstest : build-addons build-addons-napi # # Runs addon tests and JS tests
237
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release \
237
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) \
238
238
$(CI_JS_SUITES ) \
239
239
$(CI_NATIVE_SUITES )
240
240
@@ -269,13 +269,13 @@ test-cov: all
269
269
$(MAKE ) lint
270
270
271
271
test-parallel : all
272
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release parallel
272
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) parallel
273
273
274
274
test-valgrind : all
275
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release --valgrind sequential parallel message
275
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) --valgrind sequential parallel message
276
276
277
277
test-check-deopts : all
278
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release --check-deopts parallel sequential
278
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) --check-deopts parallel sequential
279
279
280
280
benchmark/misc/function_call/build/Release/binding.node : all \
281
281
benchmark/misc/function_call/binding.cc \
@@ -398,7 +398,7 @@ clear-stalled:
398
398
399
399
.PHONY : test-gc
400
400
test-gc : all test/gc/build/Release/binding.node
401
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release gc
401
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) gc
402
402
403
403
.PHONY : test-gc-clean
404
404
test-gc-clean :
@@ -425,15 +425,15 @@ CI_DOC := doctool
425
425
test-ci-native : LOGLEVEL := info
426
426
test-ci-native : | test/addons/.buildstamp test/addons-napi/.buildstamp
427
427
$(PYTHON ) tools/test.py $(PARALLEL_ARGS ) -p tap --logfile test.tap \
428
- --mode=release --flaky-tests=$(FLAKY_TESTS ) \
428
+ --mode=$( BUILDTYPE_LOWER ) --flaky-tests=$(FLAKY_TESTS ) \
429
429
$(TEST_CI_ARGS ) $(CI_NATIVE_SUITES )
430
430
431
431
.PHONY : test-ci-js
432
432
# This target should not use a native compiler at all
433
433
# Related CI job: node-test-commit-arm-fanned
434
434
test-ci-js : | clear-stalled
435
435
$(PYTHON ) tools/test.py $(PARALLEL_ARGS ) -p tap --logfile test.tap \
436
- --mode=release --flaky-tests=$(FLAKY_TESTS ) \
436
+ --mode=$( BUILDTYPE_LOWER ) --flaky-tests=$(FLAKY_TESTS ) \
437
437
$(TEST_CI_ARGS ) $(CI_JS_SUITES )
438
438
# Clean up any leftover processes, error if found.
439
439
ps awwx | grep Release/node | grep -v grep | cat
@@ -448,7 +448,7 @@ test-ci: LOGLEVEL := info
448
448
test-ci : | clear-stalled build-addons build-addons-napi doc-only
449
449
out/Release/cctest --gtest_output=tap:cctest.tap
450
450
$(PYTHON ) tools/test.py $(PARALLEL_ARGS ) -p tap --logfile test.tap \
451
- --mode=release --flaky-tests=$(FLAKY_TESTS ) \
451
+ --mode=$( BUILDTYPE_LOWER ) --flaky-tests=$(FLAKY_TESTS ) \
452
452
$(TEST_CI_ARGS ) $(CI_JS_SUITES ) $(CI_NATIVE_SUITES ) $(CI_DOC )
453
453
# Clean up any leftover processes, error if found.
454
454
ps awwx | grep Release/node | grep -v grep | cat
@@ -475,7 +475,7 @@ run-ci: build-ci
475
475
$(MAKE ) test-ci
476
476
477
477
test-release : test-build
478
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release
478
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER )
479
479
480
480
test-debug : test-build
481
481
$(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=debug
@@ -521,7 +521,7 @@ test-npm-publish: $(NODE_EXE)
521
521
522
522
.PHONY : test-addons-napi
523
523
test-addons-napi : test-build-addons-napi
524
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release addons-napi
524
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) addons-napi
525
525
526
526
.PHONY : test-addons-napi-clean
527
527
test-addons-napi-clean :
@@ -530,7 +530,7 @@ test-addons-napi-clean:
530
530
531
531
.PHONY : test-addons
532
532
test-addons : test-build test-addons-napi
533
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release addons
533
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) addons
534
534
535
535
.PHONY : test-addons-clean
536
536
test-addons-clean :
@@ -541,19 +541,19 @@ test-addons-clean:
541
541
542
542
test-timers :
543
543
$(MAKE ) --directory=tools faketime
544
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release timers
544
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) timers
545
545
546
546
test-timers-clean :
547
547
$(MAKE ) --directory=tools clean
548
548
549
549
test-async-hooks :
550
- $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release async-hooks
550
+ $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) async-hooks
551
551
552
552
test-with-async-hooks :
553
553
$(MAKE ) build-addons
554
554
$(MAKE ) build-addons-napi
555
555
$(MAKE ) cctest
556
- NODE_TEST_WITH_ASYNC_HOOKS=1 $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=release \
556
+ NODE_TEST_WITH_ASYNC_HOOKS=1 $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) --mode=$( BUILDTYPE_LOWER ) \
557
557
$(CI_JS_SUITES ) \
558
558
$(CI_NATIVE_SUITES )
559
559
0 commit comments