-
Notifications
You must be signed in to change notification settings - Fork 37.7k
doc: Added running functional tests in valgrind #17833
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
Conversation
MAC build having (unrelated) issue:
|
Thanks. yeah, i'm trying to figure out what's going on |
@@ -250,6 +250,7 @@ $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin | |||
$ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \ | |||
--show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite | |||
$ valgrind -v --leak-check=full src/bitcoind -printtoconsole | |||
$ ./test/functional/test_runner.py --valgrind |
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.
Thoughts:
- This should wait for tests: Add "make check-valgrind" to run the unit tests under Valgrind #17639
- This is example is visible when running
.test/functional/test_runner.py --help
, which is not the case for the existing examples - There should be a dedicated valgrind doc to link to here, and/or sections in test/README.md and test/functional/README.md about running with valgrind
- In general, this section could use more documentation, updating, or a link to more details
- This example requires valgrind 3.14 or later, which is not the case for the existing examples, and that should be documented
@instagibbs python2 is not supported, have you tried with python3? |
155a11f doc: Added running functional tests in valgrind (Elichai Turkel) Pull request description: Technically the notes only show an "example" of how to run valgrind with the suppression file, but now that bitcoin#17633 is merged then maybe this can encourage more people to run also the functional tests in valgrind Top commit has no ACKs. Tree-SHA512: b8417249b720d0ed5e10b732648f2e07e8889bfc7aa7e94192d1c049b4b7837971678d30c535f273c227848f1290cf11e14369fd6c1924b734f2e47e2af41401
Hi @MarcoFalke, I just had the same problem as @instagibbs and I'm also on OSX. You are right in that running
|
This should never happen when
|
155a11f doc: Added running functional tests in valgrind (Elichai Turkel) Pull request description: Technically the notes only show an "example" of how to run valgrind with the suppression file, but now that bitcoin#17633 is merged then maybe this can encourage more people to run also the functional tests in valgrind Top commit has no ACKs. Tree-SHA512: b8417249b720d0ed5e10b732648f2e07e8889bfc7aa7e94192d1c049b4b7837971678d30c535f273c227848f1290cf11e14369fd6c1924b734f2e47e2af41401
Technically the notes only show an "example" of how to run valgrind with the suppression file,
but now that #17633 is merged then maybe this can encourage more people to run also the functional tests in valgrind