littlefs: Increased test timeout to 4 minutes

Unfortunately there are several issues colluding to force the timeout
this high.

1. The tests push littlefs to the limits of how many errors it can
handle before failing. As a side effect this causes a massive amount
of debug/warn/error logging about the situation.

2. The logging can't be turned off for specific tests. Note: This might
change with the introduction of test-configs.

3. Logging is fixed to a baud rate of 9600. Previous testing was carried
out with a baud rate of 115200, which is the reason for the original
timeout.
pull/5538/head
Christopher Haster 2017-11-22 17:19:16 -06:00
parent ea0fee0968
commit 2cf4715cb6
11 changed files with 23 additions and 11 deletions

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -41,6 +41,10 @@ using namespace utest::v1;
#define MBED_TEST_CYCLES 10 #define MBED_TEST_CYCLES 10
#endif #endif
#ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 480
#endif
// declarations // declarations
#define STRINGIZE(x) STRINGIZE2(x) #define STRINGIZE(x) STRINGIZE2(x)
#define STRINGIZE2(x) #x #define STRINGIZE2(x) #x
@ -89,7 +93,7 @@ Case cases[] = {
utest::v1::status_t greentea_test_setup(const size_t number_of_cases) utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{ {
GREENTEA_SETUP(120, "default_auto"); GREENTEA_SETUP(MBED_TEST_TIMEOUT, "default_auto");
return greentea_test_setup_handler(number_of_cases); return greentea_test_setup_handler(number_of_cases);
} }

View File

@ -44,6 +44,10 @@ using namespace utest::v1;
#define MBED_TEST_CYCLES 10 #define MBED_TEST_CYCLES 10
#endif #endif
#ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 480
#endif
// declarations // declarations
#define STRINGIZE(x) STRINGIZE2(x) #define STRINGIZE(x) STRINGIZE2(x)
#define STRINGIZE2(x) #x #define STRINGIZE2(x) #x
@ -95,7 +99,7 @@ static cmd_status_t handle_command(const char *key, const char *value)
int main() int main()
{ {
GREENTEA_SETUP(120, "unexpected_reset"); GREENTEA_SETUP(MBED_TEST_TIMEOUT, "unexpected_reset");
static char _key[10 + 1] = {}; static char _key[10 + 1] = {};
static char _value[128 + 1] = {}; static char _value[128 + 1] = {};

View File

@ -42,6 +42,10 @@ using namespace utest::v1;
#define MBED_TEST_ERASE_CYCLES 100 #define MBED_TEST_ERASE_CYCLES 100
#endif #endif
#ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 480
#endif
// declarations // declarations
#define STRINGIZE(x) STRINGIZE2(x) #define STRINGIZE(x) STRINGIZE2(x)
#define STRINGIZE2(x) #x #define STRINGIZE2(x) #x
@ -105,7 +109,7 @@ Case cases[] = {
utest::v1::status_t greentea_test_setup(const size_t number_of_cases) utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{ {
GREENTEA_SETUP(120, "default_auto"); GREENTEA_SETUP(MBED_TEST_TIMEOUT, "default_auto");
return greentea_test_setup_handler(number_of_cases); return greentea_test_setup_handler(number_of_cases);
} }

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif

View File

@ -52,7 +52,7 @@ using namespace utest::v1;
#endif #endif
#ifndef MBED_TEST_TIMEOUT #ifndef MBED_TEST_TIMEOUT
#define MBED_TEST_TIMEOUT 120 #define MBED_TEST_TIMEOUT 480
#endif #endif