netdev_test_ieee802154: initial import of an IEEE 802.15.4 device mock#16020
netdev_test_ieee802154: initial import of an IEEE 802.15.4 device mock#16020miri64 wants to merge 2 commits intoRIOT-OS:masterfrom
Conversation
d64a867 to
46a1260
Compare
maribu
left a comment
There was a problem hiding this comment.
Looks good to me. Please squash right away.
|
ping @miri64 |
46a1260 to
5ee8ac7
Compare
|
First, I rebased, since I believe the NETOPT_MAX_PACKET_SIZE value already does not exist in master (so I test this more confidently). |
|
And addressed @maribu's change request. |
benpicco
left a comment
There was a problem hiding this comment.
This might still be useful, feel free to squash
456c209 to
9cae200
Compare
|
Squashed |
|
I think #16776 might have broken something :-/ |
| * constraints, this mock is exactly usable as a @ref sys_netdev_test would be. | ||
| * The initialized get callbacks are the ones for the following options: | ||
| * - @ref NETOPT_DEVICE_TYPE (returns `value == NETDEV_TYPE_IEEE802154`) | ||
| * - @ref NETOPT_MAX_PACKET_SIZE (returns `value == 102U`) |
There was a problem hiding this comment.
NETOPT_MAX_PACKET_SIZE no longer exists
|
looks like #16109 could come in handy here 😉 |
|
I'll just do it with my usual Copy, Paste & and vim-macro magic tactic for now ;-) |
9cae200 to
1202c97
Compare
|
@miri64, ping :) |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
Does this still make sense with IEEE 802.15.4 HAL? |
Ping @jia200x? |
Contribution description
This provides
netdev_test_ieee802154, an extension fornetdev_testto initialize thegetcallbacks for thosenetopts thatgnrc_netifexpects to be set.Testing procedure
Unittests for this feature are provided. Just run
make -C tests/netdev_test_ieee802154 flash testfor a board of your choice.
A GNRC-less variant (without the use of
gnrc_nettype_sixlowpan) can also be tested usingTEST_PROTO=0 make -C tests/netdev_test_ieee802154 flash testIssues/PRs references
#15694 (comment)