summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/termios03/termios03.scn
blob: ed4a7846e5fb32ae79b0496aded1830d51d1cae6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
*** BEGIN OF TEST TERMIOS 3 ***
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

Reading (expected):
54 65 73 74 69 6e 67 20 56 45 52 41 53 45 7f 2e |Testing VERASE..|
Read 15 bytes from read(2)
54 65 73 74 69 6e 67 20 56 45 52 41 53 2e 0a    |Testing VERAS.. |
Echoed 20 characters
54 65 73 74 69 6e 67 20 56 45 52 41 53 45 08 20 |Testing VERASE. |
08 2e 0d 0a                                     |....            |

Reading (expected):
54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 15 2e    |Testing VKILL.. |
Read 2 bytes from read(2)
2e 0a                                           |..              |
Echoed 55 characters
54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 08 20 08 |Testing VKILL. .|
08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..|
20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. |
08 08 20 08 2e 0d 0a                            |.. ....         |

Reading (expected):
7f 54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 |.Testing VERASE |
69 6e 20 63 6f 6c 75 6d 6e 20 31 2e             |in column 1.    |
Read 28 bytes from read(2)
54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i|
6e 20 63 6f 6c 75 6d 6e 20 31 2e 0a             |n column 1..    |
Echoed 29 characters
54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i|
6e 20 63 6f 6c 75 6d 6e 20 31 2e 0d 0a          |n column 1...   |

Reading (expected):
09 20 74 61 62 20 09 54 65 73 74 69 6e 67 20 56 |. tab .Testing V|
4b 49 4c 4c 20 61 66 74 65 72 20 74 61 62 2e 15 |KILL after tab..|
Read 1 bytes from read(2)
0a                                              |.               |
Echoed 140 characters
20 20 20 20 20 20 20 20 20 74 61 62 20 20 20 20 |         tab    |
54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 20 61 66 |Testing VKILL af|
74 65 72 20 74 61 62 2e 08 20 08 08 20 08 08 20 |ter tab.. .. .. |
08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .|
08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..|
20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. |
08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .|
08 08 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |.... .. .. .. ..|
20 08 08 08 08 08 08 08 08 08 0d 0a             | ...........    |

close(/dev/test) - OK
*** END OF TEST TERMIOS 3 ***