forked from Imagelibrary/rtems
2011-01-28 Bharath Suri <bharath.s.jois@gmail.com>
PR 1661/testing * termios06/init.c: Extend the test to cover sections related to flow control in termios.c * termios06/termios06.doc: Updated test concept * termios06/termios06.scn: Updated test run log
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2011-01-28 Bharath Suri <bharath.s.jois@gmail.com>
|
||||||
|
|
||||||
|
PR 1661/testing
|
||||||
|
* termios06/init.c: Extend the test to cover sections related to
|
||||||
|
flow control in termios.c
|
||||||
|
* termios06/termios06.doc: Updated test concept
|
||||||
|
* termios06/termios06.scn: Updated test run log
|
||||||
|
|
||||||
2011-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* math/domath.in: Fix typo in printf.
|
* math/domath.in: Fix typo in printf.
|
||||||
|
|||||||
@@ -89,10 +89,35 @@ void set_discipline(void)
|
|||||||
void ioctl_it(void)
|
void ioctl_it(void)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
struct termios t;
|
||||||
|
|
||||||
puts( "ioctl(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
|
puts( "ioctl(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
|
||||||
rc = ioctl( Test_fd, 0xFFFF, NULL );
|
rc = ioctl( Test_fd, 0xFFFF, NULL );
|
||||||
rtems_test_assert( rc == 0 );
|
rtems_test_assert( rc == 0 );
|
||||||
|
|
||||||
|
puts( "tcgetattr(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
|
||||||
|
rc = tcgetattr( Test_fd, &t );
|
||||||
|
rtems_test_assert( rc == 0 );
|
||||||
|
|
||||||
|
puts( "Turn on flow control on output - OK" );
|
||||||
|
t.c_iflag |= IXON;
|
||||||
|
rc = tcsetattr( Test_fd, TCSANOW, &t );
|
||||||
|
rtems_test_assert( rc == 0 );
|
||||||
|
|
||||||
|
puts( "Turn off flow control on output - OK" );
|
||||||
|
t.c_iflag &= ~IXON;
|
||||||
|
rc = tcsetattr( Test_fd, TCSANOW, &t );
|
||||||
|
rtems_test_assert( rc == 0 );
|
||||||
|
|
||||||
|
puts( "Turn on flow control on input - OK" );
|
||||||
|
t.c_iflag |= IXOFF;
|
||||||
|
rc = tcsetattr( Test_fd, TCSANOW, &t );
|
||||||
|
rtems_test_assert( rc == 0 );
|
||||||
|
|
||||||
|
puts( "Turn off flow control on input - OK" );
|
||||||
|
t.c_iflag &= ~IXOFF;
|
||||||
|
rc = tcsetattr( Test_fd, TCSANOW, &t );
|
||||||
|
rtems_test_assert( rc == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void close_it(void)
|
void close_it(void)
|
||||||
|
|||||||
@@ -20,3 +20,4 @@ directives:
|
|||||||
concepts:
|
concepts:
|
||||||
|
|
||||||
+ Exercise PPPDISC functionality in termios
|
+ Exercise PPPDISC functionality in termios
|
||||||
|
+ Tests to cover flow control settings for termios
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
*** TEST TERMIOS06 ***
|
*** TEST TERMIOS06 ***
|
||||||
open(/dev/test) - OK
|
open(/dev/test) - OK
|
||||||
|
ioctl - RTEMS_IO_SNDWAKEUP - OK
|
||||||
|
ioctl - RTEMS_IO_RCVWAKEUP - OK
|
||||||
ioctl - TIOCGETD - OK
|
ioctl - TIOCGETD - OK
|
||||||
ioctl - TIOCSETD - OK
|
ioctl - TIOCSETD - OK
|
||||||
pppopen called
|
pppopen called
|
||||||
@@ -9,13 +13,21 @@ pppopen called
|
|||||||
write(PPPD TEST) - OK
|
write(PPPD TEST) - OK
|
||||||
pppwrite called - 10 bytes
|
pppwrite called - 10 bytes
|
||||||
50 50 50 44 20 54 45 53 54 00 |PPPD TEST. |
|
50 50 50 44 20 54 45 53 54 00 |PPPD TEST. |
|
||||||
|
|
||||||
pppstart called
|
pppstart called
|
||||||
ioctl(/dev/test) - OK
|
ioctl(/dev/test) - OK
|
||||||
pppioctl called
|
pppioctl called
|
||||||
|
tcgetattr(/dev/test) - OK
|
||||||
|
Turn on flow control on output - OK
|
||||||
|
Turn off flow control on output - OK
|
||||||
|
Turn on flow control on input - OK
|
||||||
|
Turn off flow control on input - OK
|
||||||
|
|
||||||
Reading (expected):
|
Reading (expected):
|
||||||
54 68 69 73 20 69 73 20 74 65 73 74 20 50 50 50 |This is test PPP|
|
54 68 69 73 20 69 73 20 74 65 73 74 20 50 50 50 |This is test PPP|
|
||||||
|
|
||||||
20 69 6e 70 75 74 | input |
|
20 69 6e 70 75 74 | input |
|
||||||
|
|
||||||
pppread called
|
pppread called
|
||||||
pppinput called - with (T)
|
pppinput called - with (T)
|
||||||
pppinput called - with (h)
|
pppinput called - with (h)
|
||||||
@@ -40,6 +52,8 @@ pppinput called - with (p)
|
|||||||
pppinput called - with (u)
|
pppinput called - with (u)
|
||||||
pppinput called - with (t)
|
pppinput called - with (t)
|
||||||
pppinput called - with (.)
|
pppinput called - with (.)
|
||||||
|
Rx_Wake - invoked
|
||||||
|
|
||||||
Read 0 bytes from read(2)
|
Read 0 bytes from read(2)
|
||||||
close(/dev/test) - OK
|
close(/dev/test) - OK
|
||||||
pppclose called
|
pppclose called
|
||||||
|
|||||||
Reference in New Issue
Block a user