zcashd/qa/rpc-tests
Jack Grigg 44e5b42751
Check chainValueZat when checking value pool monitoring
2018-01-03 23:41:53 +01:00
..
test_framework Print result of RPC call in test only when PYTHON_DEBUG is set 2017-12-16 19:24:25 +01:00
.gitignore
README.md
bip65-cltv-p2p.py Fix BIP65 and BIP66 tests 2017-10-05 15:18:54 +01:00
bipdersig-p2p.py Fix BIP65 and BIP66 tests 2017-10-05 15:18:54 +01:00
decodescript.py
disablewallet.py
forknotify.py
fundrawtransaction.py
getblocktemplate.py
getblocktemplate_longpoll.py
getblocktemplate_proposals.py
getchaintips.py
hardforkdetection.py
httpbasics.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
invalidateblock.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
invalidblockrequest.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
key_import_export.py Fix pyflakes warnings in RPC tests 2017-09-27 17:24:19 +01:00
keypool.py
listtransactions.py
maxblocksinflight.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
mempool_coinbase_spends.py
mempool_resurrect_test.py
mempool_spendcoinbase.py
mempool_tx_input_limit.py Deduplicate test utility method wait_and_assert_operationid_status 2017-12-16 19:24:25 +01:00
merkle_blocks.py
nodehandling.py
p2p-acceptblock.py
paymentdisclosure.py Auto merge of #2796 - per-gron:less-verbose-tests, r=daira 2017-12-17 00:22:38 -08:00
prioritisetransaction.py Deduplicate test utility method wait_and_assert_operationid_status 2017-12-16 19:24:25 +01:00
proton_test.py
proxy_test.py
pruning.py
rawtransactions.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
receivedby.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
reindex.py
rest.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
rpcbind_test.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
script_test.py
signrawtransactions.py
smartfees.py
txn_doublespend.py
wallet.py Closes #2759. Fixes broken pipe error with QA test wallet.py. 2017-11-22 00:02:52 -08:00
wallet_1941.py Deduplicate test utility method wait_and_assert_operationid_status 2017-12-16 19:24:25 +01:00
wallet_nullifiers.py Add watch-only support to Zcash RPC methods 2017-12-20 00:46:37 +00:00
wallet_protectcoinbase.py Check chainValueZat when checking value pool monitoring 2018-01-03 23:41:53 +01:00
wallet_shieldcoinbase.py Deduplicate test utility method wait_and_assert_operationid_status 2017-12-16 19:24:25 +01:00
wallet_treestate.py Deduplicate test utility method wait_and_assert_operationid_status 2017-12-16 19:24:25 +01:00
walletbackup.py RPC dumpwallet and z_exportwallet updated to no longer allow 2017-11-16 22:29:37 -08:00
zapwallettxes.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
zcjoinsplit.py
zcjoinsplitdoublespend.py
zkey_import_export.py Fix pyflakes warnings in zkey_import_export RPC test 2017-12-21 18:19:42 +00:00
zmq_test.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +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/test_framework.py

Base class for new regression tests.

test_framework/util.py

Generally useful functions.

Notes

You can run a single test by calling qa/pull-tester/rpc-tests.sh <testname>.

Run all possible tests with qa/pull-tester/rpc-tests.sh -extended.

Possible options:

-h, --help       show this help message and exit
  --nocleanup      Leave bitcoinds and test.* datadir on exit or error
  --noshutdown     Don't stop bitcoinds after the test execution
  --srcdir=SRCDIR  Source directory containing bitcoind/bitcoin-cli (default:
                   ../../src)
  --tmpdir=TMPDIR  Root directory for datadirs
  --tracerpc       Print out all RPC calls as they are made

If you set the environment variable PYTHON_DEBUG=1 you will get some debug output (example: PYTHON_DEBUG=1 qa/pull-tester/rpc-tests.sh wallet).

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 its 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