tools,test: teach test.py new tricks
- refactor and deduplicate code
- add list of slow tests - to be skipped for our CI debug build
The target is to get a regular CI job to finish in <= 1h (currently the debug build takes the longest to run). A more extensive suite will run only once a day.
/CC @nodejs/python @nodejs/testing
CI: https://ci.nodejs.org/job/node-test-pull-request/17613/
CI: https://ci.nodejs.org/job/node-test-pull-request/17614/
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines