zephyr/tests/net
Stefan Schwendeler b234e86ca6 tests: net: lib: lwm2m: detects no-operation setter and getter functions
Test case `test_set_bulk` and `test_get_set` test the LwM2m getter and
setter function by
- init a buffer with some value
- calling lwm2m_set_... with buffer as parameter
- calling lwm2_get_... by letting `get` write-back into the same
  buffer(!)
- compare the buffer with the init value

That implementation can't recognize a no-operation getter function.

This change adds some C macro magic for both test cases where
an `out` buffer for setter and an `in` buffer for getter functions
exists. The buffers are checked before use for inequality to avoid
any unexpected pass.

Signed-off-by: Stefan Schwendeler <Stefan.Schwendeler@husqvarnagroup.com>
2025-05-23 19:49:54 +02:00
..
6lo net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
all net: openthread: Allow a platform to select a Settings backend. 2024-12-02 18:18:20 +01:00
arp tests: net: arp: test the packet queuing case 2025-04-24 22:58:51 +02:00
bridge
checksum_offload net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
conn_mgr_conn tests: net: conn_mgr: Use valid LL address in tests 2025-02-19 18:48:52 +01:00
conn_mgr_monitor tests: net: conn_mgr: Use valid LL address in tests 2025-02-19 18:48:52 +01:00
conn_mgr_nsos tests: net: conn_mgr_nsos: added 2025-05-22 11:31:54 +02:00
context
dhcpv4 tests: net: dhcpv4: client: Verify Request xid 2025-05-08 15:55:55 +02:00
dhcpv6 samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
ethernet_mgmt drivers: net: ethernet: change ETHERNET_LINK_*BASE_T 2025-04-28 09:22:09 +01:00
hostname net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
icmp samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
icmpv4
icmpv6
ieee802154 net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
iface net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
igmp tests: net: igmp: Add re-join multicast group test 2024-12-19 10:20:56 +01:00
ip-addr tests: net: ipv6: Fix deprecated address selection 2025-05-21 09:30:22 +02:00
ipv4_fragment net: connection: Register connection type 2025-04-09 12:36:34 +02:00
ipv6 net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
ipv6_fragment test: net: ipv6_fragment: Set link layer protocol type for a packet 2025-03-21 09:52:42 +01:00
lib tests: net: lib: lwm2m: detects no-operation setter and getter functions 2025-05-23 19:49:54 +02:00
mgmt
mld
mocks
neighbor net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
net_pkt net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
npf doc: remove more occurances of Nios II 2025-05-15 20:01:05 -04:00
offloaded_netdev
pm
pmtu tests: net: pmtu: Add IPV6_MTU socket option tests 2024-11-18 07:26:07 -05:00
ppp/driver
promiscuous
ptp/clock drivers/ethernet/eth_native_posix: Rename to eth_native_tap 2025-03-07 20:10:38 +01:00
route net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
route_mcast net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
shell test: net: shell Remove unused function 2025-02-12 02:23:21 +01:00
socket tests: net: socket: tls_ext: Add test case for cert veirfy cb option 2025-05-22 13:44:43 +02:00
tcp net: tcp: Fix TCP reset issue 2025-05-21 08:01:55 +02:00
traffic_class net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
trickle
tx_timestamp net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
udp tests: net: udp: Remove unused function 2025-02-12 02:24:21 +01:00
utils tests: net: utils: Add tests for IP address string with mask 2025-03-20 17:16:10 +01:00
virtual net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
vlan net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
wifi tests: net: wifi: Add a test for Enterprise with run-time certs 2025-04-17 17:22:58 +02:00