Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable running core test suite in parallel #4246

Merged
merged 13 commits into from
Jun 13, 2023

Conversation

pwojcikdev
Copy link
Contributor

@pwojcikdev pwojcikdev commented Jun 6, 2023

This PR contains a set of fixes, which allow for running our core tests suite in parallel. This speeds up the execution time by an order of magnitude; on my device the time needed to run all tests dropped from 5 min+ to around 30 seconds. The tool that allows for parallel execution of gtest suites is https://github.com/google/gtest-parallel . Sample commands for getting it to work on macOS:

ulimit -n 1000000 # Needed to avoid 'too many open files' errors

./gtest-parallel "~/nano-node/cmake-build-debug/core_test"

@pwojcikdev pwojcikdev force-pushed the parallel-core-tests branch 2 times, most recently from 0073d21 to c488eab Compare June 7, 2023 00:28
@pwojcikdev pwojcikdev requested a review from clemahieu June 8, 2023 12:53
@pwojcikdev pwojcikdev merged commit 2e9f5bd into nanocurrency:develop Jun 13, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants