You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement proposal related to a problem? Please describe.
The network samples can bit rot easily as they are only compile tested by sanitycheck script.
We need to run the network samples in some semi-automatic way so that we can be sure that there is no regressions in network stack.
Describe the solution you'd like
Use Docker to to run scripts and programs from net-tools, then have qemu / native_posix to connect to that Docker instance. Have also IP addresses setup properly so that connectivity between these two works.
The task can can be split up as follows:
Create a script to run sample tests against the Docker host tools from 'net-tools'
Add sample tests where the Docker 'net-tools' image can serve as the client end as the result is easy to have available when the client stops executing in the Docker container
Investigate how to utilize e.g. native_posix Zephyr target to exit with a return value after a completed test where Zephyr acts as a client and the Docker image is the server end
Create sample tests where the native_posix Zephyr target can serve as the test client, if the above point works out properly - [ ] Write the test script in some other language than bash, python has been proposed (future development, if needed)
note that all the subtasks are checked off but it is unclear to me if there are actual PRs or items merged into main?
We have #19677 in the pipeline implementing the ticked off items. The support in net-tools was handled by zephyrproject-rtos/net-tools#37 which was already merged.
Add a script that sets up Docker networking and starts the net-tools
Docker container. If successful, run Zephyr with native_posix and
execute the appropriate net-tools container executable. The proper
net-tools executable and arguments is selected depending on the
basename of the sample directory. This script needs to be updated
if the net-tools Docker image is updated in some incompatible way.
The net-tools directory is assumed to exist at the same level as
the Zephyr base directory, but its location can be set using the
'-N' command line argument. Likewise, '-Z' sets the Zephyr top level
directory.
When stopping Zephyr, go through all child processes since running a
native posix or other variant of Zephyr may cause a hierarchy of
processes to be created.
Fixes: zephyrproject-rtos#19540
Signed-off-by: Patrik Flykt <[email protected]>
Is your enhancement proposal related to a problem? Please describe.
The network samples can bit rot easily as they are only compile tested by sanitycheck script.
We need to run the network samples in some semi-automatic way so that we can be sure that there is no regressions in network stack.
Describe the solution you'd like
Use Docker to to run scripts and programs from net-tools, then have qemu / native_posix to connect to that Docker instance. Have also IP addresses setup properly so that connectivity between these two works.
The task can can be split up as follows:
- [ ] Write the test script in some other language than bash, python has been proposed(future development, if needed)The text was updated successfully, but these errors were encountered: