HomePhabricator

Add two simple test framework self-tests
a9fa5c8f475cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Reviewer
Restricted Project
Differential Revision
D237: Add two simple test framework self-tests
Parents
rSTAGINGefd44f0a5b9c: Format all RPC files
Branches
Unknown
Tags
Unknown