aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework.py
Commit message (Collapse)AuthorAgeFilesLines
* [QA] restructure rpc tests directoryJonas Schnelli2015-05-181-180/+0
| | | | * move non-test classes to subdir `test-framework`
* Merge pull request #5981Wladimir J. van der Laan2015-04-301-0/+31
|\ | | | | | | | | | | | | | | 2703412 Fix default binary in p2p tests to use environment variable (Suhas Daftuar) 29bff0e Add some travis debugging for python scripts (Suhas Daftuar) d76412b Add script manipulation tools for use in mininode testing framework (Suhas Daftuar) b93974c Add comparison tool test runner, built on mininode (Suhas Daftuar) 6c1d1ba Python p2p testing framework (Suhas Daftuar)
| * Fix default binary in p2p tests to use environment variableSuhas Daftuar2015-04-291-2/+4
| |
| * Add comparison tool test runner, built on mininodeSuhas Daftuar2015-04-281-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | QA: add --noshutdown option to prevent stopping nodesdexX72015-04-231-5/+10
| | | | | | | | With `--noshutdown`, the nodes are not stopped explicitly. `--noshutdown` implies `--nocleanup`, to prevent removing datadirs, which are still in use.
* | QA: stop nodes after RPC tests, even with --nocleanupdexX72015-04-201-2/+4
|/ | | | | | `--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.
* fix tests for #5655Wladimir J. van der Laan2015-01-141-1/+4
|
* Fix python usage for arch's broken maintainersMatt Corallo2014-11-271-1/+1
|
* Fix node ranges in the test framework.Daniel Kraft2014-11-071-4/+4
|
* Merge pull request #5121Wladimir J. van der Laan2014-10-271-1/+1
|\ | | | | | | 214091d Update license in pull-tester and rpc-tests (Michael Ford)
| * Update license in pull-tester and rpc-testsMichael Ford2014-10-231-1/+1
| | | | | | | | Add missing copyright/license header where necessary
* | Merge pull request #5132Gavin Andresen2014-10-241-15/+56
|\ \ | | | | | | | | | | | | | | | | | | 2290ed0 Work around #5113. (Daniel Kraft) dcb9846 Extend getchaintips RPC test. (Daniel Kraft) Signed-off-by: Gavin Andresen <[email protected]>
| * | Work around #5113.Daniel Kraft2014-10-241-3/+3
| | |
| * | Extend getchaintips RPC test.Daniel Kraft2014-10-241-15/+56
| |/ | | | | | | | | Add the capability to simulate network splits to the RPC test framework and use it to do more extensive testing of 'getchaintips'.
* / --tracerpc option for regression testsGavin Andresen2014-10-241-0/+6
|/ | | | | Run tests with --tracerpc and all RPC calls will dump to the console. Very helpful for debugging.
* Print better errors, and add util stop_node() function.Gavin Andresen2014-07-091-0/+4
|
* Refactor common RPC test code to BitcoinTestFramework base classGavin Andresen2014-07-091-0/+88
Inspired by #3956, with a little more flexibility built in. I didn't touch rpcbind_test.py, because it only runs on Linux.