File tree Expand file tree Collapse file tree 14 files changed +61
-0
lines changed
components/TARGET_PSA/TESTS
compliance_attestation/test_a001
features/frameworks/TARGET_PSA/pal Expand file tree Collapse file tree 14 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1818#include " greentea-client/test_env.h"
1919#include " unity.h"
2020#include " utest.h"
21+ #if defined(MBED_CONF_RTOS_PRESENT)
2122#include " rtos.h"
23+ #endif
2224
2325using namespace utest ::v1;
2426
Original file line number Diff line number Diff line change 1616* limitations under the License.
1717*/
1818
19+ #if !defined(MBED_CONF_RTOS_PRESENT)
20+ #error [NOT_SUPPORTED] PSA attestation test cases require RTOS to run.
21+ #else
22+
1923#include " psa/crypto.h"
2024
2125#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
@@ -157,3 +161,4 @@ int main()
157161}
158162
159163#endif // ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
164+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1616* limitations under the License.
1717*/
1818
19+ #if !defined(MBED_CONF_RTOS_PRESENT)
20+ #error [NOT_SUPPORTED] ITS/PS test cases require RTOS to run.
21+ #else
22+
1923#ifndef TARGET_PSA
2024#error [NOT_SUPPORTED] ITS/PS tests can run only on PSA-enabled targets.
2125#else
@@ -239,3 +243,4 @@ int main()
239243}
240244
241245#endif // TARGET_PSA
246+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
33
4+ #if !defined(MBED_CONF_RTOS_PRESENT )
5+ #error [NOT_SUPPORTED] PSA compliance attestation test cases require RTOS to run.
6+ #else
47void test_entry_a001 (val_api_t * val_api , psa_api_t * psa_api );
58
69int main (void )
710{
811 test_start (test_entry_a001 , COMPLIANCE_TEST_ATTESTATION );
912}
13+ #endif
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
33
4+ #if !defined(MBED_CONF_RTOS_PRESENT )
5+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6+ #else
7+
48#ifdef ITS_TEST
59void test_entry_s001 (val_api_t * val_api , psa_api_t * psa_api );
610#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
1519 test_start (test_entry_p001 , COMPLIANCE_TEST_STORAGE );
1620#endif
1721}
22+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
33#include "lifecycle.h"
4+ #if !defined(MBED_CONF_RTOS_PRESENT )
5+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6+ #else
47
58#ifdef ITS_TEST
69void test_entry_s002 (val_api_t * val_api , psa_api_t * psa_api );
@@ -16,3 +19,4 @@ int main(void)
1619 test_start (test_entry_p002 , COMPLIANCE_TEST_STORAGE );
1720#endif
1821}
22+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
3+ #if !defined(MBED_CONF_RTOS_PRESENT )
4+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
5+ #else
36
47#ifdef ITS_TEST
58void test_entry_s004 (val_api_t * val_api , psa_api_t * psa_api );
@@ -15,3 +18,4 @@ int main(void)
1518 test_start (test_entry_p004 , COMPLIANCE_TEST_STORAGE );
1619#endif
1720}
21+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
33
4+ #if !defined(MBED_CONF_RTOS_PRESENT )
5+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6+ #else
7+
48#ifdef ITS_TEST
59void test_entry_s005 (val_api_t * val_api , psa_api_t * psa_api );
610#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
1519 test_start (test_entry_p005 , COMPLIANCE_TEST_STORAGE );
1620#endif
1721}
22+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
33
4+ #if !defined(MBED_CONF_RTOS_PRESENT )
5+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6+ #else
7+
48#ifdef ITS_TEST
59void test_entry_s006 (val_api_t * val_api , psa_api_t * psa_api );
610#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
1519 test_start (test_entry_p006 , COMPLIANCE_TEST_STORAGE );
1620#endif
1721}
22+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 11#include "val_interfaces.h"
22#include "pal_mbed_os_intf.h"
33
4+ #if !defined(MBED_CONF_RTOS_PRESENT )
5+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6+ #else
7+
48#ifdef ITS_TEST
59void test_entry_s007 (val_api_t * val_api , psa_api_t * psa_api );
610#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
1519 test_start (test_entry_p007 , COMPLIANCE_TEST_STORAGE );
1620#endif
1721}
22+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
You can’t perform that action at this time.
0 commit comments