casaroli opened a new pull request, #4146: URL: https://github.com/apache/nuttx-apps/pull/4146
depends-on: apache/nuttx#22356 ## Summary `testing/nettest` gets cases for `EPOLLET` on sockets over the loopback device: - `cmocka_net_tcp`: `test_tcp_epollet_in` (an `EPOLLIN | EPOLLET` socket is reported once for each new data, five rounds), `test_tcp_epollet_out` (an idle `EPOLLOUT | EPOLLET` socket is not reported when it receives data), `test_tcp_epollet_eagain` (with TCP write buffers: a socket whose `send()` failed with `EAGAIN` is reported again when the peer reads). - `cmocka_net_udp`: `test_udp_epollet_idle` (an idle `EPOLLOUT | EPOLLET` socket is not reported when other sockets send), `test_udp_epollet_send` (the socket is reported for each datagram that it sends). - `cmocka_net_pkt`: `test_pkt_lo_epollet`, the same for a packet socket on `lo`. apache/nuttx#22356 fixes the kernel side. Before it, the TCP cases and `test_udp_epollet_idle` fail, and `test_pkt_lo_epollet` fails. ## Impact Test only: new cases in `cmocka_net_tcp`, `cmocka_net_udp` and `cmocka_net_pkt`. The cases for an idle UDP or packet socket skip with write buffers (`CONFIG_NET_UDP_WRITE_BUFFERS`, `CONFIG_NET_PKT_WRITE_BUFFERS`): there each poll of the device reports `POLLOUT` on purpose. `test_tcp_epollet_eagain` needs `CONFIG_NET_TCP_WRITE_BUFFERS` and `CONFIG_NET_SOCKOPTS`. The packet case opens two packet sockets (`CONFIG_NET_PKT_PREALLOC_CONNS` >= 2). ## Testing qemu-armv8a:knsh (kernel, QEMU TCG, 3 boots each) and qemu-intel64:knsh_romfs (kernel, CMake, KVM, 1 boot each), with UDP and packet sockets without write buffers: without apache/nuttx#22356, `test_tcp_epollet_in`, `test_tcp_epollet_out`, `test_tcp_epollet_eagain`, `test_udp_epollet_idle` and `test_pkt_lo_epollet` fail; with it, all six new cases pass. qemu-armv8a:nsh (flat) with UDP and packet write buffers and without TCP write buffers: `test_tcp_epollet_in` and `_out` fail without the fix and pass with it; the idle UDP and packet cases skip. Builds with `-Werror` (CI image, gcc 12.3): qemu-armv8a:knsh and :nsh, rv-virt:knsh and :nsh (32-bit), Make and CMake (qemu-intel64:knsh_romfs). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
