Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 1 | /* |
Kevin Peng | 342ec68 | 2022-04-29 10:36:58 +0800 | [diff] [blame] | 2 | * Copyright (c) 2017-2022, Arm Limited. All rights reserved. |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
Kevin Peng | 342ec68 | 2022-04-29 10:36:58 +0800 | [diff] [blame] | 8 | #include "test_app.h" |
Paul Sokolovsky | 5d7925e | 2022-03-15 12:13:53 +0300 | [diff] [blame] | 9 | #include "tfm_log.h" |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 10 | |
| 11 | #ifdef TEST_FRAMEWORK_NS |
Raef Coles | 5ee45ed | 2020-09-24 11:25:44 +0100 | [diff] [blame] | 12 | #include "test_framework_integ_test.h" |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 13 | #endif |
| 14 | |
Kevin Peng | 342ec68 | 2022-04-29 10:36:58 +0800 | [diff] [blame] | 15 | #if PSA_API_TEST_NS |
| 16 | /** |
| 17 | * \brief This symbol is the entry point provided by the PSA API compliance |
| 18 | * test libraries |
| 19 | */ |
| 20 | extern void val_entry(void); |
| 21 | #endif |
| 22 | |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 23 | /** |
| 24 | * \brief Services test thread |
| 25 | * |
| 26 | */ |
| 27 | __attribute__((noreturn)) |
| 28 | void test_app(void *argument) |
| 29 | { |
| 30 | UNUSED_VARIABLE(argument); |
| 31 | |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 32 | #ifdef TEST_FRAMEWORK_NS |
| 33 | tfm_non_secure_client_run_tests(); |
| 34 | #endif |
Kevin Peng | 342ec68 | 2022-04-29 10:36:58 +0800 | [diff] [blame] | 35 | |
| 36 | #ifdef PSA_API_TEST_NS |
| 37 | val_entry(); |
| 38 | #endif |
| 39 | |
Paul Sokolovsky | 5d7925e | 2022-03-15 12:13:53 +0300 | [diff] [blame] | 40 | /* Output EOT char for test environments like FVP. */ |
| 41 | LOG_MSG("\x04"); |
Kevin Peng | 342ec68 | 2022-04-29 10:36:58 +0800 | [diff] [blame] | 42 | |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 43 | /* End of test */ |
| 44 | for (;;) { |
| 45 | } |
| 46 | } |