-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Bare metal green tea test for storage component #11825
Bare metal green tea test for storage component #11825
Conversation
…components test cases which is based on RTOS
@rajkan01, 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.
LGTM
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.
Please see my previous comment.
@@ -872,7 +872,9 @@ uint32_t SDBlockDevice::_go_idle_state() | |||
if (R1_IDLE_STATE == response) { | |||
break; | |||
} | |||
#if defined(MBED_CONF_RTOS_PRESENT) |
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.
ThisThread::sleep_for()
is not requiring RTOS, so no need to guard.
@@ -28,10 +32,6 @@ | |||
using namespace utest::v1; | |||
using namespace mbed; | |||
|
|||
#if !DEVICEKEY_ENABLED |
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.
DEVICEKEY_ENABLED
macro is coming from DeviceKey.h
so this test should not be before the #include
@@ -67,6 +69,7 @@ static void parse_default_kv() | |||
//init the blockdevice | |||
static void kvstore_init() | |||
{ | |||
#if defined(MBED_CONF_RTOS_PRESENT) |
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.
If init is skipped, then why is not the whole .cpp
skipped on the compilation phase? Rest of the test cases are not working anyway.
@@ -27,10 +31,6 @@ | |||
#include <stdio.h> | |||
#include <algorithm> | |||
|
|||
#if !NVSTORE_ENABLED | |||
#error [NOT_SUPPORTED] NVSTORE needs to be enabled for this test | |||
#else |
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.
Again, I don't see the point of moving the #if
to before #include
as nvstore.h
might disable that flag.
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.
This macro comes from "features/storage/nvstore/mbed_lib.json".i think this is fine to keep at the beginning
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.
Not totally true. It can be disabled, if FLASH is not enabled:
https://github.com/ARMmbed/mbed-os/blob/master/features/storage/nvstore/source/nvstore.h#L23
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.
Yes, I noticed, I will move this after nvstore.h file
c560947
to
d8e2dd5
Compare
Looks OK. |
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
@adbridge Please start the CI |
CI started |
Test run: SUCCESSSummary: 5 of 5 test jobs passed |
Description (required)
Skip partially or completely Bare metal green tea test for storage-related components which is based on RTOS and will not run in bare-metal.
Summary of change (What the change is for and why)
3.Tested the green tea test on below list of targets with bare metal config and added the logs in IOTCORE-1397[https://jira.arm.com/browse/IOTCORE-1397] Jira ticket
Documentation (Details of any document updates required)
Pull request type (required)
Test results (required)
Reviewers (optional)
@SeppoTakalo @jamesbeyond @evedon
Release Notes (required for feature/major PRs)
Summary of changes
Impact of changes
Migration actions required