Mercurial > hg > CbC > CbC_llvm
comparison utils/lit/tests/shtest-shell.py @ 147:c2174574ed3a
LLVM 10
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 16:55:33 +0900 |
parents | 3a76565eade5 |
children |
comparison
equal
deleted
inserted
replaced
134:3a76565eade5 | 147:c2174574ed3a |
---|---|
8 # | 8 # |
9 # END. | 9 # END. |
10 | 10 |
11 # CHECK: -- Testing: | 11 # CHECK: -- Testing: |
12 | 12 |
13 # CHECK: FAIL: shtest-shell :: cat-error-0.txt | |
14 # CHECK: *** TEST 'shtest-shell :: cat-error-0.txt' FAILED *** | |
15 # CHECK: $ "cat" "-b" "temp1.txt" | |
16 # CHECK: # command stderr: | |
17 # CHECK: Unsupported: 'cat': option -b not recognized | |
18 # CHECK: error: command failed with exit status: 1 | |
19 # CHECK: *** | |
20 | |
21 # CHECK: FAIL: shtest-shell :: cat-error-1.txt | |
22 # CHECK: *** TEST 'shtest-shell :: cat-error-1.txt' FAILED *** | |
23 # CHECK: $ "cat" "temp1.txt" | |
24 # CHECK: # command stderr: | |
25 # CHECK: [Errno 2] No such file or directory: 'temp1.txt' | |
26 # CHECK: error: command failed with exit status: 1 | |
27 # CHECK: *** | |
28 | |
29 # CHECK: FAIL: shtest-shell :: colon-error.txt | |
30 # CHECK: *** TEST 'shtest-shell :: colon-error.txt' FAILED *** | |
31 # CHECK: $ ":" | |
32 # CHECK: # command stderr: | |
33 # CHECK: Unsupported: ':' cannot be part of a pipeline | |
34 # CHECK: error: command failed with exit status: 127 | |
35 # CHECK: *** | |
13 | 36 |
14 # CHECK: FAIL: shtest-shell :: diff-error-0.txt | 37 # CHECK: FAIL: shtest-shell :: diff-error-0.txt |
15 # CHECK: *** TEST 'shtest-shell :: diff-error-0.txt' FAILED *** | 38 # CHECK: *** TEST 'shtest-shell :: diff-error-0.txt' FAILED *** |
16 # CHECK: $ "diff" "diff-error-0.txt" "diff-error-0.txt" | 39 # CHECK: $ "diff" "diff-error-0.txt" "diff-error-0.txt" |
17 # CHECK: # command stderr: | 40 # CHECK: # command stderr: |
71 # CHECK: error: command failed with exit status: 127 | 94 # CHECK: error: command failed with exit status: 127 |
72 # CHECK: *** | 95 # CHECK: *** |
73 | 96 |
74 # CHECK: FAIL: shtest-shell :: diff-r-error-0.txt | 97 # CHECK: FAIL: shtest-shell :: diff-r-error-0.txt |
75 # CHECK: *** TEST 'shtest-shell :: diff-r-error-0.txt' FAILED *** | 98 # CHECK: *** TEST 'shtest-shell :: diff-r-error-0.txt' FAILED *** |
76 # CEHCK: $ "diff" "-r" | 99 # CHECK: $ "diff" "-r" |
77 # CHECK: # command output: | 100 # CHECK: # command output: |
78 # CHECK: Only in {{.*}}dir1: dir1unique | 101 # CHECK: Only in {{.*}}dir1: dir1unique |
79 # CHECK: Only in {{.*}}dir2: dir2unique | 102 # CHECK: Only in {{.*}}dir2: dir2unique |
80 # CHECK: error: command failed with exit status: 1 | 103 # CHECK: error: command failed with exit status: 1 |
81 | 104 |
82 # CHECK: FAIL: shtest-shell :: diff-r-error-1.txt | 105 # CHECK: FAIL: shtest-shell :: diff-r-error-1.txt |
83 # CHECK: *** TEST 'shtest-shell :: diff-r-error-1.txt' FAILED *** | 106 # CHECK: *** TEST 'shtest-shell :: diff-r-error-1.txt' FAILED *** |
84 # CEHCK: $ "diff" "-r" | 107 # CHECK: $ "diff" "-r" |
85 # CHECK: # command output: | 108 # CHECK: # command output: |
86 # CHECK: *** {{.*}}dir1{{.*}}subdir{{.*}}f01 | 109 # CHECK: *** {{.*}}dir1{{.*}}subdir{{.*}}f01 |
87 # CHECK: --- {{.*}}dir2{{.*}}subdir{{.*}}f01 | 110 # CHECK: --- {{.*}}dir2{{.*}}subdir{{.*}}f01 |
88 # CHECK: 12345 | 111 # CHECK: 12345 |
89 # CHECK: 00000 | 112 # CHECK: 00000 |
90 # CHECK: error: command failed with exit status: 1 | 113 # CHECK: error: command failed with exit status: 1 |
91 | 114 |
92 # CHECK: FAIL: shtest-shell :: diff-r-error-2.txt | 115 # CHECK: FAIL: shtest-shell :: diff-r-error-2.txt |
93 # CHECK: *** TEST 'shtest-shell :: diff-r-error-2.txt' FAILED *** | 116 # CHECK: *** TEST 'shtest-shell :: diff-r-error-2.txt' FAILED *** |
94 # CEHCK: $ "diff" "-r" | 117 # CHECK: $ "diff" "-r" |
95 # CHECK: # command output: | 118 # CHECK: # command output: |
96 # CHECK: Only in {{.*}}dir2: extrafile | 119 # CHECK: Only in {{.*}}dir2: extrafile |
97 # CHECK: error: command failed with exit status: 1 | 120 # CHECK: error: command failed with exit status: 1 |
98 | 121 |
99 # CHECK: FAIL: shtest-shell :: diff-r-error-3.txt | 122 # CHECK: FAIL: shtest-shell :: diff-r-error-3.txt |
100 # CHECK: *** TEST 'shtest-shell :: diff-r-error-3.txt' FAILED *** | 123 # CHECK: *** TEST 'shtest-shell :: diff-r-error-3.txt' FAILED *** |
101 # CEHCK: $ "diff" "-r" | 124 # CHECK: $ "diff" "-r" |
102 # CHECK: # command output: | 125 # CHECK: # command output: |
103 # CHECK: Only in {{.*}}dir1: extra_subdir | 126 # CHECK: Only in {{.*}}dir1: extra_subdir |
104 # CHECK: error: command failed with exit status: 1 | 127 # CHECK: error: command failed with exit status: 1 |
105 | 128 |
106 # CHECK: FAIL: shtest-shell :: diff-r-error-4.txt | 129 # CHECK: FAIL: shtest-shell :: diff-r-error-4.txt |
107 # CHECK: *** TEST 'shtest-shell :: diff-r-error-4.txt' FAILED *** | 130 # CHECK: *** TEST 'shtest-shell :: diff-r-error-4.txt' FAILED *** |
108 # CEHCK: $ "diff" "-r" | 131 # CHECK: $ "diff" "-r" |
109 # CHECK: # command output: | 132 # CHECK: # command output: |
110 # CHECK: File {{.*}}dir1{{.*}}extra_subdir is a directory while file {{.*}}dir2{{.*}}extra_subdir is a regular file | 133 # CHECK: File {{.*}}dir1{{.*}}extra_subdir is a directory while file {{.*}}dir2{{.*}}extra_subdir is a regular file |
111 # CHECK: error: command failed with exit status: 1 | 134 # CHECK: error: command failed with exit status: 1 |
112 | 135 |
113 # CHECK: FAIL: shtest-shell :: diff-r-error-5.txt | 136 # CHECK: FAIL: shtest-shell :: diff-r-error-5.txt |
114 # CHECK: *** TEST 'shtest-shell :: diff-r-error-5.txt' FAILED *** | 137 # CHECK: *** TEST 'shtest-shell :: diff-r-error-5.txt' FAILED *** |
115 # CEHCK: $ "diff" "-r" | 138 # CHECK: $ "diff" "-r" |
116 # CHECK: # command output: | 139 # CHECK: # command output: |
117 # CHECK: Only in {{.*}}dir1: extra_subdir | 140 # CHECK: Only in {{.*}}dir1: extra_subdir |
118 # CHECK: error: command failed with exit status: 1 | 141 # CHECK: error: command failed with exit status: 1 |
119 | 142 |
120 # CHECK: FAIL: shtest-shell :: diff-r-error-6.txt | 143 # CHECK: FAIL: shtest-shell :: diff-r-error-6.txt |
121 # CHECK: *** TEST 'shtest-shell :: diff-r-error-6.txt' FAILED *** | 144 # CHECK: *** TEST 'shtest-shell :: diff-r-error-6.txt' FAILED *** |
122 # CEHCK: $ "diff" "-r" | 145 # CHECK: $ "diff" "-r" |
123 # CHECK: # command output: | 146 # CHECK: # command output: |
124 # CHECK: File {{.*}}dir1{{.*}}extra_file is a regular empty file while file {{.*}}dir2{{.*}}extra_file is a directory | 147 # CHECK: File {{.*}}dir1{{.*}}extra_file is a regular empty file while file {{.*}}dir2{{.*}}extra_file is a directory |
125 # CHECK: error: command failed with exit status: 1 | 148 # CHECK: error: command failed with exit status: 1 |
126 | 149 |
127 # CHECK: PASS: shtest-shell :: diff-r.txt | 150 # CHECK: PASS: shtest-shell :: diff-r.txt |
136 | 159 |
137 # FIXME: The output here sucks. | 160 # FIXME: The output here sucks. |
138 # | 161 # |
139 # CHECK: FAIL: shtest-shell :: error-1.txt | 162 # CHECK: FAIL: shtest-shell :: error-1.txt |
140 # CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED *** | 163 # CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED *** |
141 # CHECK: shell parser error on: 'echo "missing quote' | 164 # CHECK: shell parser error on: ': \'RUN: at line 3\'; echo "missing quote' |
142 # CHECK: *** | 165 # CHECK: *** |
143 | 166 |
144 # CHECK: FAIL: shtest-shell :: error-2.txt | 167 # CHECK: FAIL: shtest-shell :: error-2.txt |
145 # CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED *** | 168 # CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED *** |
146 # CHECK: Unsupported redirect: | 169 # CHECK: Unsupported redirect: |
199 # CHECK: FAIL: shtest-shell :: rm-error-3.txt | 222 # CHECK: FAIL: shtest-shell :: rm-error-3.txt |
200 # CHECK: *** TEST 'shtest-shell :: rm-error-3.txt' FAILED *** | 223 # CHECK: *** TEST 'shtest-shell :: rm-error-3.txt' FAILED *** |
201 # CHECK: Exit Code: 1 | 224 # CHECK: Exit Code: 1 |
202 # CHECK: *** | 225 # CHECK: *** |
203 | 226 |
227 # CHECK: PASS: shtest-shell :: rm-unicode-0.txt | |
204 # CHECK: PASS: shtest-shell :: sequencing-0.txt | 228 # CHECK: PASS: shtest-shell :: sequencing-0.txt |
205 # CHECK: XFAIL: shtest-shell :: sequencing-1.txt | 229 # CHECK: XFAIL: shtest-shell :: sequencing-1.txt |
206 # CHECK: PASS: shtest-shell :: valid-shell.txt | 230 # CHECK: PASS: shtest-shell :: valid-shell.txt |
207 # CHECK: Failing Tests (24) | 231 # CHECK: Failing Tests (27) |