BTCP-Rebase/qa/rpc-tests
Wladimir J. van der Laan 22cfe23196
Merge pull request #5890
cd3d67c Fix InvalidateBlock to add chainActive.Tip to setBlockIndexCandidates (Alex Morcos)
2015-03-24 14:50:54 +01:00
..
python-bitcoinrpc
.gitignore
README.md Fix README link from util.sh -> util.py. 2015-01-31 17:38:28 -05:00
bipdersig.py Add RPC test for DERSIG BIP switchover logic 2015-02-01 17:51:24 -04:00
conflictedbalance.sh
forknotify.py
getblocktemplate_longpoll.py
getblocktemplate_proposals.py Fix getblocktemplate_proposals test by mining one block 2015-02-04 12:04:49 -05:00
getchaintips.py
httpbasics.py [QA] fix httpbasic keep-alive test 2015-01-17 08:56:55 -08:00
invalidateblock.py Fix InvalidateBlock to add chainActive.Tip to setBlockIndexCandidates 2015-03-13 13:11:11 -04:00
keypool.py
listtransactions.py
mempool_coinbase_spends.py
mempool_resurrect_test.py
mempool_spendcoinbase.py
netutil.py
receivedby.py
rest.py [REST] add /rest/chaininfos 2014-12-29 20:19:48 +01:00
rpcbind_test.py
send.sh
smartfees.py Fix smartfees test for change to relay policy 2015-01-07 10:11:23 -05:00
test_framework.py fix tests for #5655 2015-01-14 09:50:00 -08:00
txn_doublespend.py
util.py
util.sh
wallet.py qa/rpc-tests/wallet: Tests for sendmany 2015-03-13 11:04:25 +01:00
walletbackup.py
zapwallettxes.py [QA] fix zapwallettxes test 2015-01-07 16:41:12 +01:00

README.md

Regression tests of RPC interface

python-bitcoinrpc

Git subtree of https://github.com/jgarzik/python-bitcoinrpc. Changes to python-bitcoinrpc should be made upstream, and then pulled here using git subtree.

test_framework.py

Base class for new regression tests.

listtransactions.py

Tests for the listtransactions RPC call.

util.py

Generally useful functions.

Bash-based tests, to be ported to Python:

  • wallet.sh : Exercise wallet send/receive code.
  • walletbackup.sh : Exercise wallet backup / dump / import
  • txnmall.sh : Test proper accounting of malleable transactions
  • conflictedbalance.sh : More testing of malleable transaction handling

Notes

A 200-block -regtest blockchain and wallets for four nodes is created the first time a regression test is run and is stored in the cache/ directory. Each node has 25 mature blocks (25*50=1250 BTC) in their wallet.

After the first run, the cache/ blockchain and wallets are copied into a temporary directory and used as the initial test state.

If you get into a bad state, you should be able to recover with:

rm -rf cache
killall bitcoind