Skip to main content

pytest-embedded-nuttx

A pytest-embedded service for testing Apache NuttX RTOS firmware on physical targets or in QEMU.

Service Activation

Activate this service by passing nuttx to --embedded-services. Combine with serial (and optionally esp for Espressif chips):

pytest --embedded-services serial,esp,nuttx --app-path /path/to/nuttx/build

Or run NuttX tests inside QEMU:

pytest --embedded-services qemu,nuttx --app-path /path/to/nuttx/build

Extra Functionalities

  • NuttX App Detection: Scans the NuttX build directory for bootloader, partition table, and firmware ELF/binary files.
  • NuttShell (NSH) Interaction: Seamlessly runs commands in NuttShell via the serial port and verifies command exit codes.
  • Flashing & Reset Support: Leverages the esp service to automatically flash Espressif chips and trigger hardware resets.
  • Emulation Support: Supports running NuttX binaries inside the QEMU emulator.

Quick Example

from pytest_embedded import Dut


def test_nuttx_shell(dut: Dut):
    # Wait for the NuttShell prompt
    dut.expect('nsh>')
    dut.write('help\n')
    dut.expect('Builtin Apps:')

Metadata

Release files for pytest-embedded-nuttx 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-nuttx 2.11.1
File Size Uploaded Provenance Actions
pytest_embedded_nuttx-2.11.1.tar.gz 7.1 kB Without provenance Details for pytest_embedded_nuttx-2.11.1.tar.gz

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / pytest_embedded_nuttx-2.11.1.tar.gz

Download URL pytest_embedded_nuttx-2.11.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6f1e72528b8a54f3ec597f283d62d4b4a48fc829f4a002caa6ae9466b57e7c5c
BLAKE2b-256 checksum
How to use checksums
272979cd7ba94c664ee4f22247a9355aff21c19e23a615287ff3e2fb4b45127b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

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

Download URL pytest_embedded_nuttx-2.11.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe0057226228013ce864e6df9da2eb588307ccbd6ea647c190c73e3ebf7e7cd6
BLAKE2b-256 checksum
How to use checksums
87d90b7698c55824f01ef388ba0cab9cd063b83615c5dc08837681d90fb85894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for pytest-embedded-nuttx 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