Skip to content

Commit 60c6740

Browse files
author
Michael Schwarcz
committed
Build SPM tests only for MBED_SPM targets
1 parent 1db4e46 commit 60c6740

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

TESTS/psa/spm_client/COMPONENT_NSPE/client_ipc_tests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#error [NOT_SUPPORTED] SPM tests can run only on SPM-enabled targets
2020
#endif // COMPONENT_PSA_SRV_IPC
2121

22+
#ifndef TARGET_MBED_SPM
23+
#error [NOT_SUPPORTED] SPM tests currently only run on MBED_SPM targets
24+
#endif // TARGET_MBED_SPM
25+
2226
#include "mbed.h"
2327
#include "greentea-client/test_env.h"
2428
#include "unity.h"

TESTS/psa/spm_server/COMPONENT_NSPE/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#error [NOT_SUPPORTED] SPM tests can run only on SPM-enabled targets
2020
#endif // COMPONENT_PSA_SRV_IPC
2121

22+
#ifndef TARGET_MBED_SPM
23+
#error [NOT_SUPPORTED] SPM tests currently only run on MBED_SPM targets
24+
#endif // TARGET_MBED_SPM
25+
2226
#include "mbed.h"
2327
#include "greentea-client/test_env.h"
2428
#include "unity.h"

TESTS/psa/spm_smoke/COMPONENT_NSPE/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
#ifndef COMPONENT_PSA_SRV_IPC
2020
#error [NOT_SUPPORTED] SPM tests can run only on SPM-enabled targets
2121
#endif // COMPONENT_PSA_SRV_IPC
22+
23+
#ifndef TARGET_MBED_SPM
24+
#error [NOT_SUPPORTED] SPM tests currently only run on MBED_SPM targets
25+
#endif // TARGET_MBED_SPM
26+
2227
/* -------------------------------------- Includes ----------------------------------- */
2328

2429
#include "greentea-client/test_env.h"

0 commit comments

Comments
 (0)