blob: 041e7338eddb531fea6cb43b637d746ec9dc4ae8 [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
14#ifdef TEST_FRAMEWORK_S
Raef Coles5ee45ed2020-09-24 11:25:44 +010015#include "tfm_secure_client_service_api.h"
Kevin Peng62a87112020-07-07 15:07:46 +080016#endif
17
18#if defined(TEST_FRAMEWORK_NS) || defined(TEST_FRAMEWORK_S)
19/**
20 * \brief Services test thread
21 *
22 */
23__attribute__((noreturn))
24void test_app(void *argument)
25{
26 UNUSED_VARIABLE(argument);
27
28#ifdef TEST_FRAMEWORK_S
29 /* FIXME: The non-secure audit log test currently relies on the fact that
30 * the audit log secure test is run first. However the Non-secure tests
31 * represent simpler and more common test cases which would make more sense
32 * to be run first. Therefore if this dependency is removed the execution
33 * order of these test classes should be reversed. */
34 tfm_secure_client_run_tests();
35#endif
36#ifdef TEST_FRAMEWORK_NS
37 tfm_non_secure_client_run_tests();
38#endif
39 /* End of test */
40 for (;;) {
41 }
42}
43#endif /* TEST_FRAMEWORK_NS OR TEST_FRAMEWORK_S */