-
Notifications
You must be signed in to change notification settings - Fork 3k
Update greentea tests to use default interface #7812
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
@SeppoTakalo @kjbracey-arm Please review. |
Fixed travis errors in 0112b5a3735e0576b0d016b132b589e07374e705 |
Hi I have the impression that in json file, When type is null, configuration-available is false, |
@jeromecoutant Good catch, actually you are right. @mikaleppanen Please check, whether the "target.default-network-interface" satisfies us, so we would not need any more config values. Default is |
@jeromecoutant @SeppoTakalo I think I may have chosen a bad name for that macro, but what it intends to do is to be a general config option that indicates that greentea test configuration is set properly when compiling the build (e.g. by setting mbed test ... --test-config HEAPBLOCKDEVICE_AND_WIFI or using --app-config filename or automatically for ethernet targets). If that would be removed, then there would need to be some other check for greentea .json configuration. E.g. UDP/TCP tests should check whether echo-server-addr is set and not to compile if not. And wifi and emac tests have their own fields in .json that must be present. Intend was to define some general define which all tests could use. |
I see the point. However, would it be hard to actually check build time that all macros are provided in the compile time. Seems that it is basically like this:
So only WiFi require mandatory SSID parameter. Rest have defaults. |
Yes, it would work for default interface related configuration options. That combined with the check to MBED_CONF_APP_ECHO_SERVER_ADDR on tests needing the echo server (and other checks for tests needing other parameters like EMAC or detailed WIFI settings) would verify that both interface and the test options are configured correctly. I can change the configurations in this way. |
Created one configuration .json file for boards with internal wifi (HeapBlockDeviceAndWifiInterface.json). Removed dedicated Odin, Wiced and Realtek wifi configuration files. Removed Odin ethernet configuration file and replaced that with general ethernet configuration.
Removed the "network-configuration-available" configuration and added checks to default interface and echo server address. Please review again. |
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
@kjbracey-arm Please review |
/morph build |
Build : SUCCESSBuild number : 2890 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2515 |
Description
Updated greentea tests to use default interface:
NetworkInterface::get_default_instance()
Created one configuration .json file for boards with internal wifi (HeapBlockDeviceAndWifiInterface.json). Removed dedicated Odin, Wiced and Realtek wifi configuration files. Removed Odin ethernet configuration file and replaced that with general ethernet configuration.
Updated UDP socket, TCP socket, DNS, Wifi and Emac tests to use default instance.
Tested with K64F, K64F + ESP8266, Realtek RTL8195AM, UBLOX EVK ODIN W2, NUCLEO F401RE + X-NUCLEO-IDW.
Pull request type