Mistake on this page?
Report an issue in GitHub or email us
server_tests.h
1 /* Copyright (c) 2017-2018 ARM Limited
2  *
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __UVISOR_MBED_SPM_SERVER_TESTS_H__
19 #define __UVISOR_MBED_SPM_SERVER_TESTS_H__
20 
21 typedef enum {
22  START_TEST = 1,
23  GET_TEST_RESULT = 2
24 } test_action_t;
25 
26 typedef struct factorial_data {
27  uint32_t count;
28  uint32_t val;
30 
31 typedef psa_status_t (*psa_test_server_side_func)(psa_status_t *);
32 #define PSA_TEST_ERROR (-1L)
33 #define PSA_TEST_CLIENT_NAME(name) psa_test_client_side_ ## name
34 #define PSA_TEST_SERVER_NAME(name) psa_test_server_side_ ## name
35 
36 #define PSA_TEST_CLIENT(name) void PSA_TEST_CLIENT_NAME(name) (void)
37 #define PSA_TEST_SERVER(name) psa_status_t PSA_TEST_SERVER_NAME(name) (psa_status_t *status_ptr)
38 
39 #define PSA_TEST(name) \
40  PSA_TEST_CLIENT(name); \
41  PSA_TEST_SERVER(name); \
42 
43 
44 PSA_TEST(identity_during_connect)
45 PSA_TEST(identity_during_call)
46 PSA_TEST(get_msg_twice)
47 PSA_TEST(msg_size_assertion)
48 PSA_TEST(reject_connection)
49 PSA_TEST(read_at_outofboud_offset)
50 PSA_TEST(msg_read_truncation)
51 PSA_TEST(skip_zero)
52 PSA_TEST(skip_some)
53 PSA_TEST(skip_more_than_left)
54 PSA_TEST(rhandle_factorial)
55 PSA_TEST(cross_partition_call)
56 PSA_TEST(doorbell_test)
57 #endif /* __UVISOR_MBED_SPM_SERVER_TESTS_H__ */
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.