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.0

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.0
File Size Uploaded Provenance Actions
pytest_embedded_jtag-2.11.0.tar.gz 15.8 kB Without provenance Details for pytest_embedded_jtag-2.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 32.7 kB

Release files / pytest_embedded_jtag-2.11.0.tar.gz

Download URL pytest_embedded_jtag-2.11.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
02c8f4d68ec19a52eb3f11103e68001181c1a8ddd56fef8599316fb8a9dd6a6b
BLAKE2b-256 checksum
How to use checksums
020e1166afc77b24aa5b6c48fe7931ce3c3dd91b503de51589460e0e322a1359
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.0-py3-none-any.whl

Download URL pytest_embedded_jtag-2.11.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1661b8f43429fa0496ebd89fb2fcf1d82c1ec0481a9d9eb7a30d762dc348c1d3
BLAKE2b-256 checksum
How to use checksums
504139c23ceba547bb0583eaad729ee52312d549543f62a3401e457504c11465
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.0

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.0 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