```
make check
ninja check
ninja check-devtools
# run bitcoind for both mainnet and testnet
bitcoind
bitcoind --testnet
# show help message
generate_bestchainparams.py
generate_bestchainparams.py -h
generate_bestchainparams.py --help
# show error
generate_bestchainparams.py -t <some invalid hash>
generate_bestchainparams.py -m <some invalid hash>
generate_bestchainparams.py --cli <some invalid path>
# generates expected output
generate_bestchainparams.py --cli <path to bitcoin-cli>
generate_bestchainparams.py --cli <path to bitcoin-cli> -m <some mainnet block hash or height>
generate_bestchainparams.py --cli <path to bitcoin-cli> -t <some testnet block hash or height>
generate_bestchainparams.py --cli <path to bitcoin-cli> -m <valid mainnet block> -t <valid testnet block>
# saves output to file
generate_bestchainparams.py --cli <path to bitcoin-cli> -m 588857 -t 1309000 > ../../src/chainparamsbestchain.h
```