Original HUSH source code based on ZEC 1.0.8 . For historical purposes only! https://hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Duke Leto 8775cbe258
Merge branch 'dev' into dev
6 years ago
..
test_framework Enable indexes in regtest mode so we can test them 6 years ago
.gitignore Python-based regression tests 10 years ago
README.md Merge non source files. 6 years ago
addressindex.py Make all Python RPC tests executable 6 years ago
bip65-cltv-p2p.py Merge non source files. 6 years ago
bipdersig-p2p.py Merge non source files. 6 years ago
decodescript.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
disablewallet.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
dpow.py Merge branch 'dev' into dev 6 years ago
forknotify.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
fundrawtransaction.py s/BTC/HUSH/g in rpc tests 6 years ago
getblocktemplate.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
getblocktemplate_longpoll.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
getblocktemplate_proposals.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
getchaintips.py [QA] restructure rpc tests directory 9 years ago
hardforkdetection.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
httpbasics.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
invalidateblock.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
invalidblockrequest.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
key_import_export.py Fix pyflakes warnings in RPC tests 7 years ago
keypool.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
listtransactions.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
maxblocksinflight.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
mempool_coinbase_spends.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
mempool_resurrect_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
mempool_spendcoinbase.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
mempool_tx_input_limit.py Merge non source files. 6 years ago
merkle_blocks.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
nodehandling.py Merge non source files. 6 years ago
p2p-acceptblock.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
paymentdisclosure.py Merge non source files. 6 years ago
prioritisetransaction.py Merge non source files. 6 years ago
proton_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
proxy_test.py Merge non source files. 6 years ago
pruning.py For unused variables reported by pyflakes, either remove the variable, 7 years ago
rawtransactions.py s/BTC/HUSH/g in rpc tests 6 years ago
receivedby.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
reindex.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
requirements.txt Start tracking Python deps required to run tests, to make it easier on devs 6 years ago
rest.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
rpcbind_test.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago
script_test.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
signrawtransactions.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
smartfees.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
spentindex.py Make all Python RPC tests executable 6 years ago
timestampindex.py Make all Python RPC tests executable 6 years ago
txindex.py Make all Python RPC tests executable 6 years ago
txn_doublespend.py s/BTC/HUSH/g in rpc tests 6 years ago
wallet.py Replace tabs with spaces. 6 years ago
wallet_1941.py Merge non source files. 6 years ago
wallet_mergetoaddress.py Implement note locking for z_mergetoaddress 6 years ago
wallet_nullifiers.py Port upstream fix for z_importviewingkey bug 6 years ago
wallet_protectcoinbase.py WIP Port z_listunspent from Zcash 6 years ago
wallet_shieldcoinbase.py Merge non source files. 6 years ago
wallet_treestate.py Merge non source files. 6 years ago
walletbackup.py Merge non source files. 6 years ago
zapwallettxes.py bitcore 6 years ago
zcjoinsplit.py Clean up imports to be pyflakes-checkable. fixes #2450 7 years ago
zcjoinsplitdoublespend.py s/BTC/HUSH/g in rpc tests 6 years ago
zkey_import_export.py Merge non source files. 6 years ago
zmq_test.py Cosmetics (trailing whitespace, comment conventions, etc.) 7 years ago

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.

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 hushd