blob: 1efc45f4012e17eac6a01f1e05c3ecf13a867c2b [file] [log] [blame]
Kevin Peng62a87112020-07-07 15:07:46 +08001/*
Kevin Peng342ec682022-04-29 10:36:58 +08002 * Copyright (c) 2017-2022, Arm Limited. All rights reserved.
Kevin Peng62a87112020-07-07 15:07:46 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
Kevin Peng342ec682022-04-29 10:36:58 +08008#include "test_app.h"
Paul Sokolovsky5d7925e2022-03-15 12:13:53 +03009#include "tfm_log.h"
Kevin Peng62a87112020-07-07 15:07:46 +080010
11#ifdef TEST_FRAMEWORK_NS
Raef Coles5ee45ed2020-09-24 11:25:44 +010012#include "test_framework_integ_test.h"
Kevin Peng62a87112020-07-07 15:07:46 +080013#endif
14
Kevin Peng342ec682022-04-29 10:36:58 +080015#if PSA_API_TEST_NS
16/**
17 * \brief This symbol is the entry point provided by the PSA API compliance
18 * test libraries
19 */
20extern void val_entry(void);
21#endif
22
Kevin Peng62a87112020-07-07 15:07:46 +080023/**
24 * \brief Services test thread
25 *
26 */
27__attribute__((noreturn))
28void test_app(void *argument)
29{
30 UNUSED_VARIABLE(argument);
31
Kevin Peng62a87112020-07-07 15:07:46 +080032#ifdef TEST_FRAMEWORK_NS
33 tfm_non_secure_client_run_tests();
34#endif
Kevin Peng342ec682022-04-29 10:36:58 +080035
36#ifdef PSA_API_TEST_NS
37 val_entry();
38#endif
39
Paul Sokolovsky5d7925e2022-03-15 12:13:53 +030040 /* Output EOT char for test environments like FVP. */
41 LOG_MSG("\x04");
Kevin Peng342ec682022-04-29 10:36:58 +080042
Kevin Peng62a87112020-07-07 15:07:46 +080043 /* End of test */
44 for (;;) {
45 }
46}