1 | *** TEST TERMIOS 01 *** |
---|
2 | Test termios_baud2index... |
---|
3 | termios_baud_to_index(-2) - NOT OK |
---|
4 | termios_baud_to_index(572) - NOT OK |
---|
5 | termios_baud_to_index(B0) - OK |
---|
6 | termios_baud_to_index(B50) - OK |
---|
7 | termios_baud_to_index(B75) - OK |
---|
8 | termios_baud_to_index(B110) - OK |
---|
9 | termios_baud_to_index(B134) - OK |
---|
10 | termios_baud_to_index(B150) - OK |
---|
11 | termios_baud_to_index(B200) - OK |
---|
12 | termios_baud_to_index(B300) - OK |
---|
13 | termios_baud_to_index(B600) - OK |
---|
14 | termios_baud_to_index(B1200) - OK |
---|
15 | termios_baud_to_index(B1800) - OK |
---|
16 | termios_baud_to_index(B2400) - OK |
---|
17 | termios_baud_to_index(B4800) - OK |
---|
18 | termios_baud_to_index(B9600) - OK |
---|
19 | termios_baud_to_index(B19200) - OK |
---|
20 | termios_baud_to_index(B38400) - OK |
---|
21 | termios_baud_to_index(B57600) - OK |
---|
22 | termios_baud_to_index(B115200) - OK |
---|
23 | termios_baud_to_index(B230400) - OK |
---|
24 | termios_baud_to_index(B460800) - OK |
---|
25 | |
---|
26 | Test termios_baud2number... |
---|
27 | termios_baud_to_number(-2) - NOT OK |
---|
28 | termios_baud_to_number(572) - NOT OK |
---|
29 | termios_baud_to_number(B0) - OK |
---|
30 | termios_baud_to_number(B50) - OK |
---|
31 | termios_baud_to_number(B75) - OK |
---|
32 | termios_baud_to_number(B110) - OK |
---|
33 | termios_baud_to_number(B134) - OK |
---|
34 | termios_baud_to_number(B150) - OK |
---|
35 | termios_baud_to_number(B200) - O |
---|
36 | termios_baud_to_number(B300) - OK |
---|
37 | termios_baud_to_number(B600) - OK |
---|
38 | termios_baud_to_number(B1200) - OK |
---|
39 | termios_baud_to_number(B1800) - OK |
---|
40 | termios_baud_to_number(B2400) - OK |
---|
41 | termios_baud_to_number(B4800) - OK |
---|
42 | termios_baud_to_number(B9600) - OK |
---|
43 | termios_baud_to_number(B19200) - OK |
---|
44 | termios_baud_to_number(B38400) - OK |
---|
45 | termios_baud_to_number(B57600) - OK |
---|
46 | termios_baud_to_number(B115200) - OK |
---|
47 | termios_baud_to_number(B230400) - OK |
---|
48 | termios_baud_to_number(B460800) - OK |
---|
49 | |
---|
50 | Test termios_number_to_baud... |
---|
51 | termios_number_to_baud(-2) - NOT OK |
---|
52 | termios_number_to_baud(572) - NOT OK |
---|
53 | termios_number_to_baud(B0) - OK |
---|
54 | termios_number_to_baud(B50) - OK |
---|
55 | termios_number_to_baud(B75) - OK |
---|
56 | termios_number_to_baud(B110) - OK |
---|
57 | termios_number_to_baud(B134) - OK |
---|
58 | termios_number_to_baud(B150) - OK |
---|
59 | termios_number_to_baud(B200) - OK |
---|
60 | termios_number_to_baud(B300) - OK |
---|
61 | termios_number_to_baud(B600) - OK |
---|
62 | termios_number_to_baud(B1200) - OK |
---|
63 | termios_number_to_baud(B1800) - OK |
---|
64 | termios_number_to_baud(B2400) - OK |
---|
65 | termios_number_to_baud(B4800) - OK |
---|
66 | termios_number_to_baud(B9600) - OK |
---|
67 | termios_number_to_baud(B19200) - OK |
---|
68 | termios_number_to_baud(B38400) - OK |
---|
69 | termios_number_to_baud(B57600) - OK |
---|
70 | termios_number_to_baud(B115200) - OK |
---|
71 | termios_number_to_baud(B230400) - OK |
---|
72 | termios_number_to_baud(B460800) - OK |
---|
73 | tcsetattr - invalid operation - ENOTSUP |
---|
74 | |
---|
75 | tcsetattr - drain - OK
|
---|
76 | |
---|
77 | Init - rtems_io_register_driver - Termios Test Driver - OK |
---|
78 | Termios_test_driver - rtems_io_register /dev/test - OK |
---|
79 | Init - Major slot returned = 2 |
---|
80 | Init - open - /dev/test - OK |
---|
81 | Termios_test_driver - rtems_set_initial_baud - bad baud - OK |
---|
82 | Termios_test_driver - rtems_set_initial_baud - 38400 - OK |
---|
83 | Test termios setting device baud rate... |
---|
84 | tcsetattr(TCSANOW, B0) - OK |
---|
85 | set_attributes - B0 8-NONE-1 |
---|
86 | tcsetattr(TCSADRAIN, B0) - OK |
---|
87 | set_attributes - B0 8-NONE-1 |
---|
88 | tcsetattr(TCSANOW, B50) - OK |
---|
89 | set_attributes - B50 8-NONE-1 |
---|
90 | tcsetattr(TCSADRAIN, B50) - OK |
---|
91 | set_attributes - B50 8-NONE-1 |
---|
92 | tcsetattr(TCSANOW, B75) - OK |
---|
93 | set_attributes - B75 8-NONE-1 |
---|
94 | tcsetattr(TCSADRAIN, B75) - OK |
---|
95 | set_attributes - B75 8-NONE-1 |
---|
96 | tcsetattr(TCSANOW, B110) - OK |
---|
97 | set_attributes - B110 8-NONE-1 |
---|
98 | tcsetattr(TCSADRAIN, B110) - OK |
---|
99 | set_attributes - B110 8-NONE-1 |
---|
100 | tcsetattr(TCSANOW, B134) - OK |
---|
101 | set_attributes - B134 8-NONE-1 |
---|
102 | tcsetattr(TCSADRAIN, B134) - OK |
---|
103 | set_attributes - B134 8-NONE-1 |
---|
104 | tcsetattr(TCSANOW, B150) - OK |
---|
105 | set_attributes - B150 8-NONE-1 |
---|
106 | tcsetattr(TCSADRAIN, B150) - OK |
---|
107 | set_attributes - B150 8-NONE-1 |
---|
108 | tcsetattr(TCSANOW, B200) - OK |
---|
109 | set_attributes - B200 8-NONE-1 |
---|
110 | tcsetattr(TCSADRAIN, B200) - OK |
---|
111 | set_attributes - B200 8-NONE-1 |
---|
112 | tcsetattr(TCSANOW, B300) - OK |
---|
113 | set_attributes - B300 8-NONE-1 |
---|
114 | tcsetattr(TCSADRAIN, B300) - OK |
---|
115 | set_attributes - B300 8-NONE-1 |
---|
116 | tcsetattr(TCSANOW, B600) - OK |
---|
117 | set_attributes - B600 8-NONE-1 |
---|
118 | tcsetattr(TCSADRAIN, B600) - OK |
---|
119 | set_attributes - B600 8-NONE-1 |
---|
120 | tcsetattr(TCSANOW, B1200) - OK |
---|
121 | set_attributes - B1200 8-NONE-1 |
---|
122 | tcsetattr(TCSADRAIN, B1200) - OK |
---|
123 | set_attributes - B1200 8-NONE-1 |
---|
124 | tcsetattr(TCSANOW, B1800) - OK |
---|
125 | set_attributes - B1800 8-NONE-1 |
---|
126 | tcsetattr(TCSADRAIN, B1800) - OK |
---|
127 | set_attributes - B1800 8-NONE-1 |
---|
128 | tcsetattr(TCSANOW, B2400) - OK |
---|
129 | set_attributes - B2400 8-NONE-1 |
---|
130 | tcsetattr(TCSADRAIN, B2400) - OK |
---|
131 | set_attributes - B2400 8-NONE-1 |
---|
132 | tcsetattr(TCSANOW, B4800) - OK |
---|
133 | set_attributes - B4800 8-NONE-1 |
---|
134 | tcsetattr(TCSADRAIN, B4800) - OK |
---|
135 | set_attributes - B4800 8-NONE-1 |
---|
136 | tcsetattr(TCSANOW, B9600) - OK |
---|
137 | set_attributes - B9600 8-NONE-1 |
---|
138 | tcsetattr(TCSADRAIN, B9600) - OK |
---|
139 | set_attributes - B9600 8-NONE-1 |
---|
140 | tcsetattr(TCSANOW, B19200) - OK |
---|
141 | set_attributes - B19200 8-NONE-1 |
---|
142 | tcsetattr(TCSADRAIN, B19200) - OK |
---|
143 | set_attributes - B19200 8-NONE-1 |
---|
144 | tcsetattr(TCSANOW, B38400) - OK |
---|
145 | set_attributes - B38400 8-NONE-1 |
---|
146 | tcsetattr(TCSADRAIN, B38400) - OK |
---|
147 | set_attributes - B38400 8-NONE-1 |
---|
148 | tcsetattr(TCSANOW, B57600) - OK |
---|
149 | set_attributes - B57600 8-NONE-1 |
---|
150 | tcsetattr(TCSADRAIN, B57600) - OK |
---|
151 | set_attributes - B57600 8-NONE-1 |
---|
152 | tcsetattr(TCSANOW, B115200) - OK |
---|
153 | set_attributes - B115200 8-NONE-1 |
---|
154 | tcsetattr(TCSADRAIN, B115200) - OK |
---|
155 | set_attributes - B115200 8-NONE-1 |
---|
156 | tcsetattr(TCSANOW, B230400) - OK |
---|
157 | set_attributes - B230400 8-NONE-1 |
---|
158 | tcsetattr(TCSADRAIN, B230400) - OK |
---|
159 | set_attributes - B230400 8-NONE-1 |
---|
160 | tcsetattr(TCSANOW, B460800) - OK |
---|
161 | set_attributes - B460800 8-NONE-1 |
---|
162 | tcsetattr(TCSADRAIN, B460800) - OK |
---|
163 | set_attributes - B460800 8-NONE-1 |
---|
164 | Init - close - /dev/test - OK |
---|
165 | |
---|
166 | Init - open - /dev/test - OK |
---|
167 | Termios_test_driver - rtems_set_initial_baud - bad baud - OK |
---|
168 | Termios_test_driver - rtems_set_initial_baud - 38400 - OK |
---|
169 | |
---|
170 | Test termios setting device character size ... |
---|
171 | tcsetattr(TCSANOW, CS5) - OK |
---|
172 | set_attributes - B38400 5-NONE-1 |
---|
173 | tcsetattr(TCSADRAIN, CS5) - OK |
---|
174 | set_attributes - B38400 5-NONE-1 |
---|
175 | tcsetattr(TCSANOW, CS6) - OK |
---|
176 | set_attributes - B38400 6-NONE-1 |
---|
177 | tcsetattr(TCSADRAIN, CS6) - OK |
---|
178 | set_attributes - B38400 6-NONE-1 |
---|
179 | tcsetattr(TCSANOW, CS7) - OK |
---|
180 | set_attributes - B38400 7-NONE-1 |
---|
181 | tcsetattr(TCSADRAIN, CS7) - OK |
---|
182 | set_attributes - B38400 7-NONE-1 |
---|
183 | tcsetattr(TCSANOW, CS8) - OK |
---|
184 | set_attributes - B38400 8-NONE-1 |
---|
185 | tcsetattr(TCSADRAIN, CS8) - OK |
---|
186 | set_attributes - B38400 8-NONE-1 |
---|
187 | Init - close - /dev/test - OK |
---|
188 | |
---|
189 | Init - open - /dev/test - OK |
---|
190 | Termios_test_driver - rtems_set_initial_baud - bad baud - OK |
---|
191 | Termios_test_driver - rtems_set_initial_baud - 38400 - OK |
---|
192 | |
---|
193 | Test termios setting device parity ... |
---|
194 | tcsetattr(TCSANOW, none) - OK |
---|
195 | set_attributes - B38400 8-NONE-1 |
---|
196 | tcsetattr(TCSADRAIN, none) - OK |
---|
197 | set_attributes - B38400 8-NONE-1 |
---|
198 | tcsetattr(TCSANOW, even) - OK |
---|
199 | set_attributes - B38400 8-ODD-1 |
---|
200 | tcsetattr(TCSADRAIN, even) - OK |
---|
201 | set_attributes - B38400 8-ODD-1 |
---|
202 | tcsetattr(TCSANOW, odd) - OK |
---|
203 | set_attributes - B38400 8-EVEN-1 |
---|
204 | tcsetattr(TCSADRAIN, odd) - OK |
---|
205 | set_attributes - B38400 8-EVEN-1 |
---|
206 | Init - close - /dev/test - OK |
---|
207 | |
---|
208 | Init - open - /dev/test - OK |
---|
209 | Termios_test_driver - rtems_set_initial_baud - bad baud - OK |
---|
210 | Termios_test_driver - rtems_set_initial_baud - 38400 - OK |
---|
211 | |
---|
212 | Test termios setting device character size ... |
---|
213 | tcsetattr(TCSANOW, 1 bit) - OK |
---|
214 | set_attributes - B38400 8-NONE-1 |
---|
215 | tcsetattr(TCSADRAIN, 1 bits) - OK |
---|
216 | set_attributes - B38400 8-NONE-1 |
---|
217 | tcsetattr(TCSANOW, 2 bits) - OK |
---|
218 | set_attributes - B38400 8-NONE-2 |
---|
219 | tcsetattr(TCSADRAIN, 2 bits) - OK |
---|
220 | set_attributes - B38400 8-NONE-2 |
---|
221 | cfsetospeed(BAD BAUD) - EINVAL |
---|
222 | cfsetospeed(B0) - OK |
---|
223 | cfgetospeed(B0) - OK |
---|
224 | cfsetospeed(B50) - OK |
---|
225 | cfgetospeed(B50) - OK |
---|
226 | cfsetospeed(B75) - OK |
---|
227 | cfgetospeed(B75) - OK |
---|
228 | cfsetospeed(B110) - OK |
---|
229 | cfgetospeed(B110) - OK |
---|
230 | cfsetospeed(B134) - OK |
---|
231 | cfgetospeed(B134) - OK |
---|
232 | cfsetospeed(B150) - OK |
---|
233 | cfgetospeed(B150) - OK |
---|
234 | cfsetospeed(B200) - OK |
---|
235 | cfgetospeed(B200) - OK |
---|
236 | cfsetospeed(B300) - OK |
---|
237 | cfgetospeed(B300) - OK |
---|
238 | cfsetospeed(B600) - OK |
---|
239 | cfgetospeed(B600) - OK |
---|
240 | cfsetospeed(B1200) - OK |
---|
241 | cfgetospeed(B1200) - OK |
---|
242 | cfsetospeed(B1800) - OK |
---|
243 | cfgetospeed(B1800) - OK |
---|
244 | cfsetospeed(B2400) - OK |
---|
245 | cfgetospeed(B2400) - OK |
---|
246 | cfsetospeed(B4800) - OK |
---|
247 | cfgetospeed(B4800) - OK |
---|
248 | cfsetospeed(B9600) - OK |
---|
249 | cfgetospeed(B9600) - OK |
---|
250 | cfsetospeed(B19200) - OK |
---|
251 | cfgetospeed(B19200) - OK |
---|
252 | cfsetospeed(B38400) - OK |
---|
253 | cfgetospeed(B38400) - OK |
---|
254 | cfsetospeed(B57600) - OK |
---|
255 | cfgetospeed(B57600) - OK |
---|
256 | cfsetospeed(B115200) - OK |
---|
257 | cfgetospeed(B115200) - OK |
---|
258 | cfsetospeed(B230400) - OK |
---|
259 | cfgetospeed(B230400) - OK |
---|
260 | cfsetospeed(B460800) - OK |
---|
261 | cfgetospeed(B460800) - OK |
---|
262 | cfsetispeed(BAD BAUD) - EINVAL |
---|
263 | cfsetispeed(B0) - OK |
---|
264 | cfgetispeed(B0) - OK |
---|
265 | cfsetispeed(B50) - OK |
---|
266 | cfgetispeed(B50) - OK |
---|
267 | cfsetispeed(B75) - OK |
---|
268 | cfgetispeed(B75) - OK |
---|
269 | cfsetispeed(B110) - OK |
---|
270 | cfgetispeed(B110) - OK |
---|
271 | cfsetispeed(B134) - OK |
---|
272 | cfgetispeed(B134) - OK |
---|
273 | cfsetispeed(B150) - OK |
---|
274 | cfgetispeed(B150) - OK |
---|
275 | cfsetispeed(B200) - OK |
---|
276 | cfgetispeed(B200) - OK |
---|
277 | cfsetispeed(B300) - OK |
---|
278 | cfgetispeed(B300) - OK |
---|
279 | cfsetispeed(B600) - OK |
---|
280 | cfgetispeed(B600) - OK |
---|
281 | cfsetispeed(B1200) - OK |
---|
282 | cfgetispeed(B1200) - OK |
---|
283 | cfsetispeed(B1800) - OK |
---|
284 | cfgetispeed(B1800) - OK |
---|
285 | cfsetispeed(B2400) - OK |
---|
286 | cfgetispeed(B2400) - OK |
---|
287 | cfsetispeed(B4800) - OK |
---|
288 | cfgetispeed(B4800) - OK |
---|
289 | cfsetispeed(B9600) - OK |
---|
290 | cfgetispeed(B9600) - OK |
---|
291 | cfsetispeed(B19200) - OK |
---|
292 | cfgetispeed(B19200) - OK |
---|
293 | cfsetispeed(B38400) - OK |
---|
294 | cfgetispeed(B38400) - OK |
---|
295 | cfsetispeed(B57600) - OK |
---|
296 | cfgetispeed(B57600) - OK |
---|
297 | cfsetispeed(B115200) - OK |
---|
298 | cfgetispeed(B115200) - OK |
---|
299 | cfsetispeed(B230400) - OK |
---|
300 | cfgetispeed(B230400) - OK |
---|
301 | cfsetispeed(B460800) - OK |
---|
302 | cfgetispeed(B460800) - OK |
---|
303 | Init - close - /dev/test - OK |
---|
304 | *** END OF TEST TERMIOS 01 *** |
---|