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

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

Built distribution (wheel)

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

Total release size: 32.7 kB

Release files / pytest_embedded_jtag-2.10.2.tar.gz

Download URL pytest_embedded_jtag-2.10.2.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
452e102bcd1c02597f80833161bf0d71d8f85af7e73f1ae8e5c5dd7986cfb40e
BLAKE2b-256 checksum
How to use checksums
d4906805c00e24ca911d1b37163083ccfb17d0a1d70bf904a5baf4173d610307
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.2-py3-none-any.whl

Download URL pytest_embedded_jtag-2.10.2-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef6cdd3a7b2cfe5b567184a684b4e95f0c22b54080c92517850130a00da68e7b
BLAKE2b-256 checksum
How to use checksums
4d6031d6448fec3f24588c1cb9d86573f7d01061ecc7526f13de87a651a37226
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.2

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