blob: 3f69969bf5f8a76670e0824553261b9f8ae1e976 [file] [log] [blame]
Kevin Peng62a87112020-07-07 15:07:46 +08001/*
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
Raef Coles5ee45ed2020-09-24 11:25:44 +010011#include "test_framework_integ_test.h"
Kevin Peng62a87112020-07-07 15:07:46 +080012#endif
13
shejia0126b2d782021-08-19 17:08:24 +080014#if defined(TEST_FRAMEWORK_S) && defined(TFM_LIB_MODEL)
15/* Function tfm_secure_client_run_tests() which is declared in
16 * tfm_secure_client_service_api.h is only required in NS for Library mode. */
Raef Coles5ee45ed2020-09-24 11:25:44 +010017#include "tfm_secure_client_service_api.h"
Kevin Peng62a87112020-07-07 15:07:46 +080018#endif
19
20#if defined(TEST_FRAMEWORK_NS) || defined(TEST_FRAMEWORK_S)
21/**
22 * \brief Services test thread
23 *
24 */
25__attribute__((noreturn))
26void test_app(void *argument)
27{
28 UNUSED_VARIABLE(argument);
29
shejia0126b2d782021-08-19 17:08:24 +080030#if defined(TEST_FRAMEWORK_S) && defined(TFM_LIB_MODEL)
Kevin Peng62a87112020-07-07 15:07:46 +080031 /* FIXME: The non-secure audit log test currently relies on the fact that
32 * the audit log secure test is run first. However the Non-secure tests
33 * represent simpler and more common test cases which would make more sense
34 * to be run first. Therefore if this dependency is removed the execution
35 * order of these test classes should be reversed. */
36 tfm_secure_client_run_tests();
37#endif
38#ifdef TEST_FRAMEWORK_NS
39 tfm_non_secure_client_run_tests();
40#endif
41 /* End of test */
42 for (;;) {
43 }
44}
45#endif /* TEST_FRAMEWORK_NS OR TEST_FRAMEWORK_S */