1 /*
2 * Copyright (c) 2020 PHYTEC Messtechnik GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include "test_modbus.h"
8
ZTEST(modbus,test_setup_low_none)9 ZTEST(modbus, test_setup_low_none)
10 {
11 test_server_setup_low_none();
12 test_client_setup_low_none();
13 test_coil_wr_rd();
14 test_di_rd();
15 test_input_reg();
16 test_holding_reg();
17 test_diagnostic();
18 test_client_disable();
19 test_server_disable();
20 }
21
ZTEST(modbus,test_setup_low_odd)22 ZTEST(modbus, test_setup_low_odd)
23 {
24 test_server_setup_low_odd();
25 test_client_setup_low_odd();
26 test_coil_wr_rd();
27 test_di_rd();
28 test_input_reg();
29 test_holding_reg();
30 test_diagnostic();
31 test_client_disable();
32 test_server_disable();
33 }
34
ZTEST(modbus,test_setup_high_even)35 ZTEST(modbus, test_setup_high_even)
36 {
37 test_server_setup_high_even();
38 test_client_setup_high_even();
39 test_coil_wr_rd();
40 test_di_rd();
41 test_input_reg();
42 test_holding_reg();
43 test_diagnostic();
44 test_client_disable();
45 test_server_disable();
46 }
47
ZTEST(modbus,test_setup_ascii)48 ZTEST(modbus, test_setup_ascii)
49 {
50 test_server_setup_ascii();
51 test_client_setup_ascii();
52 test_coil_wr_rd();
53 test_di_rd();
54 test_input_reg();
55 test_holding_reg();
56 test_diagnostic();
57 test_client_disable();
58 test_server_disable();
59 }
60
ZTEST(modbus,test_setup_raw)61 ZTEST(modbus, test_setup_raw)
62 {
63 test_server_setup_raw();
64 test_client_setup_raw();
65 test_coil_wr_rd();
66 test_di_rd();
67 test_input_reg();
68 test_holding_reg();
69 test_diagnostic();
70 test_client_disable();
71 test_server_disable();
72 }
73
74 ZTEST_SUITE(modbus, NULL, NULL, NULL, NULL, NULL);
75