-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: Create test utility library from src/test/util/ #17542
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
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.
ACK
Not sure why the mac builds succeed, but the linux ones fail, but maybe you need to link BITCOIN_SERVER to the test util lib?
Concept ACK Welcome as a contributor @brakmic! Hope to see more great contributions from you in the future! |
I must admit that I'm not sure what the best way is to link another lib to libtest_util.a. |
Many thanks! :) |
I'll try it with LIBADD. --EDIT: the linking seems to be working now. |
Could squash the commits into one with
|
ACK a2e581d 🍞 Show signature and timestampSignature:
Timestamp of file with hash |
…/util/ a2e581d build: Create test utility library from src/test/util/ (Harris) Pull request description: This PR creates a static **test utility library** that replaces repetitive compilations of sources from *src/test/util* in **unit**, **gui** and **bench** **tests**. The original issue is here: bitcoin#17401 The changes are: * a new *Makefile.test_util.include* * a new entry in *Makefile.am* that includes *Makefile.test_util.include* when testing is enabled * removal of all *src/test/util* headers & sources from unit, gui and bench Makefiles * addition of *libtest_util.a* at LDADD's of every test ACKs for top commit: MarcoFalke: ACK a2e581d 🍞 Tree-SHA512: d172127a26ee70d16625e17d7d94337a65472c57bb97f910c357c52d3dc082ea478ee586ee9074d9ebfeb05b75027e5e15f5bcd2aa35962dadfd9ac6bfd55ab9
b509554 Added libtest_util library to msvc build configuration. (Aaron Clauson) Pull request description: libtest_util was introduced in #17542. This PR adds the msvc build configuration. ACKs for top commit: fanquake: ACK b509554 - Appveyor looks good. Tree-SHA512: abd9f8427375ae0e75e8227d853cccc666fd9e906038d97b787d9185dec1024232a6c64301e26e66fcaf86492183328abe4a7abd7af3321f062cd8722eb83b4c
…tion b509554 Added libtest_util library to msvc build configuration. (Aaron Clauson) Pull request description: libtest_util was introduced in bitcoin#17542. This PR adds the msvc build configuration. ACKs for top commit: fanquake: ACK b509554 - Appveyor looks good. Tree-SHA512: abd9f8427375ae0e75e8227d853cccc666fd9e906038d97b787d9185dec1024232a6c64301e26e66fcaf86492183328abe4a7abd7af3321f062cd8722eb83b4c
…rary 78e283e [test] move wallet helper functions into test library (Martin Zumsande) f613e5d [test] move mining helper functions into test library (Martin Zumsande) 2cb4e8b [test] move string helper functions into test library (Martin Zumsande) Pull request description: This disbands `test/util.h` and `test/util.cpp` and moves the content into the test utility library recently created in #17542, so that all test utility functions are in one place. The content of the original files are split into three modules: 1) string helper functions go to `test/util/str` 2) mining helper functions go to the newly created `test/util/mining` 3) wallet helper functions go to the newly created `test/util/wallet` ACKs for top commit: MarcoFalke: ACK 78e283e 🔧 Tree-SHA512: f182a61e86e76c32bcb84e37f44904d3a4a9c5a321f7a8efdda5368a6623cb8b5a5384ec4f96e67f0357b0c22099f6e3ecd0ac4cb467e3fa3f3128f8d36edfb8
…ity library 78e283e [test] move wallet helper functions into test library (Martin Zumsande) f613e5d [test] move mining helper functions into test library (Martin Zumsande) 2cb4e8b [test] move string helper functions into test library (Martin Zumsande) Pull request description: This disbands `test/util.h` and `test/util.cpp` and moves the content into the test utility library recently created in bitcoin#17542, so that all test utility functions are in one place. The content of the original files are split into three modules: 1) string helper functions go to `test/util/str` 2) mining helper functions go to the newly created `test/util/mining` 3) wallet helper functions go to the newly created `test/util/wallet` ACKs for top commit: MarcoFalke: ACK 78e283e 🔧 Tree-SHA512: f182a61e86e76c32bcb84e37f44904d3a4a9c5a321f7a8efdda5368a6623cb8b5a5384ec4f96e67f0357b0c22099f6e3ecd0ac4cb467e3fa3f3128f8d36edfb8
….cpp 691e2a7 build: create test_fuzz library from src/test/fuzz/fuzz.cpp (Harris) Pull request description: This PR creates a static library **libtest_fuzz.a** to speed up the compilation of fuzz tests. It is functionally similar to #17542 Fixes #18527 ACKs for top commit: MarcoFalke: ACK 691e2a7 🦁 Tree-SHA512: 39d7d2731ca4370db518dbb969eb17ddbf9c030c3fe0dec0d04ff6578f24a128563fe5aced78300c92ce296623a7079fea5aea70619819a20c56fb34191f00ef
Summary: Thsi is a backport fo Core [[bitcoin/bitcoin#17542 | PR17542]] Test Plan: ninja all check bitcoin-fuzzers Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Subscribers: majcosta Differential Revision: https://reviews.bitcoinabc.org/D6759
…tion b509554 Added libtest_util library to msvc build configuration. (Aaron Clauson) Pull request description: libtest_util was introduced in bitcoin#17542. This PR adds the msvc build configuration. ACKs for top commit: fanquake: ACK b509554 - Appveyor looks good. Tree-SHA512: abd9f8427375ae0e75e8227d853cccc666fd9e906038d97b787d9185dec1024232a6c64301e26e66fcaf86492183328abe4a7abd7af3321f062cd8722eb83b4c
…ity library 78e283e [test] move wallet helper functions into test library (Martin Zumsande) f613e5d [test] move mining helper functions into test library (Martin Zumsande) 2cb4e8b [test] move string helper functions into test library (Martin Zumsande) Pull request description: This disbands `test/util.h` and `test/util.cpp` and moves the content into the test utility library recently created in bitcoin#17542, so that all test utility functions are in one place. The content of the original files are split into three modules: 1) string helper functions go to `test/util/str` 2) mining helper functions go to the newly created `test/util/mining` 3) wallet helper functions go to the newly created `test/util/wallet` ACKs for top commit: MarcoFalke: ACK 78e283e 🔧 Tree-SHA512: f182a61e86e76c32bcb84e37f44904d3a4a9c5a321f7a8efdda5368a6623cb8b5a5384ec4f96e67f0357b0c22099f6e3ecd0ac4cb467e3fa3f3128f8d36edfb8
This PR creates a static test utility library that replaces repetitive compilations of sources from src/test/util in unit, gui and bench tests.
The original issue is here: #17401
The changes are: