pytest-embedded-nuttx 2.9.2__tar.gz → 2.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pytest_embedded_nuttx-2.10.0/PKG-INFO +70 -0
- pytest_embedded_nuttx-2.10.0/README.md +37 -0
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pyproject.toml +3 -3
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pytest_embedded_nuttx/__init__.py +1 -1
- pytest_embedded_nuttx-2.9.2/PKG-INFO +0 -47
- pytest_embedded_nuttx-2.9.2/README.md +0 -14
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/LICENSE +0 -0
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pytest_embedded_nuttx/app.py +0 -0
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pytest_embedded_nuttx/dut.py +0 -0
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pytest_embedded_nuttx/qemu.py +0 -0
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pytest_embedded_nuttx/serial.py +0 -0
- {pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/tests/test_nuttx.py +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pytest-embedded-nuttx
|
|
3
|
+
Version: 2.10.0
|
|
4
|
+
Summary: Make pytest-embedded plugin work with NuttX.
|
|
5
|
+
Author-email: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>, Fu Hanxi <fuhanxi@espressif.com>
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
|
+
Classifier: Framework :: Pytest
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Programming Language :: Python
|
|
21
|
+
Classifier: Topic :: Software Development :: Testing
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: pytest-embedded-serial~=2.10.0
|
|
24
|
+
Requires-Dist: pytest-embedded-serial-esp~=2.10.0 ; extra == "esp"
|
|
25
|
+
Requires-Dist: pytest-embedded-qemu~=2.10.0 ; extra == "qemu"
|
|
26
|
+
Project-URL: changelog, https://github.com/espressif/pytest-embedded/blob/main/CHANGELOG.md
|
|
27
|
+
Project-URL: documentation, https://docs.espressif.com/projects/pytest-embedded/en/latest/
|
|
28
|
+
Project-URL: homepage, https://github.com/espressif/pytest-embedded
|
|
29
|
+
Project-URL: repository, https://github.com/espressif/pytest-embedded
|
|
30
|
+
Provides-Extra: esp
|
|
31
|
+
Provides-Extra: qemu
|
|
32
|
+
|
|
33
|
+
### pytest-embedded-nuttx
|
|
34
|
+
|
|
35
|
+
A `pytest-embedded` service for testing Apache [NuttX](https://nuttx.apache.org/) RTOS firmware on physical targets or in QEMU.
|
|
36
|
+
|
|
37
|
+
#### Service Activation
|
|
38
|
+
|
|
39
|
+
Activate this service by passing `nuttx` to `--embedded-services`. Combine with `serial` (and optionally `esp` for Espressif chips):
|
|
40
|
+
|
|
41
|
+
```shell
|
|
42
|
+
pytest --embedded-services serial,esp,nuttx --app-path /path/to/nuttx/build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Or run NuttX tests inside QEMU:
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
pytest --embedded-services qemu,nuttx --app-path /path/to/nuttx/build
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Extra Functionalities
|
|
52
|
+
|
|
53
|
+
- **NuttX App Detection**: Scans the NuttX build directory for bootloader, partition table, and firmware ELF/binary files.
|
|
54
|
+
- **NuttShell (NSH) Interaction**: Seamlessly runs commands in NuttShell via the serial port and verifies command exit codes.
|
|
55
|
+
- **Flashing & Reset Support**: Leverages the `esp` service to automatically flash Espressif chips and trigger hardware resets.
|
|
56
|
+
- **Emulation Support**: Supports running NuttX binaries inside the QEMU emulator.
|
|
57
|
+
|
|
58
|
+
#### Quick Example
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from pytest_embedded import Dut
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def test_nuttx_shell(dut: Dut):
|
|
65
|
+
# Wait for the NuttShell prompt
|
|
66
|
+
dut.expect('nsh>')
|
|
67
|
+
dut.write('help\n')
|
|
68
|
+
dut.expect('Builtin Apps:')
|
|
69
|
+
```
|
|
70
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
### pytest-embedded-nuttx
|
|
2
|
+
|
|
3
|
+
A `pytest-embedded` service for testing Apache [NuttX](https://nuttx.apache.org/) RTOS firmware on physical targets or in QEMU.
|
|
4
|
+
|
|
5
|
+
#### Service Activation
|
|
6
|
+
|
|
7
|
+
Activate this service by passing `nuttx` to `--embedded-services`. Combine with `serial` (and optionally `esp` for Espressif chips):
|
|
8
|
+
|
|
9
|
+
```shell
|
|
10
|
+
pytest --embedded-services serial,esp,nuttx --app-path /path/to/nuttx/build
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or run NuttX tests inside QEMU:
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
pytest --embedded-services qemu,nuttx --app-path /path/to/nuttx/build
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
#### Extra Functionalities
|
|
20
|
+
|
|
21
|
+
- **NuttX App Detection**: Scans the NuttX build directory for bootloader, partition table, and firmware ELF/binary files.
|
|
22
|
+
- **NuttShell (NSH) Interaction**: Seamlessly runs commands in NuttShell via the serial port and verifies command exit codes.
|
|
23
|
+
- **Flashing & Reset Support**: Leverages the `esp` service to automatically flash Espressif chips and trigger hardware resets.
|
|
24
|
+
- **Emulation Support**: Supports running NuttX binaries inside the QEMU emulator.
|
|
25
|
+
|
|
26
|
+
#### Quick Example
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from pytest_embedded import Dut
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def test_nuttx_shell(dut: Dut):
|
|
33
|
+
# Wait for the NuttShell prompt
|
|
34
|
+
dut.expect('nsh>')
|
|
35
|
+
dut.write('help\n')
|
|
36
|
+
dut.expect('Builtin Apps:')
|
|
37
|
+
```
|
|
@@ -30,15 +30,15 @@ dynamic = ["version", "description"]
|
|
|
30
30
|
requires-python = ">=3.10"
|
|
31
31
|
|
|
32
32
|
dependencies = [
|
|
33
|
-
"pytest-embedded-serial~=2.
|
|
33
|
+
"pytest-embedded-serial~=2.10.0",
|
|
34
34
|
]
|
|
35
35
|
|
|
36
36
|
[project.optional-dependencies]
|
|
37
37
|
esp = [
|
|
38
|
-
"pytest-embedded-serial-esp~=2.
|
|
38
|
+
"pytest-embedded-serial-esp~=2.10.0",
|
|
39
39
|
]
|
|
40
40
|
qemu = [
|
|
41
|
-
"pytest-embedded-qemu~=2.
|
|
41
|
+
"pytest-embedded-qemu~=2.10.0",
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
[project.urls]
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pytest-embedded-nuttx
|
|
3
|
-
Version: 2.9.2
|
|
4
|
-
Summary: Make pytest-embedded plugin work with NuttX.
|
|
5
|
-
Author-email: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>, Fu Hanxi <fuhanxi@espressif.com>
|
|
6
|
-
Requires-Python: >=3.10
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
9
|
-
Classifier: Framework :: Pytest
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
-
Classifier: Programming Language :: Python
|
|
21
|
-
Classifier: Topic :: Software Development :: Testing
|
|
22
|
-
License-File: LICENSE
|
|
23
|
-
Requires-Dist: pytest-embedded-serial~=2.9.2
|
|
24
|
-
Requires-Dist: pytest-embedded-serial-esp~=2.9.2 ; extra == "esp"
|
|
25
|
-
Requires-Dist: pytest-embedded-qemu~=2.9.2 ; extra == "qemu"
|
|
26
|
-
Project-URL: changelog, https://github.com/espressif/pytest-embedded/blob/main/CHANGELOG.md
|
|
27
|
-
Project-URL: documentation, https://docs.espressif.com/projects/pytest-embedded/en/latest/
|
|
28
|
-
Project-URL: homepage, https://github.com/espressif/pytest-embedded
|
|
29
|
-
Project-URL: repository, https://github.com/espressif/pytest-embedded
|
|
30
|
-
Provides-Extra: esp
|
|
31
|
-
Provides-Extra: qemu
|
|
32
|
-
|
|
33
|
-
### pytest-embedded-nuttx
|
|
34
|
-
|
|
35
|
-
Pytest embedded service for the NuttX project, compatible with Espressif devices.
|
|
36
|
-
|
|
37
|
-
Using the 'nuttx' service alongside 'serial' enables reading from and writing to the serial port, taking NuttShell into account when running programs and retrieving return codes.
|
|
38
|
-
|
|
39
|
-
The `nuttx` service provides basic serial communication and testing. Adding the 'esp' service enables further capabilities for Espressif devices, including flashing and device rebooting. Alternatively, using the 'qemu' service is also supported with NuttX
|
|
40
|
-
binaries.
|
|
41
|
-
|
|
42
|
-
Additional Features:
|
|
43
|
-
|
|
44
|
-
- `app`: Scans the NuttX binary directory to locate firmware and bootloader files.
|
|
45
|
-
- `serial`: Parses binary information and flashes the board. Requires the 'esp' service.
|
|
46
|
-
- `dut`: Sends commands to the device through the serial port. Requires the 'serial' service, 'esp' service for Espressif devices or 'qemu' service for emulation.
|
|
47
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
### pytest-embedded-nuttx
|
|
2
|
-
|
|
3
|
-
Pytest embedded service for the NuttX project, compatible with Espressif devices.
|
|
4
|
-
|
|
5
|
-
Using the 'nuttx' service alongside 'serial' enables reading from and writing to the serial port, taking NuttShell into account when running programs and retrieving return codes.
|
|
6
|
-
|
|
7
|
-
The `nuttx` service provides basic serial communication and testing. Adding the 'esp' service enables further capabilities for Espressif devices, including flashing and device rebooting. Alternatively, using the 'qemu' service is also supported with NuttX
|
|
8
|
-
binaries.
|
|
9
|
-
|
|
10
|
-
Additional Features:
|
|
11
|
-
|
|
12
|
-
- `app`: Scans the NuttX binary directory to locate firmware and bootloader files.
|
|
13
|
-
- `serial`: Parses binary information and flashes the board. Requires the 'esp' service.
|
|
14
|
-
- `dut`: Sends commands to the device through the serial port. Requires the 'serial' service, 'esp' service for Espressif devices or 'qemu' service for emulation.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_embedded_nuttx-2.9.2 → pytest_embedded_nuttx-2.10.0}/pytest_embedded_nuttx/serial.py
RENAMED
|
File without changes
|
|
File without changes
|