-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: add test-all-suites to Makefile #25799
Conversation
There is currently no Makefile target that runs every test suite. This adds one.
Resume Build CI: https://ci.nodejs.org/job/node-test-pull-request/20477/ ✅ |
This could use one more review/approval. @nodejs/build-files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=debug,release | ||
|
||
test-all-valgrind: test-build | ||
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=debug,release --valgrind | ||
|
||
.PHONY: test-all-suites | ||
test-all-suites: test-build test-js-native-api test-node-api | bench-addons-build ## Run all test suites. | ||
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) test/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT We don't need the test/*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[side note] Could we have a target that is not dependent on anything else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without test/*
, it runs 2413 test for me locally. With it, it runs 2639 tests. I think it's because leaving off test/*
means that test.py
will skip the suites in its IGNORED_SUITES
list.
Landed in e1aa943 |
There is currently no Makefile target that runs every test suite. This adds one. PR-URL: nodejs#25799 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
There is currently no Makefile target that runs every test suite. This adds one. PR-URL: #25799 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
There is currently no Makefile target that runs every test suite. This
adds one.
Didn't add it to
vcbuild.bat
because I'm not sure if*
wildcard works the same way on Windows or not and I don't have Windows to test. Apparently 26 of the 46 targets inMakefile
do not exist invcbuild.bat
so I suppose this is not a deal-breaker. But we can open a separate issue (and label itgood-first-contribution
) to have this added tovcbuild.bat
. Or someone can add a commit to this branch to add it if they have Windows and can test their implementation.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes