[chronik] Add an integration test for the chronik_info endpoint in bitcoinsuite-chronik-client
Summary:
Handler has been introduced to listen for messages through IPC, and be able to relay messages through IPC.
First, we define a struct which implements the IpcReader trait. This trait has an on_rx function, which we can customize and reuse to implement test specific logic. spin_child_process will take in a python_script which will determine which IPC test we would like to run. We also pass the struct which contains the IpcReader trait.
Handler will constantly listen to messages and will run on_rx for every message received. We then handle this logic within the custom impl block we defined in our struct.
Test Plan:
Please set BUILD_DIR env to export BUILD_DIR="/path/to/build_dir
UNIX: ./contrib/teamcity/build-configurations.py build-bitcoinsuite-chronik-client
To ensure no breaking changes from the updated IPC file, run ./contrib/teamcity/build-configurations.py chronik-client-integration-tests from bitcoin-abc to run typescript tests.
Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien, tobias_ruck
Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien, tobias_ruck
Subscribers: tobias_ruck, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D17595