Skip to content

Commit a24cecf

Browse files
authored
Merge pull request #7805 from jamesbeyond/fm_test
Skip Greentea tests for Mbed OS code coverage on Fast Models
2 parents 2dfd3be + c9ac486 commit a24cecf

File tree

9 files changed

+27
-7
lines changed

9 files changed

+27
-7
lines changed

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,10 @@ Case cases[] = {
331331
Case("Test detach", test_detach),
332332
Case("Test multi call and time measure", test_multi_call_time),
333333
Case("Test multi ticker", test_multi_ticker),
334+
#if !defined(__ARM_FM) //FastModels not support time drifting test
334335
Case("Test timers: 1x ticker", test_case_1x_ticker),
335336
Case("Test timers: 2x ticker", test_case_2x_ticker)
337+
#endif
336338
};
337339

338340
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)

TESTS/mbed_drivers/timeout/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ Case cases[] = {
6868
Case("1 s delay during sleep (attach_us)", test_sleep<AttachUSTester<Timeout>, 1000000, LONG_DELTA_US>,
6969
greentea_failure_handler),
7070
#endif
71-
71+
#if !defined(__ARM_FM) //FastModels not support time drifting test
7272
Case("Timing drift (attach)", test_drift<AttachTester<Timeout> >),
7373
Case("Timing drift (attach_us)", test_drift<AttachUSTester<Timeout> >),
74+
#endif
7475
};
7576

7677
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)

TESTS/mbed_hal/common_tickers_freq/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#error [NOT_SUPPORTED] test not supported
3535
#endif
3636

37+
//FastModels not support time drifting test
38+
#if defined(__ARM_FM)
39+
#error [NOT_SUPPORTED] test not supported
40+
#endif
41+
3742
#define US_PER_S 1000000
3843

3944
using namespace utest::v1;

TESTS/mbedmicro-rtos-mbed/basic/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
#error [NOT_SUPPORTED] test not supported
2828
#endif
2929

30+
//FastModels not support time drifting test
31+
#if defined(__ARM_FM)
32+
#error [NOT_SUPPORTED] test not supported
33+
#endif
34+
3035
using utest::v1::Case;
3136

3237
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)

TESTS/mbedmicro-rtos-mbed/mail/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ using namespace utest::v1;
3131

3232
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
3333
#define THREAD_STACK_SIZE 512
34+
#elif defined(__ARM_FM)
35+
#define THREAD_STACK_SIZE 512
3436
#else
3537
#define THREAD_STACK_SIZE 320 /* larger stack cause out of heap memory on some 16kB RAM boards in multi thread test*/
3638
#endif

TESTS/mbedmicro-rtos-mbed/malloc/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ volatile bool thread_should_continue = true;
3939
#define THREAD_STACK_SIZE 512
4040
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
4141
#define THREAD_STACK_SIZE 512
42+
#elif defined(__ARM_FM)
43+
#define THREAD_STACK_SIZE 512
4244
#else
4345
#define THREAD_STACK_SIZE 256
4446
#endif

TESTS/mbedmicro-rtos-mbed/threads/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#define PARALLEL_THREAD_STACK_SIZE 512
3535
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
3636
#define PARALLEL_THREAD_STACK_SIZE 512
37+
#elif defined(__ARM_FM)
38+
#define PARALLEL_THREAD_STACK_SIZE 512
3739
#else
3840
#define PARALLEL_THREAD_STACK_SIZE 384
3941
#endif

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/TOOLCHAIN_GCC_ARM/MPS2.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ENTRY(Reset_Handler)
6969
STACK_SIZE = 0x400;
7070

7171
/* Size of the vector table in SRAM */
72-
M_VECTOR_RAM_SIZE = 0x100;
72+
M_VECTOR_RAM_SIZE = NVIC_VECTORS_SIZE;
7373

7474
SECTIONS
7575
{

targets/targets.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4391,6 +4391,7 @@
43914391
"ARM_FM": {
43924392
"inherits": ["Target"],
43934393
"public": false,
4394+
"macros": ["__ARM_FM"],
43944395
"extra_labels": ["ARM_FM"]
43954396
},
43964397
"FVP_MPS2": {
@@ -4404,27 +4405,27 @@
44044405
"FVP_MPS2_M0": {
44054406
"inherits": ["FVP_MPS2"],
44064407
"core": "Cortex-M0",
4407-
"macros": ["CMSDK_CM0"]
4408+
"macros_add": ["CMSDK_CM0"]
44084409
},
44094410
"FVP_MPS2_M0P": {
44104411
"inherits": ["FVP_MPS2"],
44114412
"core": "Cortex-M0+",
4412-
"macros": ["CMSDK_CM0plus"]
4413+
"macros_add": ["CMSDK_CM0plus"]
44134414
},
44144415
"FVP_MPS2_M3": {
44154416
"inherits": ["FVP_MPS2"],
44164417
"core": "Cortex-M3",
4417-
"macros": ["CMSDK_CM3"]
4418+
"macros_add": ["CMSDK_CM3"]
44184419
},
44194420
"FVP_MPS2_M4": {
44204421
"inherits": ["FVP_MPS2"],
44214422
"core": "Cortex-M4",
4422-
"macros": ["CMSDK_CM4"]
4423+
"macros_add": ["CMSDK_CM4"]
44234424
},
44244425
"FVP_MPS2_M7": {
44254426
"inherits": ["FVP_MPS2"],
44264427
"core": "Cortex-M7",
4427-
"macros": ["CMSDK_CM7"]
4428+
"macros_add": ["CMSDK_CM7"]
44284429
},
44294430
"NUMAKER_PFM_M2351": {
44304431
"core": "Cortex-M23-NS",

0 commit comments

Comments
 (0)