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

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / pytest_embedded_nuttx-2.10.0.tar.gz

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

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

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

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