Incorporated review comments

pull/11821/head
RAJKUMAR KANAGARAJ 2019-11-08 07:07:12 -08:00
parent f30dd1cef2
commit 829e90afc8
12 changed files with 28 additions and 23 deletions

View File

@ -17,7 +17,7 @@
*/
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA attestation test case requires RTOS to run.
#error [NOT_SUPPORTED] PSA attestation test cases require RTOS to run.
#else
#include "psa/crypto.h"

View File

@ -16,8 +16,12 @@
* limitations under the License.
*/
#if !defined(TARGET_PSA) || !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] ITS/PS tests can run only on PSA-enabled targets and RTOS.
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] ITS/PS test cases require RTOS to run.
#else
#ifndef TARGET_PSA
#error [NOT_SUPPORTED] ITS/PS tests can run only on PSA-enabled targets.
#else
#include "greentea-client/test_env.h"
@ -238,4 +242,5 @@ int main()
return !Harness::run(specification);
}
#endif // TARGET_PSA || !defined(MBED_CONF_RTOS_PRESENT)
#endif // TARGET_PSA
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance attestation test cases requires RTOS to run.
#error [NOT_SUPPORTED] PSA compliance attestation test cases require RTOS to run.
#else
void test_entry_a001(val_api_t *val_api, psa_api_t *psa_api);

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p001, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#include "lifecycle.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p002, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -1,7 +1,7 @@
#include "val_interfaces.h"
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -18,4 +18,4 @@ int main(void)
test_start(test_entry_p004, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p005, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p006, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p007, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p008, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p009, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -2,7 +2,7 @@
#include "pal_mbed_os_intf.h"
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] PSA compliance its test cases requires RTOS to run
#error [NOT_SUPPORTED] PSA compliance its test cases require RTOS to run
#else
#ifdef ITS_TEST
@ -19,4 +19,4 @@ int main(void)
test_start(test_entry_p010, COMPLIANCE_TEST_STORAGE);
#endif
}
#endif
#endif // !defined(MBED_CONF_RTOS_PRESENT)