source: rtems/testsuites/libtests/termios01/termios01.scn @ 2e54cdc4

4.115
Last change on this file since 2e54cdc4 was 2e54cdc4, checked in by Joel Sherrill <joel.sherrill@…>, on 08/09/10 at 14:36:47

2010-08-09 Bharath Suri <bharath.s.jois@…>

PR 1661/testing

  • termios01/init.c, termios01/termios_testdriver.c, termios01/termios01.scn: Changes to improve coverage of rtems_termios_open routine.
  • 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) - OK
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
73
74Init - rtems_io_register_driver - Termios Test Driver - OK
75Termios_test_driver - rtems_io_register /dev/test - OK
76Init - Major slot returned = 2
77Init - open - /dev/test - OK
78Termios_test_driver - rtems_set_initial_baud - bad baud - OK
79Termios_test_driver - rtems_set_initial_baud - 38400 - OK
80tcsetattr - invalid operation - ENOTSUP
81
82tcsetattr - drain - OK
83set_attributes - B0 5-NONE-1
84Test termios setting device baud rate...
85tcsetattr(TCSANOW, B0) - OK
86set_attributes - B0 5-NONE-1
87tcsetattr(TCSADRAIN, B0) - OK
88set_attributes - B0 5-NONE-1
89tcsetattr(TCSANOW, B50) - OK
90set_attributes - B50 5-NONE-1
91tcsetattr(TCSADRAIN, B50) - OK
92set_attributes - B50 5-NONE-1
93tcsetattr(TCSANOW, B75) - OK
94set_attributes - B75 5-NONE-1
95tcsetattr(TCSADRAIN, B75) - OK
96set_attributes - B75 5-NONE-1
97tcsetattr(TCSANOW, B110) - OK
98set_attributes - B110 5-NONE-1
99tcsetattr(TCSADRAIN, B110) - OK
100set_attributes - B110 5-NONE-1
101tcsetattr(TCSANOW, B134) - OK
102set_attributes - B134 5-NONE-1
103tcsetattr(TCSADRAIN, B134) - OK
104set_attributes - B134 5-NONE-1
105tcsetattr(TCSANOW, B150) - OK
106set_attributes - B150 5-NONE-1
107tcsetattr(TCSADRAIN, B150) - OK
108set_attributes - B150 5-NONE-1
109tcsetattr(TCSANOW, B200) - OK
110set_attributes - B200 5-NONE-1
111tcsetattr(TCSADRAIN, B200) - OK
112set_attributes - B200 5-NONE-1
113tcsetattr(TCSANOW, B300) - OK
114set_attributes - B300 5-NONE-1
115tcsetattr(TCSADRAIN, B300) - OK
116set_attributes - B300 5-NONE-1
117tcsetattr(TCSANOW, B600) - OK
118set_attributes - B600 5-NONE-1
119tcsetattr(TCSADRAIN, B600) - OK
120set_attributes - B600 5-NONE-1
121tcsetattr(TCSANOW, B1200) - OK
122set_attributes - B1200 5-NONE-1
123tcsetattr(TCSADRAIN, B1200) - OK
124set_attributes - B1200 5-NONE-1
125tcsetattr(TCSANOW, B1800) - OK
126set_attributes - B1800 5-NONE-1
127tcsetattr(TCSADRAIN, B1800) - OK
128set_attributes - B1800 5-NONE-1
129tcsetattr(TCSANOW, B2400) - OK
130set_attributes - B2400 5-NONE-1
131tcsetattr(TCSADRAIN, B2400) - OK
132set_attributes - B2400 5-NONE-1
133tcsetattr(TCSANOW, B4800) - OK
134set_attributes - B4800 5-NONE-1
135tcsetattr(TCSADRAIN, B4800) - OK
136set_attributes - B4800 5-NONE-1
137tcsetattr(TCSANOW, B9600) - OK
138set_attributes - B9600 5-NONE-1
139tcsetattr(TCSADRAIN, B9600) - OK
140set_attributes - B9600 5-NONE-1
141tcsetattr(TCSANOW, B19200) - OK
142set_attributes - B19200 5-NONE-1
143tcsetattr(TCSADRAIN, B19200) - OK
144set_attributes - B19200 5-NONE-1
145tcsetattr(TCSANOW, B38400) - OK
146set_attributes - B38400 5-NONE-1
147tcsetattr(TCSADRAIN, B38400) - OK
148set_attributes - B38400 5-NONE-1
149tcsetattr(TCSANOW, B57600) - OK
150set_attributes - B57600 5-NONE-1
151tcsetattr(TCSADRAIN, B57600) - OK
152set_attributes - B57600 5-NONE-1
153tcsetattr(TCSANOW, B115200) - OK
154set_attributes - B115200 5-NONE-1
155tcsetattr(TCSADRAIN, B115200) - OK
156set_attributes - B115200 5-NONE-1
157tcsetattr(TCSANOW, B230400) - OK
158set_attributes - B230400 5-NONE-1
159tcsetattr(TCSADRAIN, B230400) - OK
160set_attributes - B230400 5-NONE-1
161tcsetattr(TCSANOW, B460800) - OK
162set_attributes - B460800 5-NONE-1
163tcsetattr(TCSADRAIN, B460800) - OK
164set_attributes - B460800 5-NONE-1
165Init - close - /dev/test - OK
166
167Init - open - /dev/test - OK
168Termios_test_driver - rtems_set_initial_baud - bad baud - OK
169Termios_test_driver - rtems_set_initial_baud - 38400 - OK
170
171Test termios setting device character size ...
172tcsetattr(TCSANOW, CS5) - OK
173set_attributes - B38400 5-NONE-1
174tcsetattr(TCSADRAIN, CS5) - OK
175set_attributes - B38400 5-NONE-1
176tcsetattr(TCSANOW, CS6) - OK
177set_attributes - B38400 6-NONE-1
178tcsetattr(TCSADRAIN, CS6) - OK
179set_attributes - B38400 6-NONE-1
180tcsetattr(TCSANOW, CS7) - OK
181set_attributes - B38400 7-NONE-1
182tcsetattr(TCSADRAIN, CS7) - OK
183set_attributes - B38400 7-NONE-1
184tcsetattr(TCSANOW, CS8) - OK
185set_attributes - B38400 8-NONE-1
186tcsetattr(TCSADRAIN, CS8) - OK
187set_attributes - B38400 8-NONE-1
188Init - close - /dev/test - OK
189
190Init - open - /dev/test - OK
191Termios_test_driver - rtems_set_initial_baud - bad baud - OK
192Termios_test_driver - rtems_set_initial_baud - 38400 - OK
193
194Test termios setting device parity ...
195tcsetattr(TCSANOW, none) - OK
196set_attributes - B38400 8-NONE-1
197tcsetattr(TCSADRAIN, none) - OK
198set_attributes - B38400 8-NONE-1
199tcsetattr(TCSANOW, even) - OK
200set_attributes - B38400 8-ODD-1
201tcsetattr(TCSADRAIN, even) - OK
202set_attributes - B38400 8-ODD-1
203tcsetattr(TCSANOW, odd) - OK
204set_attributes - B38400 8-EVEN-1
205tcsetattr(TCSADRAIN, odd) - OK
206set_attributes - B38400 8-EVEN-1
207Init - close - /dev/test - OK
208
209Init - open - /dev/test - OK
210Termios_test_driver - rtems_set_initial_baud - bad baud - OK
211Termios_test_driver - rtems_set_initial_baud - 38400 - OK
212
213Test termios setting device character size ...
214tcsetattr(TCSANOW, 1 bit) - OK
215set_attributes - B38400 8-NONE-1
216tcsetattr(TCSADRAIN, 1 bits) - OK
217set_attributes - B38400 8-NONE-1
218tcsetattr(TCSANOW, 2 bits) - OK
219set_attributes - B38400 8-NONE-2
220tcsetattr(TCSADRAIN, 2 bits) - OK
221set_attributes - B38400 8-NONE-2
222cfsetospeed(BAD BAUD) - EINVAL
223cfsetospeed(B0) - OK
224cfgetospeed(B0) - OK
225cfsetospeed(B50) - OK
226cfgetospeed(B50) - OK
227cfsetospeed(B75) - OK
228cfgetospeed(B75) - OK
229cfsetospeed(B110) - OK
230cfgetospeed(B110) - OK
231cfsetospeed(B134) - OK
232cfgetospeed(B134) - OK
233cfsetospeed(B150) - OK
234cfgetospeed(B150) - OK
235cfsetospeed(B200) - OK
236cfgetospeed(B200) - OK
237cfsetospeed(B300) - OK
238cfgetospeed(B300) - OK
239cfsetospeed(B600) - OK
240cfgetospeed(B600) - OK
241cfsetospeed(B1200) - OK
242cfgetospeed(B1200) - OK
243cfsetospeed(B1800) - OK
244cfgetospeed(B1800) - OK
245cfsetospeed(B2400) - OK
246cfgetospeed(B2400) - OK
247cfsetospeed(B4800) - OK
248cfgetospeed(B4800) - OK
249cfsetospeed(B9600) - OK
250cfgetospeed(B9600) - OK
251cfsetospeed(B19200) - OK
252cfgetospeed(B19200) - OK
253cfsetospeed(B38400) - OK
254cfgetospeed(B38400) - OK
255cfsetospeed(B57600) - OK
256cfgetospeed(B57600) - OK
257cfsetospeed(B115200) - OK
258cfgetospeed(B115200) - OK
259cfsetospeed(B230400) - OK
260cfgetospeed(B230400) - OK
261cfsetospeed(B460800) - OK
262cfgetospeed(B460800) - OK
263cfsetispeed(BAD BAUD) - EINVAL
264cfsetispeed(B0) - OK
265cfgetispeed(B0) - OK
266cfsetispeed(B50) - OK
267cfgetispeed(B50) - OK
268cfsetispeed(B75) - OK
269cfgetispeed(B75) - OK
270cfsetispeed(B110) - OK
271cfgetispeed(B110) - OK
272cfsetispeed(B134) - OK
273cfgetispeed(B134) - OK
274cfsetispeed(B150) - OK
275cfgetispeed(B150) - OK
276cfsetispeed(B200) - OK
277cfgetispeed(B200) - OK
278cfsetispeed(B300) - OK
279cfgetispeed(B300) - OK
280cfsetispeed(B600) - OK
281cfgetispeed(B600) - OK
282cfsetispeed(B1200) - OK
283cfgetispeed(B1200) - OK
284cfsetispeed(B1800) - OK
285cfgetispeed(B1800) - OK
286cfsetispeed(B2400) - OK
287cfgetispeed(B2400) - OK
288cfsetispeed(B4800) - OK
289cfgetispeed(B4800) - OK
290cfsetispeed(B9600) - OK
291cfgetispeed(B9600) - OK
292cfsetispeed(B19200) - OK
293cfgetispeed(B19200) - OK
294cfsetispeed(B38400) - OK
295cfgetispeed(B38400) - OK
296cfsetispeed(B57600) - OK
297cfgetispeed(B57600) - OK
298cfsetispeed(B115200) - OK
299cfgetispeed(B115200) - OK
300cfsetispeed(B230400) - OK
301cfgetispeed(B230400) - OK
302cfsetispeed(B460800) - OK
303cfgetispeed(B460800) - OK
304Init - close - /dev/test - OK
305*** END OF TEST TERMIOS 01 ***
Note: See TracBrowser for help on using the repository browser.