Suhas Daftuar
0828619e96
[qa] Dump debug logs on travis failures.
8 years ago
MarcoFalke
fae19aa1da
[qa] test_framework: Exit when tmpdir exists
8 years ago
MarcoFalke
fa7c35c4ec
[qa] util: Move wait_bitcoinds() into stop_nodes()
8 years ago
whythat
438e94dc33
remove root test directory for RPC tests
8 years ago
MarcoFalke
fad8cf63e5
[qa] Use single cache dir for chains
8 years ago
MarcoFalke
fa9976b853
[qa] test_framework: Add wrapper for stop_node
8 years ago
Suhas Daftuar
1ad9339508
Test framework: only cleanup on successful test runs
9 years ago
MarcoFalke
fa57b0c5ef
[qa] test_framework: Append portseed to tmpdir
...
This makes it possible to specify a tmpdir while running tests in
parallel
9 years ago
MarcoFalke
fac9349798
[qa] Remove hardcoded "4 nodes" from test_framework
9 years ago
MarcoFalke
ccccc591a4
[qa] Add option --portseed to test_framework
9 years ago
Jonas Schnelli
5ea450834e
Autofind rpc tests --srcdir
9 years ago
MarcoFalke
fabbf6bd62
[qa] Refactor test_framework and pull tester
...
* log to stdout
* increase range for p2p and rpc ports
* UPPERCASE_CONSTANTS
* Stop nodes on CTRL+C
9 years ago
MarcoFalke
fa389d4edc
[qa] Switch to py3
9 years ago
MarcoFalke
fada064f67
[qa] test_framework: Properly print exceptions and assert empty dict
9 years ago
Rusty Russell
d12760b16a
rpc-tests: handle KeyError nicely in test_framework.py
...
btcdrak wrote this for me.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
9 years ago
MarcoFalke
fa524d9ddb
[qa] Use python2/3 syntax
9 years ago
Jonas Schnelli
979698c171
[RPC-Tests] add option to run rpc test over QT clients
9 years ago
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
9 years ago
James O'Beirne
b5cbd396ca
Add basic coverage reporting for RPC tests
...
Thanks to @MarcoFalke @dexX7 @laanwj for review.
9 years ago
Jonas Schnelli
7b7f258396
rpc-tests: remove python-bitcoinrpc directory
...
place authproxy.py at same level as other utility classes
10 years ago
Jonas Schnelli
64937fe51a
[QA] restructure rpc tests directory
...
* move non-test classes to subdir `test-framework`
10 years ago
Suhas Daftuar
2703412a39
Fix default binary in p2p tests to use environment variable
10 years ago
Suhas Daftuar
b93974c3f3
Add comparison tool test runner, built on mininode
...
comptool.py creates a tool for running a test suite on top of the mininode p2p
framework. It supports two types of tests: those for which we expect certain
behavior (acceptance or rejection of a block or transaction) and those for
which we are just comparing that the behavior of 2 or more nodes is the same.
blockstore.py defines BlockStore and TxStore, which provide db-backed maps
between block/tx hashes and the corresponding block or tx.
blocktools.py defines utility functions for creating and manipulating blocks
and transactions.
invalidblockrequest.py is an example test in the comptool framework, which
tests the behavior of a single node when sent two different types of invalid
blocks (a block with a duplicated transaction and a block with a bad coinbase
value).
10 years ago
dexX7
688da79e4a
QA: add --noshutdown option to prevent stopping nodes
...
With `--noshutdown`, the nodes are not stopped explicitly. `--noshutdown` implies `--nocleanup`, to prevent removing datadirs, which are still in use.
10 years ago
dexX7
2eadeb27ed
QA: stop nodes after RPC tests, even with --nocleanup
...
`--nocleanup` should provide a way to preserve test data, but should not have an impact on whether nodes are to be stopped after the test execution.
In particular, when currently running RPC tests with `--nocleanup`, then it may result in several active `bitcoind` processes, which are not terminated properly.
10 years ago
Wladimir J. van der Laan
56c1093dae
fix tests for #5655
10 years ago
Matt Corallo
e3f315a0a5
Fix python usage for arch's broken maintainers
10 years ago
Daniel Kraft
2db4c8a24d
Fix node ranges in the test framework.
10 years ago
Gavin Andresen
ec01243c14
--tracerpc option for regression tests
...
Run tests with --tracerpc and all RPC calls will dump to the console.
Very helpful for debugging.
10 years ago
Daniel Kraft
2290ed01bc
Work around #5113 .
10 years ago
Daniel Kraft
dcb98466b4
Extend getchaintips RPC test.
...
Add the capability to simulate network splits to the RPC test framework
and use it to do more extensive testing of 'getchaintips'.
10 years ago
Michael Ford
214091d584
Update license in pull-tester and rpc-tests
...
Add missing copyright/license header where necessary
10 years ago
Gavin Andresen
f5a92bf9bd
Print better errors, and add util stop_node() function.
11 years ago
Gavin Andresen
e8097f7df1
Refactor common RPC test code to BitcoinTestFramework base class
...
Inspired by #3956 , with a little more flexibility built in.
I didn't touch rpcbind_test.py, because it only runs on Linux.
11 years ago