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

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / pytest_embedded_nuttx-2.11.0.tar.gz

Download URL pytest_embedded_nuttx-2.11.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
37f18c397ed7f472b7cd9adc55f22cb740782181070eddd30cba683b735f5962
BLAKE2b-256 checksum
How to use checksums
ac91928eedc06dbb9b9ea277581e79edc18c037d70df6f29c564b5cea2ff3007
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.0-py3-none-any.whl

Download URL pytest_embedded_nuttx-2.11.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9d1ab89191f91f232f4869153500d8ed18225226aa0f1764283099aace328b0
BLAKE2b-256 checksum
How to use checksums
9294ad5eaf6c5b05c37628530865386362304d360770bd1c81fd708b11fe45b3
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.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