-
Notifications
You must be signed in to change notification settings - Fork 3k
Netsocket test adjusted to Wisun #12045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@tymoteuszblochmobica, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just a few minor comments.
TESTS/configs/wisun_S2LP.json
Outdated
"macros":["MBEDTLS_USER_CONFIG_FILE=\"TESTS\\configs\\mbedtls_wisun_config.h\""], | ||
"target_overrides": { | ||
"*": { | ||
"target.network-default-interface-type": "MESH", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
TESTS/configs/mbedtls_wisun_config.h
Outdated
#undef MBEDTLS_MPI_MAX_SIZE | ||
#define MBEDTLS_MPI_MAX_SIZE 256 // 256 bits is 32 bytes | ||
|
||
/* Optimization. Remove all not needed stuff */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should go a few lines below, where the "undef" part is starting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
TESTS/configs/mbedtls_wisun_config.h
Outdated
#define MBEDTLS_WISUN_CONFIG_H_ | ||
|
||
#define MBEDTLS_ENTROPY_MAX_SOURCES 20 // save 320 bytes of RAM (default is 20 entropy source) | ||
#define MBEDTLS_SSL_MAX_CONTENT_LEN 8192 // Use 4kB buffers for input and output instead of 16kB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says "4kB", but the define is set to 8kB - which one is right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…ass under mesh Wisun. Netsocket timeouts increased due to long node join on current Wisun implementation.
c3f761e
to
0859ff7
Compare
Any more reviews from requested reviewers ? |
This is Wi-SUN related so @mikter should review this |
static const int TESTS_TIMEOUT = 14 * 60; | ||
#define MESH 3 | ||
#define WISUN 0x2345 | ||
#if MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == MESH && MBED_CONF_NSAPI_DEFAULT_MESH_TYPE == WISUN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&lowPAN could have the same timeouts as they should have the same network formation times.
But This is also ok
CI started |
Test run: SUCCESSSummary: 5 of 5 test jobs passed |
Modifications needed to pass successfully netsocket tests under mesh Wisun.
Netsocket timeouts increased, TLS and app json also adjusted.
Summary of changes
Timeouts for netsocket tests increased to 25 minutes due to Wisun node join tekes currently even more than 10 min. Tests also takes some time so 20 min timeout is sometimes not enough.
Added custom app json for Wisun test missing fields and removing spurious ones based on wisun_s2lp mesh minimal example.
Fixed Wisun TLS config for successful CA cert and handshake.
Impact of changes
This impacts netsocket tests only
Migration actions required
No
Documentation
None
Pull request type
Test results
Reviewers
@AnttiKauppila
@mikter
@JarkkoPaso
@michalpasztamobica
@SeppoTakalo