zcash-patched-for-explorer/qa/rpc-tests
Jack Grigg e68c3ec188
[Test] MiniNode: Use Zcash PoW
Equihash solver code extracted from https://github.com/str4d/zcash-pow

RPC tests now require pyblake2 to be installed
2017-10-05 15:15:10 +01:00
..
test_framework [Test] MiniNode: Use Zcash PoW 2017-10-05 15:15:10 +01:00
.gitignore Python-based regression tests 2014-02-28 15:24:31 -05:00
README.md Add paytxfee to getwalletinfo, warnings to getnetworkinfo 2017-03-02 13:23:03 -08:00
bip65-cltv-p2p.py Add connections in BIP65 and BIP66 tests to the test manager 2017-10-03 17:41:37 +01:00
bipdersig-p2p.py Add connections in BIP65 and BIP66 tests to the test manager 2017-10-03 17:41:37 +01:00
decodescript.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
disablewallet.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
forknotify.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
fundrawtransaction.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
getblocktemplate.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
getblocktemplate_longpoll.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
getblocktemplate_proposals.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
getchaintips.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
hardforkdetection.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
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 Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
listtransactions.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
maxblocksinflight.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
mempool_coinbase_spends.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
mempool_resurrect_test.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
mempool_spendcoinbase.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
mempool_tx_input_limit.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
merkle_blocks.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
nodehandling.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
p2p-acceptblock.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
prioritisetransaction.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
proton_test.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
proxy_test.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
pruning.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
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 Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
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 Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
signrawtransactions.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
smartfees.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
txn_doublespend.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
wallet.py Auto merge of #2458 - daira:2450.pyflakes-cleanup, r=str4d 2017-07-14 18:03:03 -07:00
wallet_1941.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
wallet_nullifiers.py For unused variables reported by pyflakes, either remove the variable, 2017-06-22 18:09:05 +01:00
wallet_protectcoinbase.py Closes #2583. Exclude watch-only utxos from z_sendmany coin selection. 2017-09-19 19:42:48 -07:00
wallet_shieldcoinbase.py Auto merge of #2638 - bitcartel:2637_experimental_feature_z_shieldcoinbase, r=str4d 2017-09-27 16:09:54 -07:00
wallet_treestate.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
walletbackup.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
zapwallettxes.py Cosmetics (trailing whitespace, comment conventions, etc.) 2017-06-22 18:09:05 +01:00
zcjoinsplit.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01:00
zcjoinsplitdoublespend.py Clean up imports to be pyflakes-checkable. fixes #2450 2017-06-22 18:09:04 +01: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