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

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / pytest_embedded_nuttx-2.10.1.tar.gz

Download URL pytest_embedded_nuttx-2.10.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c728780bca01f5058ad9cb06f08f071b01175f07973fd319b8ddde4891218654
BLAKE2b-256 checksum
How to use checksums
e62abc8aa6b0adf25f882b8a2b53266cfc3f066de341a92cd8933753c6106231
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.1-py3-none-any.whl

Download URL pytest_embedded_nuttx-2.10.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71494900121a0f917964d970b36ede77efca41e8e9779e5022100019f7d58767
BLAKE2b-256 checksum
How to use checksums
70c44472d5a86636bde286d7d7ccc6f876cac35258173238ca8b2bb180ae5931
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.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.10.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