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.11.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.11.1
File Size Uploaded Provenance Actions
pytest_embedded_jtag-2.11.1.tar.gz 15.7 kB Without provenance Details for pytest_embedded_jtag-2.11.1.tar.gz

Built distribution (wheel)

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

Total release size: 32.7 kB

Release files / pytest_embedded_jtag-2.11.1.tar.gz

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

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

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

Security for pytest-embedded-jtag 2.11.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.11.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