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 18
18
#include " greentea-client/test_env.h"
19
19
#include " unity.h"
20
20
#include " utest.h"
21
+ #if defined(MBED_CONF_RTOS_PRESENT)
21
22
#include " rtos.h"
23
+ #endif
22
24
23
25
using namespace utest ::v1;
24
26
Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
+ #if !defined(MBED_CONF_RTOS_PRESENT)
20
+ #error [NOT_SUPPORTED] PSA attestation test cases require RTOS to run.
21
+ #else
22
+
19
23
#include " psa/crypto.h"
20
24
21
25
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
@@ -157,3 +161,4 @@ int main()
157
161
}
158
162
159
163
#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 16
16
* limitations under the License.
17
17
*/
18
18
19
+ #if !defined(MBED_CONF_RTOS_PRESENT)
20
+ #error [NOT_SUPPORTED] ITS/PS test cases require RTOS to run.
21
+ #else
22
+
19
23
#ifndef TARGET_PSA
20
24
#error [NOT_SUPPORTED] ITS/PS tests can run only on PSA-enabled targets.
21
25
#else
@@ -239,3 +243,4 @@ int main()
239
243
}
240
244
241
245
#endif // TARGET_PSA
246
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#include "pal_mbed_os_intf.h"
3
3
4
+ #if !defined(MBED_CONF_RTOS_PRESENT )
5
+ #error [NOT_SUPPORTED] PSA compliance attestation test cases require RTOS to run.
6
+ #else
4
7
void test_entry_a001 (val_api_t * val_api , psa_api_t * psa_api );
5
8
6
9
int main (void )
7
10
{
8
11
test_start (test_entry_a001 , COMPLIANCE_TEST_ATTESTATION );
9
12
}
13
+ #endif
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#include "pal_mbed_os_intf.h"
3
3
4
+ #if !defined(MBED_CONF_RTOS_PRESENT )
5
+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6
+ #else
7
+
4
8
#ifdef ITS_TEST
5
9
void test_entry_s001 (val_api_t * val_api , psa_api_t * psa_api );
6
10
#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
15
19
test_start (test_entry_p001 , COMPLIANCE_TEST_STORAGE );
16
20
#endif
17
21
}
22
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#include "pal_mbed_os_intf.h"
3
3
#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
4
7
5
8
#ifdef ITS_TEST
6
9
void test_entry_s002 (val_api_t * val_api , psa_api_t * psa_api );
@@ -16,3 +19,4 @@ int main(void)
16
19
test_start (test_entry_p002 , COMPLIANCE_TEST_STORAGE );
17
20
#endif
18
21
}
22
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#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
3
6
4
7
#ifdef ITS_TEST
5
8
void test_entry_s004 (val_api_t * val_api , psa_api_t * psa_api );
@@ -15,3 +18,4 @@ int main(void)
15
18
test_start (test_entry_p004 , COMPLIANCE_TEST_STORAGE );
16
19
#endif
17
20
}
21
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#include "pal_mbed_os_intf.h"
3
3
4
+ #if !defined(MBED_CONF_RTOS_PRESENT )
5
+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6
+ #else
7
+
4
8
#ifdef ITS_TEST
5
9
void test_entry_s005 (val_api_t * val_api , psa_api_t * psa_api );
6
10
#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
15
19
test_start (test_entry_p005 , COMPLIANCE_TEST_STORAGE );
16
20
#endif
17
21
}
22
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#include "pal_mbed_os_intf.h"
3
3
4
+ #if !defined(MBED_CONF_RTOS_PRESENT )
5
+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6
+ #else
7
+
4
8
#ifdef ITS_TEST
5
9
void test_entry_s006 (val_api_t * val_api , psa_api_t * psa_api );
6
10
#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
15
19
test_start (test_entry_p006 , COMPLIANCE_TEST_STORAGE );
16
20
#endif
17
21
}
22
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 1
1
#include "val_interfaces.h"
2
2
#include "pal_mbed_os_intf.h"
3
3
4
+ #if !defined(MBED_CONF_RTOS_PRESENT )
5
+ #error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
6
+ #else
7
+
4
8
#ifdef ITS_TEST
5
9
void test_entry_s007 (val_api_t * val_api , psa_api_t * psa_api );
6
10
#elif PS_TEST
@@ -15,3 +19,4 @@ int main(void)
15
19
test_start (test_entry_p007 , COMPLIANCE_TEST_STORAGE );
16
20
#endif
17
21
}
22
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
You can’t perform that action at this time.
0 commit comments