Skip to content

Enable running core test suite in parallel#4246

Merged
pwojcikdev merged 13 commits intonanocurrency:developfrom
pwojcikdev:parallel-core-tests
Jun 13, 2023
Merged

Enable running core test suite in parallel#4246
pwojcikdev merged 13 commits intonanocurrency:developfrom
pwojcikdev:parallel-core-tests

Conversation

@pwojcikdev
Copy link
Copy Markdown
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 force-pushed the parallel-core-tests branch from c488eab to fe7a21f Compare June 7, 2023 00:29
@pwojcikdev pwojcikdev requested a review from clemahieu June 8, 2023 12:53
@pwojcikdev pwojcikdev merged commit 2e9f5bd into nanocurrency:develop Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants