-
Notifications
You must be signed in to change notification settings - Fork 37.7k
test: move accounting_tests and rpc_wallet_tests to wallet/test #7905
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
test: move accounting_tests and rpc_wallet_tests to wallet/test #7905
Conversation
Move the two other wallet tests to where they belong.
Yes! This should have been done long ago. Thanks for fixing. |
With this, I guess we also want a wallet-specific test fixture, to get rid of the |
Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by making the wallet tests use their own fixture.
8a1c078
to
f4eae2d
Compare
Done. Latest commit removes all wallet-related setup from These references to the wallet remain in
|
I believe the wallet_ismine code should be moved to script/sign or
script/standard.
|
bitdb.MakeMock(); | ||
|
||
bool fFirstRun; | ||
pwalletMain = new CWallet("wallet.dat"); |
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.
Could make sense to use "wallet_test.dat" here, to indicate that the file name is not hardcoded?
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.
Sounds good to me in principle (although I just moved this code here, I didn't touch it)
Edit: done in a separate commit
@sipa What about keeping it separate and just moving, e.g. |
Removes conditional dependency of `src/test` on wallet. Makes multisig and P2SH tests complete without wallet built-in.
Indicate that the file name is not hardcoded, and a little bit of safety so that it never nukes the main wallet. Suggestion by Marco Falke.
f2f572c
to
b30fb42
Compare
Done. All conditional wallet stuff is gone now from |
…et/test b30fb42 test: Rename wallet.dat to wallet_test.dat (Wladimir J. van der Laan) a25a4f5 wallet_ismine.h → script/ismine.h (Wladimir J. van der Laan) f4eae2d test: Create test fixture for wallet (Wladimir J. van der Laan) de39c95 test: move accounting_tests and rpc_wallet_tests to wallet/test (Wladimir J. van der Laan)
…to wallet/test b30fb42 test: Rename wallet.dat to wallet_test.dat (Wladimir J. van der Laan) a25a4f5 wallet_ismine.h → script/ismine.h (Wladimir J. van der Laan) f4eae2d test: Create test fixture for wallet (Wladimir J. van der Laan) de39c95 test: move accounting_tests and rpc_wallet_tests to wallet/test (Wladimir J. van der Laan)
Bitcoin wallet PRs 2 Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#7576 - bitcoin/bitcoin#7577 - bitcoin/bitcoin#7608 - bitcoin/bitcoin#7691 - bitcoin/bitcoin#7905
Move the two other wallet tests to where they belong.
@jonasschnelli I'm surprised you didn't stumble on this one yet