zcashd/qa/rpc-tests
Jack Grigg 8e48ca1fb2
test: Fix permissions on wallet_changeaddresses RPC test
2019-08-01 10:21:27 +01:00
..
test_framework Refactor wait_and_assert_operationid_status to allow returning the result 2019-04-24 11:31:14 -06:00
.gitignore Python-based regression tests 2014-02-28 15:24:31 -05:00
README.md Fix some typos in rpc-tests readme 2018-08-05 21:51:35 -07:00
bip65-cltv-p2p.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
bipdersig-p2p.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
blockchain.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
decodescript.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
disablewallet.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
finalsaplingroot.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
forknotify.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
fundrawtransaction.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
getblocktemplate.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
getblocktemplate_longpoll.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
getblocktemplate_proposals.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
getchaintips.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
hardforkdetection.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
httpbasics.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
invalidateblock.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
invalidblockrequest.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
key_import_export.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
keypool.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
listtransactions.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
maxblocksinflight.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
mempool_nu_activation.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
mempool_reorg.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
mempool_resurrect_test.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
mempool_spendcoinbase.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
mempool_tx_expiry.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
mempool_tx_input_limit.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
mergetoaddress_helper.py Add locking for Sapling notes 2018-11-16 18:14:58 -07:00
mergetoaddress_sapling.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
mergetoaddress_sprout.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
merkle_blocks.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
nodehandling.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
p2p-acceptblock.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
p2p_node_bloom.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
p2p_nu_peer_management.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
p2p_txexpiringsoon.py Strategically sync to prevent intermittent failures 2019-01-17 15:00:57 -07:00
p2p_txexpiry_dos.py Make variables local 2019-01-17 14:58:50 -07:00
paymentdisclosure.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
prioritisetransaction.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
proton_test.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
proxy_test.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
pruning.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
rawtransactions.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
receivedby.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
regtest_signrawtransaction.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
reindex.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
reorg_limit.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
rest.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
rewind_index.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
rpcbind_test.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
script_test.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
signrawtransaction_offline.py test: Fetch coinbase address from coinbase UTXOs 2019-03-06 09:03:51 +13:00
signrawtransactions.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
smartfees.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
sprout_sapling_migration.py Correctly account for migration transactions in the mempool 2019-05-05 12:59:43 -06:00
turnstile.py Add qa test for experimental feature: -developersetpoolsizezero 2019-04-23 15:05:15 -07:00
tx_expiry_helper.py Strategically sync to prevent intermittent failures 2019-01-17 15:00:57 -07:00
txn_doublespend.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_1941.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_addresses.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_anchorfork.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_changeaddresses.py test: Fix permissions on wallet_changeaddresses RPC test 2019-08-01 10:21:27 +01:00
wallet_changeindicator.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_import_export.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_listnotes.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_listreceived.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_mergetoaddress.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_nullifiers.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_overwintertx.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_persistence.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_protectcoinbase.py Check for full failure message in test case 2019-04-26 19:01:23 -06:00
wallet_sapling.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
wallet_shieldcoinbase.py test: Fetch coinbase address from coinbase UTXOs 2019-03-06 09:03:51 +13:00
wallet_shieldcoinbase_sapling.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_shieldcoinbase_sprout.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
wallet_treestate.py test: Make expected_utxos optional in get_coinbase_address() 2019-03-06 09:03:55 +13:00
walletbackup.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
zapwallettxes.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
zcjoinsplit.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
zcjoinsplitdoublespend.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
zkey_import_export.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00
zmq_test.py Make pythonisms consistent 2018-12-18 12:16:23 -08:00

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 zcashds and test.* datadir on exit or error
  --noshutdown     Don't stop bitcoinds after the test execution
  --srcdir=SRCDIR  Source directory containing zcashd/zcash-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