Questions tagged [functional-test]

27 questions
7
votes
1 answer

How does bitcoin functional test framework work?

Could someone explain how and where in the code the bitcoin test framework calls map to C++ bitcoin core code or RPC calls such that regression suite tests the bitcoin core functionality? Background and more details I am writing a blockchain…
6
votes
2 answers

How do I get started debugging Bitcoin Core functional tests?

I would like to get started with debugging Bitcoin Core code. I have heard debugging Bitcoin Core functional tests is a good place to start as they are in Python rather than C++ and they are easier to understand. Any recommendations or good…
Michael Folkson
  • 14,337
  • 3
  • 11
  • 45
4
votes
1 answer

I would like to dig into the open Taproot PR to understand it, test it and possibly even review it. Any advice or recommendations?

I would like to dig into the open Taproot PR (PR #19953) to understand it, test it and possibly even review it. Any advice or recommendations?
3
votes
2 answers

How can I analyze the test coverage of the Bitcoin Core codebase?

I have heard writing tests is a good starting point for contributing to Bitcoin Core. How do I work out which parts or specific lines of the codebase need additional test coverage?
3
votes
0 answers

Creating a P2SH-P2WPKH using Bitcoin Functional Test Framework

I'm using the Bitcoin Functional Test framework to understand how SegWit works by analyzing and building a P2SH-P2WPKH transaction. When I run my code the transaction gets created, but when I inspect the Tx Hex, I cannot see the SegWit marker 00 on…
Bitcoin_1o1
  • 343
  • 1
  • 12
2
votes
1 answer

What are some examples of previous first contributions improving Bitcoin Core tests?

I have heard that improving the Bitcoin Core tests is a good way to start contributing to Bitcoin Core. What are some good examples of previous first contributions to the tests to take some inspiration from?
2
votes
1 answer

What is Valgrind? When should I use it for debugging Bitcoin Core over using gdb, lldb, pdb etc?

I was watching Fabian Jahr's presentation on debugging Bitcoin Core at Bitcoin Edge Dev++ 2019. He mentioned Valgrind briefly at the end. What is it and when should I use it over gdb, lldb, pdb etc?
2
votes
1 answer

Where is an example of a feature test testing bitcoin-cli?

Looking for an example so I can run some functional tests against bitcoin-cli.
Kaizen
  • 331
  • 1
  • 6
2
votes
2 answers

Error from launching single functional tests on macos

I'm getting acquainted with the functional testing suite in an attempt to become a bitcoin core developer. I'm attempting to run a single test with this command. python feature_shutdown.py I receive an error such as this. In this error I notice a…
Kaizen
  • 331
  • 1
  • 6
2
votes
0 answers

How to compile and conduct functional tests of Bitcoin core for CPU (32 bit) and memory constrained system?

I wanted to use my old laptop to run a bitcoin full node. Specifications: Processor: Intel Core2Duo @2.2 GHz i686 OS: Lubuntu 18.04.6 LTS (I have tried first on Lubuntu 16.04, but it failed due to lack of a compiler with c++17 feature. The fix was…
2
votes
1 answer

How can I keep my disk usage under control when regularly running the Bitcoin Core functional tests?

What directories should I delete regularly to keep my disk usage under control when regularly running Bitcoin Core and the unit/functional tests?
1
vote
1 answer

Can I speed up the running of functional tests?

I am running the Bitcoin Core functional tests using the test runner and it is taking a long time to get through all the tests. Is there a way to speed it up? test/functional/test_runner.py --extended
Michael Folkson
  • 14,337
  • 3
  • 11
  • 45
1
vote
1 answer

I'm digging further into the open Taproot PR. Can you explain the BIP340 test vectors?

I'm digging further into the open Taproot PR. I found these BIP340 test vectors. They have secret keys, public keys, aux_rand (auxiliary randomness), message, signature and whether the signature verifies or not. Can you explain why the signatures…
1
vote
0 answers

I am getting this error when I try to run example_test.py. Is there anything I am doing wrong?

I am getting this error when I try to run example_test.py. Is there anything I am doing wrong?
1
vote
1 answer

How can I tweak a private key in bitcoin core

I'm wondering what the workflow is for building tapscripts. I can generate a new address, but how do I tweak it with the tap script? I've done the bitcoin taproot workshop a couple times now and starting to get a grip of what is going on, but I…
Kaizen
  • 331
  • 1
  • 6
1
2