HomePhabricator

Add two simple test framework self-tests

Description

Add two simple test framework self-tests

Summary:
Created a new test_framework/tests/ subdirectory for test framework
self-tests.

A test runner for these tests is provided in run_self_tests.sh.
This is not integrated into routine test suite execution targets,
it must be run manually for now.
It is possible to call these self-tests directly provided your
PYTHONPATH is to the location of your rpc-tests/ folder, and your
SRCDIR is set to the parent of the top level src/ folder, so that
tests can find the bitcoind executable.

Test framework self-tests are just regular Python tests in the same
manner as the Bitcoin regression tests.

The two first tests were used during development of internal framework
changes for ABC.

This diff has purposefully been separated from the stderr checking feature
patch to reduce overall review efforts and keep it focused.

Test Plan:
export SRCDIR=</path/to/your/toplevel/folder>
export PYTHONPATH=$SRCDIR/qa/rpc-tests
sh qa/rpc-tests/test_framework/tests/run_self_tests.sh

You should see output of the self-tests executing successfully.

Reviewers: #bitcoin_abc, deadalnix, sickpig, kyuupichan, awemany

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D237

Details

Provenance
freetraderAuthored on Jun 20 2017, 14:19
freetraderPushed on Jun 22 2017, 21:26
Reviewer
Restricted Project
Differential Revision
D237: Add two simple test framework self-tests
Parents
rABCefd44f0a5b9c: Format all RPC files
Branches
Unknown
Tags
Unknown