Skip to content

Commit 3fc8905

Browse files
committed
Fixed the greentea test dependency and incorporated the review comments
-Added the mbedtls,crypto,psa,filesystem,fat,littlefs in baremetal.json to resolve compiler issue -Disable metrics that are not available for bare metal -Moved the baremetal.json inside TESTS/configs directory
1 parent f402dbb commit 3fc8905

File tree

13 files changed

+61
-53
lines changed

13 files changed

+61
-53
lines changed

TESTS/baremetal.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

TESTS/configs/baremetal.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"requires": [
3+
"bare-metal",
4+
"greentea-client",
5+
"utest",
6+
"unity",
7+
"psa",
8+
"mbed-crypto",
9+
"mbedtls",
10+
"psa-compliance-framework",
11+
"filesystem",
12+
"littlefs",
13+
"mbed-trace",
14+
"device-key",
15+
"lora"
16+
]
17+
}

TESTS/integration/COMMON/download_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24+
#if !INTEGRATION_TESTS
25+
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#endif
27+
2428
#include "mbed.h"
2529
#include "unity/unity.h"
2630
#include "greentea-client/test_env.h"

TESTS/integration/COMMON/file_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
/*
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
23+
#if !INTEGRATION_TESTS
24+
#error [NOT_SUPPORTED] integration tests not enabled for this target
25+
#endif
2326

2427
#include "mbed.h"
2528
#include "unity/unity.h"

TESTS/integration/fs-single/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24+
#if !INTEGRATION_TESTS
25+
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#endif
27+
2428
#include "mbed.h"
2529
#include "FATFileSystem.h"
2630
#include "LittleFileSystem.h"
@@ -30,10 +34,6 @@
3034
#include "common_defines_test.h"
3135
#include "file_test.h"
3236

33-
#if !INTEGRATION_TESTS
34-
#error [NOT_SUPPORTED] integration tests not enabled for this target
35-
#endif
36-
3737
#ifdef MBED_CONF_APP_BASICS_TEST_FILENAME
3838
#include MBED_CONF_APP_BASICS_TEST_FILENAME
3939
#else

TESTS/integration/fs-threaded/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24+
#if !INTEGRATION_TESTS
25+
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#endif
27+
2428
#include "mbed.h"
2529
#include "FATFileSystem.h"
2630
#include "LittleFileSystem.h"
@@ -30,10 +34,6 @@
3034
#include "common_defines_test.h"
3135
#include "file_test.h"
3236

33-
#if !INTEGRATION_TESTS
34-
#error [NOT_SUPPORTED] integration tests not enabled for this target
35-
#endif
36-
3737
#ifdef MBED_CONF_APP_BASICS_TEST_FILENAME
3838
#include MBED_CONF_APP_BASICS_TEST_FILENAME
3939
#else

TESTS/integration/net-single/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24+
#if !INTEGRATION_TESTS
25+
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#endif
27+
2428
#include "mbed.h"
2529
#include "utest/utest.h"
2630
#include "unity/unity.h"
@@ -29,10 +33,6 @@
2933
#include "download_test.h"
3034
#include <string>
3135

32-
#if !INTEGRATION_TESTS
33-
#error [NOT_SUPPORTED] integration tests not enabled for this target
34-
#endif
35-
3636
#ifdef MBED_CONF_APP_BASICS_TEST_FILENAME
3737
#include MBED_CONF_APP_BASICS_TEST_FILENAME
3838
#else

TESTS/integration/net-threaded/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24+
#if !INTEGRATION_TESTS
25+
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#endif
27+
2428
#include "mbed.h"
2529
#include "utest/utest.h"
2630
#include "unity/unity.h"
@@ -29,10 +33,6 @@
2933
#include "download_test.h"
3034
#include <string>
3135

32-
#if !INTEGRATION_TESTS
33-
#error [NOT_SUPPORTED] integration tests not enabled for this target
34-
#endif
35-
3636
#ifdef MBED_CONF_APP_BASICS_TEST_FILENAME
3737
#include MBED_CONF_APP_BASICS_TEST_FILENAME
3838
#else

TESTS/integration/stress-net-fs/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24+
#if !INTEGRATION_TESTS
25+
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#endif
27+
2428
#include "mbed.h"
2529
#include "FATFileSystem.h"
2630
#include "LittleFileSystem.h"
@@ -32,9 +36,6 @@
3236
#include "file_test.h"
3337
#include <string>
3438

35-
#if !INTEGRATION_TESTS
36-
#error [NOT_SUPPORTED] integration tests not enabled for this target
37-
#endif
3839

3940
#ifdef MBED_CONF_APP_BASICS_TEST_FILENAME
4041
#include MBED_CONF_APP_BASICS_TEST_FILENAME

TESTS/lorawan/loraradio/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "unity.h"
1919
#include "greentea-client/test_env.h"
2020

21-
#include "Semaphore.h"
22-
2321
#include "mbed_trace.h"
2422
#define TRACE_GROUP "RTST"
2523

@@ -36,6 +34,8 @@
3634
#error [NOT_SUPPORTED] Requires parameters from application config file.
3735
#endif
3836

37+
#include "Semaphore.h"
38+
3939
#if (MBED_CONF_APP_LORA_RADIO == SX1272) || (MBED_CONF_APP_LORA_RADIO == SX1276)
4040

4141
using namespace utest::v1;

0 commit comments

Comments
 (0)