Disable time drifting test cases.

Time drifting test cases use serial communication with the host and are unstable on CI.
Skip time-drifting test cases if SKIP_TIME_DRIFT_TESTS macro is defined.
The idea for the future is to use FPGA test shield for timing tests instead of host scripts.

Also remove `__ARM_FM` macro which in most cases was used to disable time drifting tests. In other cases replace `__ARM_FM` with `TARGET_ARM_FM` which is more suitable.
pull/10762/head
Przemyslaw Stekiel 2019-06-05 13:35:52 +02:00
parent c325dbc695
commit 86dab2f9fa
10 changed files with 18 additions and 17 deletions

View File

@ -74,7 +74,8 @@ Case cases[] = {
Case("1 s delay during deepsleep (attach_us)", test_deepsleep<AttachUSTester<LowPowerTimeout>, 1000000, LONG_DELTA_US>,
greentea_failure_handler),
#endif
#if !defined(__ARM_FM) //FastModels not support time drifting test
#if !defined(SKIP_TIME_DRIFT_TESTS)
Case("Timing drift (attach)", test_drift<AttachTester<LowPowerTimeout> >),
Case("Timing drift (attach_us)", test_drift<AttachUSTester<LowPowerTimeout> >),
#endif

View File

@ -329,7 +329,8 @@ Case cases[] = {
Case("Test detach", test_detach),
Case("Test multi call and time measure", test_multi_call_time),
Case("Test multi ticker", test_multi_ticker),
#if !defined(__ARM_FM) //FastModels not support time drifting test
#if !defined(SKIP_TIME_DRIFT_TESTS)
Case("Test timers: 1x ticker", test_case_1x_ticker),
Case("Test timers: 2x ticker", test_case_2x_ticker)
#endif

View File

@ -68,7 +68,8 @@ Case cases[] = {
Case("1 s delay during sleep (attach_us)", test_sleep<AttachUSTester<Timeout>, 1000000, LONG_DELTA_US>,
greentea_failure_handler),
#endif
#if !defined(__ARM_FM) //FastModels not support time drifting test
#if !defined(SKIP_TIME_DRIFT_TESTS)
Case("Timing drift (attach)", test_drift<AttachTester<Timeout> >),
Case("Timing drift (attach_us)", test_drift<AttachUSTester<Timeout> >),
#endif

View File

@ -30,12 +30,11 @@
#include "hal/lp_ticker_api.h"
#include "hal/mbed_lp_ticker_wrapper.h"
#if !DEVICE_USTICKER
#if defined(SKIP_TIME_DRIFT_TESTS)
#error [NOT_SUPPORTED] test not supported
#endif
//FastModels not support time drifting test
#if defined(__ARM_FM)
#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

View File

@ -24,7 +24,7 @@
#include "hal/lp_ticker_api.h"
//FastModels not support timing test
#if defined(__ARM_FM)
#if defined(TARGET_ARM_FM)
#error [NOT_SUPPORTED] test not supported
#endif

View File

@ -19,6 +19,10 @@
#include "utest/utest.h"
#include "unity/unity.h"
#if defined(SKIP_TIME_DRIFT_TESTS)
#error [NOT_SUPPORTED] test not supported
#endif
#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif
@ -27,11 +31,6 @@
#error [NOT_SUPPORTED] test not supported
#endif
//FastModels not support time drifting test
#if defined(__ARM_FM)
#error [NOT_SUPPORTED] test not supported
#endif
using utest::v1::Case;
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)

View File

@ -31,7 +31,7 @@ using namespace utest::v1;
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
#define THREAD_STACK_SIZE 512
#elif defined(__ARM_FM)
#elif defined(TARGET_ARM_FM)
#define THREAD_STACK_SIZE 512
#elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
#define THREAD_STACK_SIZE 512

View File

@ -39,7 +39,7 @@ volatile bool thread_should_continue = true;
#define THREAD_STACK_SIZE 512
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
#define THREAD_STACK_SIZE 512
#elif defined(__ARM_FM)
#elif defined(TARGET_ARM_FM)
#define THREAD_STACK_SIZE 512
#elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
#define THREAD_STACK_SIZE 512

View File

@ -34,7 +34,7 @@
#define PARALLEL_THREAD_STACK_SIZE 512
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
#define PARALLEL_THREAD_STACK_SIZE 512
#elif defined(__ARM_FM)
#elif defined(TARGET_ARM_FM)
#define PARALLEL_THREAD_STACK_SIZE 512
#elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
#define PARALLEL_THREAD_STACK_SIZE 512

View File

@ -8030,7 +8030,7 @@
"ARM_FM": {
"inherits": ["Target"],
"public": false,
"macros": ["__ARM_FM"],
"macros": ["SKIP_TIME_DRIFT_TESTS"],
"extra_labels": ["ARM_FM"]
},
"FVP_MPS2": {