summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/termios03/termios03.scn
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-28 13:42:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-28 13:42:25 +0000
commit4b4cbdd68f958d219113d06837f043402d615359 (patch)
tree17856088005ad7fd42110eff4c1002c74d0d8584 /testsuites/libtests/termios03/termios03.scn
parent2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-4b4cbdd68f958d219113d06837f043402d615359.tar.bz2
2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* termios03/init.c, termios03/termios03.doc, termios03/termios03.scn, termios03/termios_testdriver_polled.c, termios03/termios_testdriver_polled.h: Add more test cases.
Diffstat (limited to 'testsuites/libtests/termios03/termios03.scn')
-rw-r--r--testsuites/libtests/termios03/termios03.scn56
1 files changed, 55 insertions, 1 deletions
diff --git a/testsuites/libtests/termios03/termios03.scn b/testsuites/libtests/termios03/termios03.scn
index a63612096b..bfd154b797 100644
--- a/testsuites/libtests/termios03/termios03.scn
+++ b/testsuites/libtests/termios03/termios03.scn
@@ -1 +1,55 @@
-XXX fill in with test output
+*** TEST TERMIOS03 ***
+open(/dev/test) - OK
+Writing: This is test output.
+Transmitted 22 characters
+54 68 69 73 20 69 73 20 74 65 73 74 20 6f 75 74 |This is test out|
+70 75 74 2e 0d 0a |put... |
+
+Reading (expected):
+54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this |
+69 73 2e |is. |
+Read 20 bytes from read(2)
+54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this |
+69 73 2e 0a |is.. |
+Echoed 21 characters
+54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this |
+69 73 2e 0d 0a |is... |
+
+Reading (expected):
+31 32 33 35 08 34 35 36 2e |1235.456. |
+Read 10 bytes from read(2)
+31 32 33 35 08 34 35 36 2e 0a |1235.456.. |
+Echoed 12 characters
+31 32 33 35 5e 48 34 35 36 2e 0d 0a |1235^H456... |
+
+Reading (expected):
+74 61 62 09 74 61 62 2e |tab.tab. |
+Read 9 bytes from read(2)
+74 61 62 09 74 61 62 2e 0a |tab.tab.. |
+Echoed 14 characters
+74 61 62 20 20 20 20 20 74 61 62 2e 0d 0a |tab tab... |
+
+Reading (expected):
+63 72 0d |cr. |
+Read 3 bytes from read(2)
+63 72 0a |cr. |
+Echoed 4 characters
+63 72 0d 0a |cr.. |
+
+Reading (expected):
+61 42 63 44 65 46 67 48 2e |aBcDeFgH. |
+Read 10 bytes from read(2)
+61 42 63 44 65 46 67 48 2e 0a |aBcDeFgH.. |
+Echoed 11 characters
+61 42 63 44 65 46 67 48 2e 0d 0a |aBcDeFgH... |
+Changing c_iflag to: Enable to lower case mapping on input
+
+Reading (expected):
+61 42 63 44 65 46 67 48 2e |aBcDeFgH. |
+Read 10 bytes from read(2)
+61 62 63 64 65 66 67 68 2e 0a |abcdefgh.. |
+Echoed 11 characters
+61 62 63 64 65 66 67 68 2e 0d 0a |abcdefgh... |
+Changing c_iflag to: Disable to lower case mapping on input
+close(/dev/test) - OK
+*** END OF TEST TERMIOS03 ***