source: rtems/testsuites/libtests/termios01/termios01.scn @ 24a5a14

4.115
Last change on this file since 24a5a14 was 24a5a14, checked in by Joel Sherrill <joel.sherrill@…>, on 06/23/10 at 23:25:45

2010-06-23 Joel Sherrill <joel.sherrilL@…>

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