Skip to main content

pytest-embedded-jtag

A pytest-embedded service for hardware debugging via OpenOCD and GDB.

Service Activation

Activate this service by passing jtag to --embedded-services:

pytest --embedded-services serial,jtag --app-path /path/to/app

Extra Functionalities

  • openocd Fixture: Launches and manages an OpenOCD background process. Supports sending commands over the OpenOCD Telnet port.
  • gdb Fixture: Launches and manages a GDB process connected to the target debugger.
  • Output Duplication: Duplicates both OpenOCD and GDB output streams into dut.pexpect_proc for unified log matching.

CLI Options

  • --openocd-prog-path: Path to the OpenOCD executable. Default: "openocd".
  • --openocd-cli-args: Arguments passed to OpenOCD. Default: "-f board/esp32-wrover-kit-3.3v.cfg".
  • --gdb-prog-path: Path to the architecture-specific GDB executable. Default: "xtensa-esp32-elf-gdb".
  • --gdb-cli-args: Arguments passed to GDB. Default: "--quiet".
  • --no-gdb: Set to True to skip creating the GDB instance when only OpenOCD is needed. Default: False.

Quick Example

from pytest_embedded import Dut
from pytest_embedded_jtag import Gdb, OpenOcd


def test_jtag_debugging(dut: Dut, openocd: OpenOcd, gdb: Gdb):
    gdb.write('target remote :3333')
    gdb.expect('Remote debugging using :3333')
    gdb.write('monitor reset halt')
    dut.expect('Target halted')

Metadata

Release files for pytest-embedded-jtag 2.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-embedded-jtag 2.10.1
File Size Uploaded Provenance Actions
pytest_embedded_jtag-2.10.1.tar.gz 15.8 kB Without provenance Details for pytest_embedded_jtag-2.10.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-embedded-jtag 2.10.1
File Interpreter ABI Platform Actions
pytest_embedded_jtag-2.10.1-py3-none-any.whl Python 3 none any Details for pytest_embedded_jtag-2.10.1-py3-none-any.whl

Total release size: 32.7 kB

Release files / pytest_embedded_jtag-2.10.1.tar.gz

Download URL pytest_embedded_jtag-2.10.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f4d1646b06c3f58bd4950230d3eb9f3f49613109790df01055233fe5ff73a5a8
BLAKE2b-256 checksum
How to use checksums
ba5e35989e02145cdb524d8da5d90ec5920ef01cb79521cc84aeb456cee4ce85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / pytest_embedded_jtag-2.10.1-py3-none-any.whl

Download URL pytest_embedded_jtag-2.10.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87b3311445197e9ee39f06ba8e3b5db891187d9d24159762debcf4af16ddb042
BLAKE2b-256 checksum
How to use checksums
94228f6515bad7cae98fdce3d985ceb10e07f5fcf1a349ef32ef8bd2d800b7fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for pytest-embedded-jtag 2.10.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.10.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page