tests: add functional tests for IPC interface

Co-Authored-By: ismaelsadeeq <ask4ismailsadiq@gmail.com>
Co-Authored-By: ryanofsky <ryan@ofsky.org>
Co-Authored-By: TheCharlatan <seb.kung@gmail.com>
Co-Authored-By: Sjors Provoost <sjors@sprovoost.nl>
This commit is contained in:
Pieter Wuille
2025-08-21 03:16:07 -04:00
parent 3cc9a06c8d
commit 8d2ee88fa2
4 changed files with 212 additions and 0 deletions

View File

@@ -964,6 +964,13 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
except ImportError:
raise SkipTest("sqlite3 module not available.")
def skip_if_no_py_capnp(self):
"""Attempt to import the capnp package and skip the test if the import fails."""
try:
import capnp # type: ignore[import] # noqa: F401
except ImportError:
raise SkipTest("capnp module not available.")
def skip_if_no_python_bcc(self):
"""Attempt to import the bcc package and skip the tests if the import fails."""
try: