source: rtems/testsuites/libtests/termios01/termios01.scn @ 3096f5c9

4.11
Last change on this file since 3096f5c9 was 3096f5c9, checked in by Daniel Ramirez <javamonn@…>, on Dec 6, 2013 at 10:13:27 PM

libtests/termios01: Add tests for cfsetspeed() and cfmakeraw()

  • Property mode set to 100644
File size: 13.6 KB
Line 
1*** TEST TERMIOS 01 ***
2Test termios_baud2index...
3termios_baud_to_index(-2) - NOT OK
4termios_baud_to_index(B0) - OK
5termios_baud_to_index(B50) - OK
6termios_baud_to_index(B75) - OK
7termios_baud_to_index(B110) - OK
8termios_baud_to_index(B134) - OK
9termios_baud_to_index(B150) - OK
10termios_baud_to_index(B200) - OK
11termios_baud_to_index(B300) - OK
12termios_baud_to_index(B600) - OK
13termios_baud_to_index(B1200) - OK
14termios_baud_to_index(B1800) - OK
15termios_baud_to_index(B2400) - OK
16termios_baud_to_index(B4800) - OK
17termios_baud_to_index(B9600) - OK
18termios_baud_to_index(B19200) - OK
19termios_baud_to_index(B38400) - OK
20termios_baud_to_index(B57600) - OK
21termios_baud_to_index(B115200) - OK
22termios_baud_to_index(B230400) - OK
23termios_baud_to_index(B460800) - OK
24
25Test termios_baud2number...
26termios_baud_to_number(-2) - NOT OK
27termios_baud_to_number(B0) - OK
28termios_baud_to_number(B50) - OK
29termios_baud_to_number(B75) - OK
30termios_baud_to_number(B110) - OK
31termios_baud_to_number(B134) - OK
32termios_baud_to_number(B150) - OK
33termios_baud_to_number(B200) - OK
34termios_baud_to_number(B300) - OK
35termios_baud_to_number(B600) - OK
36termios_baud_to_number(B1200) - OK
37termios_baud_to_number(B1800) - OK
38termios_baud_to_number(B2400) - OK
39termios_baud_to_number(B4800) - OK
40termios_baud_to_number(B9600) - OK
41termios_baud_to_number(B19200) - OK
42termios_baud_to_number(B38400) - OK
43termios_baud_to_number(B57600) - OK
44termios_baud_to_number(B115200) - OK
45termios_baud_to_number(B230400) - OK
46termios_baud_to_number(B460800) - OK
47
48Test termios_number_to_baud...
49termios_number_to_baud(-2) - NOT OK
50termios_number_to_baud(B0) - OK
51termios_number_to_baud(B50) - OK
52termios_number_to_baud(B75) - OK
53termios_number_to_baud(B110) - OK
54termios_number_to_baud(B134) - OK
55termios_number_to_baud(B150) - OK
56termios_number_to_baud(B200) - OK
57termios_number_to_baud(B300) - OK
58termios_number_to_baud(B600) - OK
59termios_number_to_baud(B1200) - OK
60termios_number_to_baud(B1800) - OK
61termios_number_to_baud(B2400) - OK
62termios_number_to_baud(B4800) - OK
63termios_number_to_baud(B9600) - OK
64termios_number_to_baud(B19200) - OK
65termios_number_to_baud(B38400) - OK
66termios_number_to_baud(B57600) - OK
67termios_number_to_baud(B115200) - OK
68termios_number_to_baud(B230400) - OK
69termios_number_to_baud(B460800) - OK
70
71Init - rtems_io_register_driver - Termios Test Driver - OK
72Termios_test_driver - rtems_io_register /dev/test - OK
73Init - Major slot returned = 2
74Init - open - /dev/test - OK
75Termios_test_driver - rtems_set_initial_baud - bad baud - OK
76Termios_test_driver - rtems_set_initial_baud - 38400 - OK
77tcsetattr - invalid operation - ENOTSUP
78cfmakeraw - OK
79
80tcsetattr - drain - OK
81set_attributes - B0 5-NONE-1
82Test termios setting device baud rate...
83tcsetattr(TCSANOW, B0) - OK
84set_attributes - B0 5-NONE-1
85tcsetattr(TCSADRAIN, B0) - OK
86set_attributes - B0 5-NONE-1
87tcsetattr(TCSANOW, B50) - OK
88set_attributes - B50 5-NONE-1
89tcsetattr(TCSADRAIN, B50) - OK
90set_attributes - B50 5-NONE-1
91tcsetattr(TCSANOW, B75) - OK
92set_attributes - B75 5-NONE-1
93tcsetattr(TCSADRAIN, B75) - OK
94set_attributes - B75 5-NONE-1
95tcsetattr(TCSANOW, B110) - OK
96set_attributes - B110 5-NONE-1
97tcsetattr(TCSADRAIN, B110) - OK
98set_attributes - B110 5-NONE-1
99tcsetattr(TCSANOW, B134) - OK
100set_attributes - B134 5-NONE-1
101tcsetattr(TCSADRAIN, B134) - OK
102set_attributes - B134 5-NONE-1
103tcsetattr(TCSANOW, B150) - OK
104set_attributes - B150 5-NONE-1
105tcsetattr(TCSADRAIN, B150) - OK
106set_attributes - B150 5-NONE-1
107tcsetattr(TCSANOW, B200) - OK
108set_attributes - B200 5-NONE-1
109tcsetattr(TCSADRAIN, B200) - OK
110set_attributes - B200 5-NONE-1
111tcsetattr(TCSANOW, B300) - OK
112set_attributes - B300 5-NONE-1
113tcsetattr(TCSADRAIN, B300) - OK
114set_attributes - B300 5-NONE-1
115tcsetattr(TCSANOW, B600) - OK
116set_attributes - B600 5-NONE-1
117tcsetattr(TCSADRAIN, B600) - OK
118set_attributes - B600 5-NONE-1
119tcsetattr(TCSANOW, B1200) - OK
120set_attributes - B1200 5-NONE-1
121tcsetattr(TCSADRAIN, B1200) - OK
122set_attributes - B1200 5-NONE-1
123tcsetattr(TCSANOW, B1800) - OK
124set_attributes - B1800 5-NONE-1
125tcsetattr(TCSADRAIN, B1800) - OK
126set_attributes - B1800 5-NONE-1
127tcsetattr(TCSANOW, B2400) - OK
128set_attributes - B2400 5-NONE-1
129tcsetattr(TCSADRAIN, B2400) - OK
130set_attributes - B2400 5-NONE-1
131tcsetattr(TCSANOW, B4800) - OK
132set_attributes - B4800 5-NONE-1
133tcsetattr(TCSADRAIN, B4800) - OK
134set_attributes - B4800 5-NONE-1
135tcsetattr(TCSANOW, B9600) - OK
136set_attributes - B9600 5-NONE-1
137tcsetattr(TCSADRAIN, B9600) - OK
138set_attributes - B9600 5-NONE-1
139tcsetattr(TCSANOW, B19200) - OK
140set_attributes - B19200 5-NONE-1
141tcsetattr(TCSADRAIN, B19200) - OK
142set_attributes - B19200 5-NONE-1
143tcsetattr(TCSANOW, B38400) - OK
144set_attributes - B38400 5-NONE-1
145tcsetattr(TCSADRAIN, B38400) - OK
146set_attributes - B38400 5-NONE-1
147tcsetattr(TCSANOW, B57600) - OK
148set_attributes - B57600 5-NONE-1
149tcsetattr(TCSADRAIN, B57600) - OK
150set_attributes - B57600 5-NONE-1
151tcsetattr(TCSANOW, B115200) - OK
152set_attributes - B115200 5-NONE-1
153tcsetattr(TCSADRAIN, B115200) - OK
154set_attributes - B115200 5-NONE-1
155tcsetattr(TCSANOW, B230400) - OK
156set_attributes - B230400 5-NONE-1
157tcsetattr(TCSADRAIN, B230400) - OK
158set_attributes - B230400 5-NONE-1
159tcsetattr(TCSANOW, B460800) - OK
160set_attributes - B460800 5-NONE-1
161tcsetattr(TCSADRAIN, B460800) - OK
162set_attributes - B460800 5-NONE-1
163Init - close - /dev/test - OK
164
165Init - open - /dev/test - OK
166Termios_test_driver - rtems_set_initial_baud - bad baud - OK
167Termios_test_driver - rtems_set_initial_baud - 38400 - OK
168
169Test termios setting device character size ...
170tcsetattr(TCSANOW, CS5) - OK
171set_attributes - B38400 5-NONE-1
172tcsetattr(TCSADRAIN, CS5) - OK
173set_attributes - B38400 5-NONE-1
174tcsetattr(TCSANOW, CS6) - OK
175set_attributes - B38400 6-NONE-1
176tcsetattr(TCSADRAIN, CS6) - OK
177set_attributes - B38400 6-NONE-1
178tcsetattr(TCSANOW, CS7) - OK
179set_attributes - B38400 7-NONE-1
180tcsetattr(TCSADRAIN, CS7) - OK
181set_attributes - B38400 7-NONE-1
182tcsetattr(TCSANOW, CS8) - OK
183set_attributes - B38400 8-NONE-1
184tcsetattr(TCSADRAIN, CS8) - OK
185set_attributes - B38400 8-NONE-1
186Init - close - /dev/test - OK
187
188Init - open - /dev/test - OK
189Termios_test_driver - rtems_set_initial_baud - bad baud - OK
190Termios_test_driver - rtems_set_initial_baud - 38400 - OK
191
192Test termios setting device parity ...
193tcsetattr(TCSANOW, none) - OK
194set_attributes - B38400 8-NONE-1
195tcsetattr(TCSADRAIN, none) - OK
196set_attributes - B38400 8-NONE-1
197tcsetattr(TCSANOW, even) - OK
198set_attributes - B38400 8-ODD-1
199tcsetattr(TCSADRAIN, even) - OK
200set_attributes - B38400 8-ODD-1
201tcsetattr(TCSANOW, odd) - OK
202set_attributes - B38400 8-EVEN-1
203tcsetattr(TCSADRAIN, odd) - OK
204set_attributes - B38400 8-EVEN-1
205Init - close - /dev/test - OK
206
207Init - open - /dev/test - OK
208Termios_test_driver - rtems_set_initial_baud - bad baud - OK
209Termios_test_driver - rtems_set_initial_baud - 38400 - OK
210
211Test termios setting device character size ...
212tcsetattr(TCSANOW, 1 bit) - OK
213set_attributes - B38400 8-NONE-1
214tcsetattr(TCSADRAIN, 1 bits) - OK
215set_attributes - B38400 8-NONE-1
216tcsetattr(TCSANOW, 2 bits) - OK
217set_attributes - B38400 8-NONE-2
218tcsetattr(TCSADRAIN, 2 bits) - OK
219set_attributes - B38400 8-NONE-2
220cfsetospeed(BAD BAUD) - EINVAL
221cfsetospeed(B0) - OK
222cfgetospeed(B0) - OK
223cfsetospeed(B50) - OK
224cfgetospeed(B50) - OK
225cfsetospeed(B75) - OK
226cfgetospeed(B75) - OK
227cfsetospeed(B110) - OK
228cfgetospeed(B110) - OK
229cfsetospeed(B134) - OK
230cfgetospeed(B134) - OK
231cfsetospeed(B150) - OK
232cfgetospeed(B150) - OK
233cfsetospeed(B200) - OK
234cfgetospeed(B200) - OK
235cfsetospeed(B300) - OK
236cfgetospeed(B300) - OK
237cfsetospeed(B600) - OK
238cfgetospeed(B600) - OK
239cfsetospeed(B1200) - OK
240cfgetospeed(B1200) - OK
241cfsetospeed(B1800) - OK
242cfgetospeed(B1800) - OK
243cfsetospeed(B2400) - OK
244cfgetospeed(B2400) - OK
245cfsetospeed(B4800) - OK
246cfgetospeed(B4800) - OK
247cfsetospeed(B9600) - OK
248cfgetospeed(B9600) - OK
249cfsetospeed(B19200) - OK
250cfgetospeed(B19200) - OK
251cfsetospeed(B38400) - OK
252cfgetospeed(B38400) - OK
253cfsetospeed(B57600) - OK
254cfgetospeed(B57600) - OK
255cfsetospeed(B115200) - OK
256cfgetospeed(B115200) - OK
257cfsetospeed(B230400) - OK
258cfgetospeed(B230400) - OK
259cfsetospeed(B460800) - OK
260cfgetospeed(B460800) - OK
261cfsetispeed(BAD BAUD) - EINVAL
262cfsetispeed(B0) - OK
263cfgetispeed(B0) - OK
264cfsetispeed(B50) - OK
265cfgetispeed(B50) - OK
266cfsetispeed(B75) - OK
267cfgetispeed(B75) - OK
268cfsetispeed(B110) - OK
269cfgetispeed(B110) - OK
270cfsetispeed(B134) - OK
271cfgetispeed(B134) - OK
272cfsetispeed(B150) - OK
273cfgetispeed(B150) - OK
274cfsetispeed(B200) - OK
275cfgetispeed(B200) - OK
276cfsetispeed(B300) - OK
277cfgetispeed(B300) - OK
278cfsetispeed(B600) - OK
279cfgetispeed(B600) - OK
280cfsetispeed(B1200) - OK
281cfgetispeed(B1200) - OK
282cfsetispeed(B1800) - OK
283cfgetispeed(B1800) - OK
284cfsetispeed(B2400) - OK
285cfgetispeed(B2400) - OK
286cfsetispeed(B4800) - OK
287cfgetispeed(B4800) - OK
288cfsetispeed(B9600) - OK
289cfgetispeed(B9600) - OK
290cfsetispeed(B19200) - OK
291cfgetispeed(B19200) - OK
292cfsetispeed(B38400) - OK
293cfgetispeed(B38400) - OK
294cfsetispeed(B57600) - OK
295cfgetispeed(B57600) - OK
296cfsetispeed(B115200) - OK
297cfgetispeed(B115200) - OK
298cfsetispeed(B230400) - OK
299cfgetispeed(B230400) - OK
300cfsetispeed(B460800) - OK
301cfgetispeed(B460800) - OK
302cfsetspeed(BAD BAUD) - EINVAL
303cfsetspeed(B0) - OK
304cfgetspeed(B0) - checking both inspeed and outspeed - OK
305cfsetspeed(B50) - OK
306cfgetspeed(B50) - checking both inspeed and outspeed - OK
307cfsetspeed(B75) - OK
308cfgetspeed(B75) - checking both inspeed and outspeed - OK
309cfsetspeed(B110) - OK
310cfgetspeed(B110) - checking both inspeed and outspeed - OK
311cfsetspeed(B134) - OK
312cfgetspeed(B134) - checking both inspeed and outspeed - OK
313cfsetspeed(B150) - OK
314cfgetspeed(B150) - checking both inspeed and outspeed - OK
315cfsetspeed(B200) - OK
316cfgetspeed(B200) - checking both inspeed and outspeed - OK
317cfsetspeed(B300) - OK
318cfgetspeed(B300) - checking both inspeed and outspeed - OK
319cfsetspeed(B600) - OK
320cfgetspeed(B600) - checking both inspeed and outspeed - OK
321cfsetspeed(B1200) - OK
322cfgetspeed(B1200) - checking both inspeed and outspeed - OK
323cfsetspeed(B1800) - OK
324cfgetspeed(B1800) - checking both inspeed and outspeed - OK
325cfsetspeed(B2400) - OK
326cfgetspeed(B2400) - checking both inspeed and outspeed - OK
327cfsetspeed(B4800) - OK
328cfgetspeed(B4800) - checking both inspeed and outspeed - OK
329cfsetspeed(B9600) - OK
330cfgetspeed(B9600) - checking both inspeed and outspeed - OK
331cfsetspeed(B19200) - OK
332cfgetspeed(B19200) - checking both inspeed and outspeed - OK
333cfsetspeed(B38400) - OK
334cfgetspeed(B38400) - checking both inspeed and outspeed - OK
335cfsetspeed(B57600) - OK
336cfgetspeed(B57600) - checking both inspeed and outspeed - OK
337cfsetspeed(B115200) - OK
338cfgetspeed(B115200) - checking both inspeed and outspeed - OK
339cfsetspeed(B230400) - OK
340cfgetspeed(B230400) - checking both inspeed and outspeed - OK
341cfsetspeed(B460800) - OK
342cfgetspeed(B460800) - checking both inspeed and outspeed - OK
343Init - close - /dev/test - OK
344Multiple open of the device
345Termios_test_driver - rtems_set_initial_baud - bad baud - OK
346Termios_test_driver - rtems_set_initial_baud - 38400 - OK
347Termios_test_driver - rtems_set_initial_baud - bad baud - OK
348Termios_test_driver - rtems_set_initial_baud - 38400 - OK
349Termios_test_driver - rtems_set_initial_baud - bad baud - OK
350Termios_test_driver - rtems_set_initial_baud - 38400 - OK
351Termios_test_driver - rtems_set_initial_baud - bad baud - OK
352Termios_test_driver - rtems_set_initial_baud - 38400 - OK
353Termios_test_driver - rtems_set_initial_baud - bad baud - OK
354Termios_test_driver - rtems_set_initial_baud - 38400 - OK
355Termios_test_driver - rtems_set_initial_baud - bad baud - OK
356Termios_test_driver - rtems_set_initial_baud - 38400 - OK
357Termios_test_driver - rtems_set_initial_baud - bad baud - OK
358Termios_test_driver - rtems_set_initial_baud - 38400 - OK
359Termios_test_driver - rtems_set_initial_baud - bad baud - OK
360Termios_test_driver - rtems_set_initial_baud - 38400 - OK
361Termios_test_driver - rtems_set_initial_baud - bad baud - OK
362Termios_test_driver - rtems_set_initial_baud - 38400 - OK
363Termios_test_driver - rtems_set_initial_baud - bad baud - OK
364Termios_test_driver - rtems_set_initial_baud - 38400 - OK
365Termios_test_driver - rtems_set_initial_baud - bad baud - OK
366Termios_test_driver - rtems_set_initial_baud - 38400 - OK
367Termios_test_driver - rtems_set_initial_baud - bad baud - OK
368Termios_test_driver - rtems_set_initial_baud - 38400 - OK
369Termios_test_driver - rtems_set_initial_baud - bad baud - OK
370Termios_test_driver - rtems_set_initial_baud - 38400 - OK
371Termios_test_driver - rtems_set_initial_baud - bad baud - OK
372Termios_test_driver - rtems_set_initial_baud - 38400 - OK
373Termios_test_driver - rtems_set_initial_baud - bad baud - OK
374Termios_test_driver - rtems_set_initial_baud - 38400 - OK
375Termios_test_driver - rtems_set_initial_baud - bad baud - OK
376Termios_test_driver - rtems_set_initial_baud - 38400 - OK
377Termios_test_driver - rtems_set_initial_baud - bad baud - OK
378Termios_test_driver - rtems_set_initial_baud - 38400 - OK
379Termios_test_driver - rtems_set_initial_baud - bad baud - OK
380Termios_test_driver - rtems_set_initial_baud - 38400 - OK
381Termios_test_driver - rtems_set_initial_baud - bad baud - OK
382Termios_test_driver - rtems_set_initial_baud - 38400 - OK
383Termios_test_driver - rtems_set_initial_baud - bad baud - OK
384Termios_test_driver - rtems_set_initial_baud - 38400 - OK
385Termios_test_driver - rtems_set_initial_baud - bad baud - OK
386Termios_test_driver - rtems_set_initial_baud - 38400 - OK
387Termios_test_driver - rtems_set_initial_baud - bad baud - OK
388Termios_test_driver - rtems_set_initial_baud - 38400 - OK
389Termios_test_driver - rtems_set_initial_baud - bad baud - OK
390Termios_test_driver - rtems_set_initial_baud - 38400 - OK
391Termios_test_driver - rtems_set_initial_baud - bad baud - OK
392Termios_test_driver - rtems_set_initial_baud - 38400 - OK
393Termios_test_driver - rtems_set_initial_baud - bad baud - OK
394Termios_test_driver - rtems_set_initial_baud - 38400 - OK
395Termios_test_driver - rtems_set_initial_baud - bad baud - OK
396Termios_test_driver - rtems_set_initial_baud - 38400 - OK
397
398*** END OF TEST TERMIOS 01 ***
Note: See TracBrowser for help on using the repository browser.