zcashd/qa/rpc-tests
mdr0id 2fcf06077f
Persist Sapling key material in the wallet to disk
2018-10-06 00:01:14 +01:00
..
test_framework Auto merge of #3479 - Eirik0:rpc-test-cleanup, r=bitcartel 2018-09-18 20:05:39 -07:00
.gitignore
README.md Regtest mining does have a founders reward, a single address t2FwcEhFdNXuFMv1tcYwaBJtYVtMj8b1uTg 2018-02-28 14:28:22 -08:00
bip65-cltv-p2p.py
bipdersig-p2p.py
blockchain.py rpc: update inline comments to refer to new file paths 2018-07-18 11:07:17 -06:00
decodescript.py Resolve issue bitcoin/bitcoin#3166. 2018-04-16 07:38:36 -06:00
disablewallet.py
forknotify.py
fundrawtransaction.py
getblocktemplate.py Add hashFinalSaplingRoot to getblocktemplate 2018-06-01 15:47:30 -06:00
getblocktemplate_longpoll.py
getblocktemplate_proposals.py
getchaintips.py
hardforkdetection.py
httpbasics.py
invalidateblock.py
invalidblockrequest.py
key_import_export.py
keypool.py
listtransactions.py
maxblocksinflight.py
mempool_nu_activation.py Update mempool_nu_activation RPC test to exercise both Overwinter and Sapling 2018-05-03 01:07:41 +01:00
mempool_reorg.py
mempool_resurrect_test.py
mempool_spendcoinbase.py
mempool_tx_expiry.py Add test for dependent txs to mempool_tx_expiry.py 2018-04-18 06:34:09 -07:00
mempool_tx_input_limit.py Allow passing timeout parameter to wait_and_assert_operationid_status 2018-09-14 18:41:14 -06:00
merkle_blocks.py Closes #3178 by adding verbosity level improvements to getblock RPC. 2018-04-30 11:51:59 -07:00
nodehandling.py
p2p-acceptblock.py
p2p_node_bloom.py generalize mininode.py protocol versioning 2018-08-02 20:30:20 -06:00
p2p_nu_peer_management.py qa: Test both Overwinter and Sapling peer management 2018-09-12 12:15:37 +01:00
p2p_txexpiry_dos.py generalize mininode.py protocol versioning 2018-08-02 20:30:20 -06:00
paymentdisclosure.py
prioritisetransaction.py
proton_test.py
proxy_test.py
pruning.py
rawtransactions.py [RPC] createrawtransaction: add option to set the sequence number per input 2018-04-12 18:10:04 -06:00
receivedby.py
regtest_signrawtransaction.py Closes #3534. Do not use APPROX_RELEASE_HEIGHT to get consensus branch 2018-09-21 11:10:15 -07:00
reindex.py
reorg_limit.py pyflakes cleanups to RPC tests after Overwinter PRs. 2018-03-12 14:15:25 +00:00
rest.py
rewind_index.py Add RPC test of RewindBlockIndex 2018-04-03 10:58:27 +01:00
rpcbind_test.py
script_test.py
signrawtransaction_offline.py Update qa test as offline regtest nodes need branch id passed in. 2018-09-21 17:16:44 -07:00
signrawtransactions.py
smartfees.py
txn_doublespend.py
wallet.py Remove unused imports 2018-09-14 18:41:14 -06:00
wallet_1941.py
wallet_addresses.py test: Fix permissions of wallet_addresses 2018-08-01 19:56:01 +01:00
wallet_anchorfork.py cleanup: Ensure code is pyflakes-clean for CI 2018-03-27 02:47:57 +02:00
wallet_changeindicator.py Only include the change field if we have a spending key 2018-08-06 09:58:40 -06:00
wallet_import_export.py Don't export empty zip32 metadata 2018-09-14 18:36:24 -06:00
wallet_listnotes.py Cleanup to address review comments. 2018-09-28 22:11:05 -07:00
wallet_listreceived.py Sapling support for z_listreceivedbyaddress 2018-09-27 16:59:29 -06:00
wallet_mergetoaddress.py Implement note locking for z_mergetoaddress 2018-03-29 15:48:34 -06:00
wallet_nullifiers.py Allow passing timeout parameter to wait_and_assert_operationid_status 2018-09-14 18:41:14 -06:00
wallet_overwintertx.py Add tests for expiryheight parameter of RPC createrawtransaction. 2018-07-30 10:24:10 -07:00
wallet_persistence.py Persist Sapling key material in the wallet to disk 2018-10-06 00:01:14 +01:00
wallet_protectcoinbase.py Allow passing timeout parameter to wait_and_assert_operationid_status 2018-09-14 18:41:14 -06:00
wallet_sapling.py Closes #3560. Update Sapling note data correctly when importing a key. 2018-10-03 15:40:50 -07:00
wallet_shieldcoinbase.py
wallet_treestate.py
walletbackup.py
zapwallettxes.py
zcjoinsplit.py
zcjoinsplitdoublespend.py Fix outdated comment about starting balance of nodes 2018-02-28 14:29:05 -08:00
zkey_import_export.py Fix pyflakes error in test zkey_import_export. 2018-06-22 11:34:21 -07:00
zmq_test.py

README.md

Regression tests of RPC interface

test_framework/test_framework.py

Base class for RPC 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 the miner subsidy from 25 mature blocks (25*10=250 ZEC) 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 zcashd