source: rtems/testsuites/libtests/termios01/termios01.scn @ 8cd0bb0f

4.115
Last change on this file since 8cd0bb0f was 8cd0bb0f, checked in by Joel Sherrill <joel.sherrill@…>, on 07/14/10 at 15:59:37

2010-07-14 Joel Sherrill <joel.sherrill@…>

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