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

Built distribution (wheel)

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

Total release size: 32.7 kB

Release files / pytest_embedded_jtag-2.10.0.tar.gz

Download URL pytest_embedded_jtag-2.10.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cd9cc65b4f70763a95989b822a5cf43e5f47713966e04ea55f3526e6b7c3191a
BLAKE2b-256 checksum
How to use checksums
5c4e8095f4ef1f36c00138b8b48ae15c60ad5fe9e0735bb86f0f65ddce53cccc
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.0-py3-none-any.whl

Download URL pytest_embedded_jtag-2.10.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
073fca236469f86a97fad1ac2fa28c1b1dde5e7afeca13c413d34b8fd5a182b9
BLAKE2b-256 checksum
How to use checksums
365a1107bf6838e5d0a35e54771892dcc82148803b7d9d03b7550d6a673ad140
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.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.10.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