Skip to content

Commit 237ad40

Browse files
author
Arto Kinnunen
authored
Merge pull request #10963 from devran01/pr/10888/fix
PSA TESTS: Include mbedtls/config.h before evaluating MBEDTLS_PSA_CRYPTO_C
2 parents 7db0e83 + 7ead3fe commit 237ad40

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

TESTS/mbed-crypto/sanity/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
#include "psa/crypto.h"
19+
1820
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
1921
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2022
#endif
@@ -24,7 +26,6 @@
2426
#include "greentea-client/test_env.h"
2527
#include "unity.h"
2628
#include "utest.h"
27-
#include "psa/crypto.h"
2829
#include "entropy.h"
2930
#include "entropy_poll.h"
3031

TESTS/psa/attestation/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
#include "psa/crypto.h"
20+
1921
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
2022
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2123
#endif // TARGET_PSA

TESTS/psa/crypto_access_control/COMPONENT_NSPE/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
#include "psa/crypto.h"
19+
1820
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)) || (!defined(COMPONENT_PSA_SRV_IPC)))
1921
#error [NOT_SUPPORTED] These tests can run only on SPM-enabled targets and where Mbed Crypto is ON - skipping.
2022
#endif
@@ -24,7 +26,6 @@
2426
#include "greentea-client/test_env.h"
2527
#include "unity.h"
2628
#include "utest.h"
27-
#include "psa/crypto.h"
2829
#include "entropy.h"
2930
#include "entropy_poll.h"
3031
#include "test_partition_proxy.h"

TESTS/psa/crypto_init/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
* limitations under the License.
1717
*/
1818

19+
#include "psa/crypto.h"
20+
1921
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
2022
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2123
#endif // TARGET_PSA
2224

2325
#include "greentea-client/test_env.h"
2426
#include "unity/unity.h"
2527
#include "utest/utest.h"
26-
#include "crypto.h"
2728
#include "entropy.h"
2829
#include "entropy_poll.h"
2930

0 commit comments

Comments
 (0)