Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "tfm_integ_test.h" |
| 9 | |
| 10 | #ifdef TEST_FRAMEWORK_NS |
| 11 | #include "test/framework/test_framework_integ_test.h" |
| 12 | #endif |
| 13 | |
| 14 | #ifdef TEST_FRAMEWORK_S |
| 15 | #include \ |
| 16 | "test/test_services/tfm_secure_client_service/tfm_secure_client_service_api.h" |
| 17 | #endif |
| 18 | |
| 19 | #if defined(TEST_FRAMEWORK_NS) || defined(TEST_FRAMEWORK_S) |
| 20 | /** |
| 21 | * \brief Services test thread |
| 22 | * |
| 23 | */ |
| 24 | __attribute__((noreturn)) |
| 25 | void test_app(void *argument) |
| 26 | { |
| 27 | UNUSED_VARIABLE(argument); |
| 28 | |
| 29 | #ifdef TEST_FRAMEWORK_S |
| 30 | /* FIXME: The non-secure audit log test currently relies on the fact that |
| 31 | * the audit log secure test is run first. However the Non-secure tests |
| 32 | * represent simpler and more common test cases which would make more sense |
| 33 | * to be run first. Therefore if this dependency is removed the execution |
| 34 | * order of these test classes should be reversed. */ |
| 35 | tfm_secure_client_run_tests(); |
| 36 | #endif |
| 37 | #ifdef TEST_FRAMEWORK_NS |
| 38 | tfm_non_secure_client_run_tests(); |
| 39 | #endif |
| 40 | /* End of test */ |
| 41 | for (;;) { |
| 42 | } |
| 43 | } |
| 44 | #endif /* TEST_FRAMEWORK_NS OR TEST_FRAMEWORK_S */ |