TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
platform_s_interface_testsuite.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #include "platform_s_tests.h"
9 #include "tfm_platform_api.h"
10 #include "platform_tests_common.h"
11 
12 static struct test_t platform_interface_tests[] = {
13  {&tfm_platform_test_common_001, "TFM_PLATFORM_TEST_1001",
14  "Minimal platform service test", {TEST_PASSED} },
15 };
16 
17 void
19 {
20  uint32_t list_size;
21 
22  list_size = (sizeof(platform_interface_tests) /
23  sizeof(platform_interface_tests[0]));
24 
25  set_testsuite("Platform Service Secure interface tests"
26  "(TFM_PLATFORM_TEST_1XXX)",
27  platform_interface_tests, list_size, p_test_suite);
28 }
void tfm_platform_test_common_001(struct test_result_t *ret)
Call the platform service with an invalid request.
enum test_suite_err_t set_testsuite(const char *name, struct test_t *test_list, uint32_t size, struct test_suite_t *p_ts)
Sets test suite parameters.
void register_testsuite_s_platform_interface(struct test_suite_t *p_test_suite)
Register testsuite for the platform service.